Internal Server Error `settings/admin/serverinfo`

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.4.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.4): 7.4

The issue you are facing: I can not view settings/admin/serverinfo

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

Steps to replicate it: N/A

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

[index] Error: Return value of OCA\ServerInfo\PhpStatistics::getOPcacheStatus() must be of the type array, null returned in file '/var/www/vhosts/teemocell.dev/cloud.teemocell.dev/apps/serverinfo/lib/PhpStatistics.php' line 78

GET /index.php/settings/admin/serverinfo
from 2a02:8109:32c0:205c:a090:6be2:631e:ca8e by TeemoCell at 2022-04-26T23:29:54+00:00

[PHP] Error: opcache_get_status() has been disabled for security reasons at /var/www/vhosts/teemocell.dev/cloud.teemocell.dev/apps/serverinfo/lib/PhpStatistics.php#71

GET /index.php/settings/admin/serverinfo
from 2a02:8109:32c0:205c:a090:6be2:631e:ca8e by TeemoCell at 2022-04-26T23:29:54+00:00

[PHP] Error: Invalid argument supplied for foreach() at /var/www/vhosts/teemocell.dev/cloud.teemocell.dev/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#152

GET /index.php/settings/admin/serverinfo
from 2a02:8109:32c0:205c:a090:6be2:631e:ca8e by TeemoCell at 2022-04-26T23:29:54+00:00

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

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[PASTE HERE](https://paste.teemocell.dev/pufomukasu)

Try searching for the errors you are seeing on this forum and on search engines.

[PHP] Error: opcache_get_status() has been disabled for security reasons

https://help.nextcloud.com/search?q=%5BPHP%5D%20Error:%20opcache_get_status()%20has%20been%20disabled%20for%20security%20reasons

Here is a solution someone used under Plesk:

1 Like

Tyvm, that worked for me. Tried to googled it but didn’t found anything.