Problem loading page, reloading in 5 seconds- after 20.0.7 upgrade-updated logs

Nextcloud version 20.0.7
PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
Server version: Apache/2.4.38 (Raspbian)
PHP 7.3.19-1~deb10u1 (cli) (built: Jul 5 2020 06:46:45) ( NTS

The issue you are facing:

[PHP] Error: TypeError: Argument 3 passed to OCA\UserStatus\Controller\UserStatusController::__construct() must be of the type string, null given at /var/www/html/nextcloud/apps/user_status/lib/Controller/UserStatusController.php#62

GET /nextcloud/ocs/v2.php/apps/user_status/api/v1/user_status
from 192.168.31.1 at 2021-02-25T10:09:10+00:00

Is this the first time you’ve seen this error? (Y/N): NO After update 20.0.7

Steps to replicate it:

  1. Sometimes nextcloud reaload page after 5 sec, sometimes logout from page.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocq672tongwu',
  'passwordsalt' => 'gsSxbgxxx9UiAv62xxxxxxxxxvx+joufx1o4',
  'secret' => 'CGFAet2atiYsfgdgdšdršrbYlAfwUukSd9uNCT',
  'trusted_domains' => 
  array (
    0 => 'xxxxxxxxxxxxx',
    1 => '192.168.31.232',
    2 => 'xxxxxxxxxxxxx',
  ),
  'datadirectory' => '/mnt/hdd/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.8.1',
  'overwrite.cli.url' => 'https://lxxxxxx/nextcloud',
  'dbname' => 'nextcloud',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 6379,
    'dbindex' => 0,
    'password' => 'secret',
    'timeout' => 1.5,
  ),
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxxxxxxxxxx',
  'installed' => true,
  'app_install_overwrite' => 
  array (
    0 => 'twofactor_rcdevsopenotp',
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 3,
  'has_rebuilt_cache' => true,
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'updater.secret' => '$2y$10$D9PmN1QfsdffdsfweėwįwgfwrevEDęqqWw7ryqPdoZ8YkpmzxwEa',
);

/var/log/apache2/error.log:

[Tue Mar 02 19:34:52.092734 2021] [ssl:warn] [pid 1864] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Mar 02 19:34:52.092839 2021] [ssl:warn] [pid 1864] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 02 19:34:52.187244 2021] [ssl:warn] [pid 1865] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Mar 02 19:34:52.187306 2021] [ssl:warn] [pid 1865] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 02 19:34:52.204554 2021] [mpm_prefork:notice] [pid 1865] AH00163: Apache/2.4.38 (Raspbian) PHP/7.3.27-1~deb10u1 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Mar 02 19:34:52.204651 2021] [core:notice] [pid 1865] AH00094: Command line: '/usr/sbin/apache2'

/var/log/apache2/access.log:

192.168.31.1 - - [02/Mar/2021:19:31:58 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:04 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:10 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) G$
192.168.31.1 - - [02/Mar/2021:19:32:10 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:16 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:22 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:28 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:34 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:40 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:40 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) G$
192.168.31.1 - - [02/Mar/2021:19:32:46 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:52 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:32:58 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:04 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:10 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:10 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) G$
192.168.31.1 - - [02/Mar/2021:19:33:16 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:22 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:28 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:34 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:40 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) G$
192.168.31.1 - - [02/Mar/2021:19:33:40 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:46 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:52 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:33:58 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:04 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:10 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:10 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) G$
192.168.31.1 - - [02/Mar/2021:19:34:16 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:22 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:28 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:34 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:40 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 803 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) G$
192.168.31.1 - - [02/Mar/2021:19:34:40 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:46 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1692 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:52 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 3981 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:34:59 +0200] "POST /nextcloud/index.php/apps/text/session/sync HTTP/1.1" 200 1679 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fi$
192.168.31.1 - - [02/Mar/2021:19:35:00 +0200] "PUT /nextcloud/index.php/apps/user_status/heartbeat HTTP/1.1" 204 1356 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101$
192.168.31.1 - - [02/Mar/2021:19:35:02 +0200] "GET /nextcloud/ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 1078 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Geck$
192.168.31.1 - - [02/Mar/2021:19:35:03 +0200] "GET /nextcloud/index.php/settings/user HTTP/1.1" 200 19996 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.$
192.168.31.1 - - [02/Mar/2021:19:35:03 +0200] "GET /nextcloud/index.php/apps/photos/service-worker.js HTTP/1.1" 200 5916 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100$
192.168.31.1 - - [02/Mar/2021:19:35:06 +0200] "GET /nextcloud/index.php/css/settings/62ab-b3bd-settings.css?v=997207aa57a67856bdf0b2d18e043f7b-8269dcfa-1 HTTP/1.1" 200 7124 "-" "Mozilla/5.$
192.168.31.1 - - [02/Mar/2021:19:35:07 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1081 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) $
192.168.31.1 - - [02/Mar/2021:19:35:07 +0200] "PUT /nextcloud/index.php/apps/user_status/heartbeat HTTP/1.1" 204 1356 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101$
192.168.31.1 - - [02/Mar/2021:19:35:07 +0200] "GET /nextcloud/ocs/v2.php/search/providers?from=%2Fnextcloud%2Fsettings%2Fuser HTTP/1.1" 200 1687 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x$
192.168.31.1 - - [02/Mar/2021:19:35:07 +0200] "GET /nextcloud/index.php/apps/apporder/getOrder HTTP/1.1" 200 1585 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Fir$
192.168.31.1 - - [02/Mar/2021:19:35:07 +0200] "GET /nextcloud/index.php/apps/photos/service-worker.js HTTP/1.1" 200 5916 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100$