Fatal error 'Call to undefined method OC\AllConfig::isGlobalScaleEnabled()'

Support intro

Nextcloud version (eg, 20.0.5): 21
Operating system and version (eg, Ubuntu 20.04): CentOS Linux release 7.9.2009
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6 (CentOS)
PHP version (eg, 7.4): PHP 7.4.16

The issue you are facing: Fatal error in nextcloud.log

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

The output of your Nextcloud log in Admin > Logging:

{"reqId":"YE8jjmFupN8q4EOVkR9h5QAAAKA","level":4,"time":"2021-03-15T09:06:22+00:00","remoteAddr":"XXX.XXX.XXX.XXX","user":"4DD0E571-573D-4F0A-A4C4-4667A4203399","app":"no app in context","method":"GET","url":"/index.php/apps/files/ajax/getstoragestats.php?dir=%2F","message":{"Exception":"Error","Message":"Call to undefined method OC\\AllConfig::isGlobalScaleEnabled()","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","line":154,"function":"updateCSP","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"OCA\\Richdocuments\\AppInfo\\{closure}","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/html/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","line":156,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":176,"function":"boot","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":197,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":137,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/html/nextcloud/apps/dav/lib/AppInfo/Application.php","line":124,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":176,"function":"boot","class":"OCA\\DAV\\AppInfo\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":197,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":137,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":979,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","Line":225,"CustomMessage":"Could not boot richdocumentsCall to undefined method OC\\AllConfig::isGlobalScaleEnabled()"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0","version":"21.0.0.18","id":"604f238f74b14"}da

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

$CONFIG = array (
  'instanceid' => 'oc87hxcbxz4i',
  'passwordsalt' => 'XXXXXXXXX',
  'secret' => 'XXXXXXXX',
  'trusted_domains' =>
  array (
    0 => 'XXXXXX',
    1 => 'XXXXXXX',
    2 => 'XXXXXXX',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXXXXXX',
  'dbpassword' => 'XXXXXX',
  'installed' => true,
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'default_phone_region' => 'ES',
  'trashbin_retention_obligation' => '2, auto',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 3,
  ),
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The output of your Apache/nginx/system log in /var/log/____:

XXX.XXX.XXX.XXX - - [15/Mar/2021:10:42:10 +0100] "GET /index.php/apps/logreader/poll?lastReqId=YE8jjmFupN8q4EOVkR9h5QAAAKA HTTP/1.1" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:42:34 +0100] "PUT /index.php/apps/user_status/heartbeat HTTP/1.1" 204 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:42:34 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 179 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:42:46 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:42:31 +0100] "GET /index.php/apps/logreader/poll?lastReqId=YE8jjmFupN8q4EOVkR9h5QAAAKA HTTP/1.1" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:42:52 +0100] "GET /index.php/apps/logreader/poll?lastReqId=YE8jjmFupN8q4EOVkR9h5QAAAKA HTTP/1.1" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:43:16 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:43:33 +0100] "GET /index.php/csrftoken HTTP/1.1" 200 123 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:43:14 +0100] "GET /index.php/apps/logreader/poll?lastReqId=YE8jjmFupN8q4EOVkR9h5QAAAKA HTTP/1.1" 200 22 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
XXX.XXX.XXX.XXX - - [15/Mar/2021:10:43:46 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0"
1 Like

Same here, every 1-2- hours

same here. latest docker image…

I have the issue - log i plenty of these errors.

System: Debian 10.8
Apache 2.4.38

Me too. I’m guessing there is a bug in the latest docker image? I was looking at my collabora office docker image thinking that was the issue, but maybe it’s this?

CentOS 8.3
NextCloud 21.0
PHP 7.4.6
Apache 2.4.37

Maybe, but I have no Docker. I have a Collabora Server beside NC

I haven’t got docker, my server is baremetal.
My Collabora dosn’t work too, I have Collabora and Collabora CODE Server apps installed I don’t know if it has relation with this error

1 Like

Same problem here:

Debian 10 buster
Nextcloud 21.0.0
Nginx 1.14.2
PHP Versión: 7.3.27
mysql: 10.3.27

{
      "reqId": "O33zFNa3u63V3C1ohhRt",
      "level": 4,
      "time": "2021-03-21T21:01:10+00:00",
      "remoteAddr": "X.X.X.X",
      "user": "x***",
      "app": "no app in context",
      "method": "POST",
      "url": "/ocs/v2.php/apps/files/api/v1/templates/create",
      "message": {
        "Exception": "Error",
        "Message": "Call to undefined method OC\\AllConfig::isGlobalScaleEnabled()",
        "Code": 0,
        "Trace": [
          {
            "file": "/var/www/clients/clientX/webX/web/apps/richdocuments/lib/AppInfo/Application.php",
            "line": 154,
            "function": "updateCSP",
            "class": "OCA\\Richdocuments\\AppInfo\\Application",
            "type": "->",
            "args": [
              "*** sensitive parameters replaced ***"
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/AppFramework/Bootstrap/FunctionInjector.php",
            "line": 68,
            "function": "OCA\\Richdocuments\\AppInfo\\{closure}",
            "class": "OCA\\Richdocuments\\AppInfo\\Application",
            "type": "->",
            "args": [
              "*** sensitive parameters replaced ***"
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/AppFramework/Bootstrap/BootContext.php",
            "line": 52,
            "function": "injectFn",
            "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector",
            "type": "->",
            "args": [
              {
                "__class__": "Closure"
              }
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/apps/richdocuments/lib/AppInfo/Application.php",
            "line": 156,
            "function": "injectFn",
            "class": "OC\\AppFramework\\Bootstrap\\BootContext",
            "type": "->",
            "args": [
              {
                "__class__": "Closure"
              }
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/AppFramework/Bootstrap/Coordinator.php",
            "line": 176,
            "function": "boot",
            "class": "OCA\\Richdocuments\\AppInfo\\Application",
            "type": "->",
            "args": [
              {
                "__class__": "OC\\AppFramework\\Bootstrap\\BootContext"
              }
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/legacy/OC_App.php",
            "line": 197,
            "function": "bootApp",
            "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
            "type": "->",
            "args": [
              "richdocuments"
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/legacy/OC_App.php",
            "line": 137,
            "function": "loadApp",
            "class": "OC_App",
            "type": "::",
            "args": [
              "richdocuments"
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/apps/dav/lib/AppInfo/Application.php",
            "line": 124,
            "function": "loadApps",
            "class": "OC_App",
            "type": "::",
            "args": [
              [
                "dav"
              ]
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/AppFramework/Bootstrap/Coordinator.php",
            "line": 176,
            "function": "boot",
            "class": "OCA\\DAV\\AppInfo\\Application",
            "type": "->",
            "args": [
              {
                "__class__": "OC\\AppFramework\\Bootstrap\\BootContext"
              }
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/legacy/OC_App.php",
            "line": 197,
            "function": "bootApp",
            "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
            "type": "->",
            "args": [
              "dav"
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/lib/private/legacy/OC_App.php",
            "line": 137,
            "function": "loadApp",
            "class": "OC_App",
            "type": "::",
            "args": [
              "dav"
            ]
          },
          {
            "file": "/var/www/clients/clientX/webX/web/ocs/v1.php",
            "line": 57,
            "function": "loadApps",
            "class": "OC_App",
            "type": "::",
            "args": []
          },
          {
            "file": "/var/www/clients/clientX/webX/web/ocs/v2.php",
            "line": 24,
            "args": [
              "/var/www/clients/clientX/webX/web/ocs/v1.php"
            ],
            "function": "require_once"
          }
        ],
        "File": "/var/www/clients/clientX/webX/web/apps/richdocuments/lib/AppInfo/Application.php",
        "Line": 225,
        "CustomMessage": "Could not boot richdocumentsCall to undefined method OC\\AllConfig::isGlobalScaleEnabled()"
      },
      "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15",
      "version": "21.0.0.18"
    }

I have seen a lot of these error messages in my log after I installed for a first time NextCloud 21 on my Raspberry Pi 4B 4GB. However, after I disabled and re-enabled some pre-installed apps, these messages have stopped. I have disable and enable quite a number of them (at least Collabora, PDF Annotations, etc.) so I would not be able to pinpoint which one has eventually stopped this kind of error.

NextCloud 21
Operating System Raspbian 4.10.17-v71+ (Debian)
PHP 7.3.27-1

There was an update for Collabora Online two day ago. My last error was at 22.3. , maybe that was the issue, will see…

1 Like

I’ve just pulled the latest docker images for nextcloud and collabora code, still a lot of these errors.

EDIT: My sincere apologizes: updating the app of collabora integration to 4.0.4 did it.
no errors anymore