Uncaught Error: Class 'OC\Log\ExceptionSerializer' not found in /var/www/html/nextcloud/lib/private/Log.php:316

Nextcloud version: 22,2,0
Operating system and version: Debian10
Apache version: 2,4,38
PHP version: 7,3,31-1

The problem you are facing:

I am getting this error looping in my log.

Uncaught Error: Class 'OC \ Log \ ExceptionSerializer' not found in /var/www/html/nextcloud/lib/private/Log.php:316 Stack trace: # 0 / var / www / html / nextcloud / lib / private / Log / ErrorHandler.php (100): OC \ Log-> logException (Object (Error), Array) # 1 [internal function]: OC \ Log \ ErrorHandler :: onAll (2, 'hash_final (): s ... ',' / var / www / html / n ... ', 70, Array) # 2 /var/www/html/nextcloud/lib/private/Files/Stream/HashWrapper.php(70): hash_final (Object ( HashContext)) # 3 [internal function]: OC \ Files \ Stream \ HashWrapper-> stream_close () # 4 /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php(96 ): fclose (Resource id # 26) # 5 /var/www/html/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php(117): Icewind \ Streams \ Wrapper-> stream_close () # 6 [internal function]: Icewind \ Streams \ CallbackWrapper-> stream_close () # 7 {main} thrown at /var/www/html/nextcloud/lib/private/Log.php#316

The output of your config.php file in / var / www / html / nextcloud / config

<? php
$ CONFIG = array (
  'instanceid' => '*****',
  'passwordsalt' => '*****',
  'secret' => '*****',
  'trusted_domains' =>
  array (
    0 => 'mondomain.duckdns.org',
  ),
  'datadirectory' => '/ srv / dev-disk-by-uuid-9048d794-b140-42e5-bed0-ebaccb7ac54 $
  'dbtype' => 'mysql',
  'version' => '22 .2.0.2 ',
  'overwrite.cli.url' => 'http://mondomain.duckdns.org',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',