This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.7

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): nextcloud:27.0.0-ls254
Operating system and version (eg, Ubuntu 20.04): unraid Version: 6.11.1
Apache or nginx version (eg, Apache 2.4.25): 2.4.57
PHP version (eg, 7.4): 8.2.7

The issue you are facing:
Nextcloud webpage wont load
This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.7.

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

Steps to replicate it:

  1. Loading webpage for nextcloud comes up with above error message

The output of your Nextcloud log in Admin > Logging:

s":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":153,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/config/www/nextcloud/lib/private/Http/Client/Client.php","line":218,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php","line":136,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php","line":74,"function":"refetch","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","line":80,"function":"getCapabilities","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":67,"function":"OCA\\Richdocuments\\AppInfo\\{closure}","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":51,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","line":135,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":190,"function":"boot","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_App.php","line":208,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_App.php","line":141,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/config/www/nextcloud/ocs/v1.php","line":57,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/config/www/nextcloud/ocs/v2.php","line":23,"args":["/config/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/config/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"Failed to fetch the Collabora capabilities endpoint: Client error: `GET https://192.168.1.64:444/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` resulted in a `404 Not Found` response:\n<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</c (truncated...)\n","exception":{},"CustomMessage":"Failed to fetch the Collabora capabilities endpoint: Client error: `GET https://192.168.1.64:444/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` resulted in a `404 Not Found` response:\n<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</c (truncated...)\n"}}```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'memcache.local' => '\\OC\\Memcache\\APCu', 'datadirectory' => '/data', 'instanceid' => '', 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => '192.168.1.64:444', ), 'default_phone_region' => 'US', 'dbtype' => 'mysql', 'version' => '25.0.3.2', 'overwrite.cli.url' => 'https://192.168.1.64:444', 'dbname' => 'nextcloud', 'dbhost' => '192.168.1.64:3306', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '', 'installed' => true, 'mail_from_address' => 'mike.bowser.sw', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => 'gmail.com', 'mail_smtpauth' => 1, 'mail_smtpsecure' => 'tls', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtphost' => 'smtp.gmail.com', 'mail_smtpport' => '587', 'mail_smtpname' => 'mike.bowser.sw@gmail.com', 'mail_smtppassword' => '', ); ``` The output of your Apache/nginx/system log in `/var/log/____`: ``` 2023/07/03 05:31:14 [error] 7085#7085: *8394360 open() "/usr/local/emhttp/status/format/json" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /status/format/json HTTP/1.1", host: "127.0.0.1" 2023/07/03 05:31:14 [error] 7085#7085: *8394361 open() "/usr/local/emhttp/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /server-status?auto HTTP/1.1", host: "localhost" 2023/07/03 05:31:14 [error] 7085#7085: *8394362 open() "/usr/local/emhttp/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1" 2023/07/03 05:31:14 [error] 7085#7085: *8394363 "/usr/local/emhttp/api/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /api/ HTTP/1.1", host: "127.0.0.1" 2023/07/03 05:31:14 [error] 7085#7085: *8394369 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /admin/api.php?auth=&version=true HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "127.0.0.1" 2023/07/03 05:31:14 [error] 7085#7085: *8394371 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /admin/api.php?auth=&version=true HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost" 2023/07/03 05:31:14 [error] 7085#7085: *8394373 open() "/usr/local/emhttp/status" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /status?full&json HTTP/1.1", host: "localhost" 2023/07/03 05:31:14 [error] 7085#7085: *8394374 open() "/usr/local/emhttp/status" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /status?full&json HTTP/1.1", host: "127.0.0.1" 2023/07/03 05:31:14 [error] 7085#7085: *8394375 open() "/usr/local/emhttp/status" failed (2: No such file or directory), client: ::1, server: , request: "GET /status?full&json HTTP/1.1", host: "[::1]" 2023/07/03 05:31:14 [error] 7085#7085: *8394378 open() "/usr/local/emhttp/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /server-status?auto HTTP/1.1", host: "localhost" 2023/07/03 05:31:14 [error] 7085#7085: *8394379 open() "/usr/local/emhttp/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1" ``` 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. None ```

Can you please edit your post and put configuration and log output into preformatted text blocks? They’re impossible to read otherwise.

I was able to determine you’re actually running v25.0.3 and it appears you’re using the third-party Linuxserver.io Docker image of Nextcloud.

Can you describe what you were doing just before this? Were you attempting to upgrade?

You may need do some extra leg work because Linuxserver.io made some recent changes:

Uh, am I missing something here?

You’re running PHP 8.2, and the error message say your version of Nextcloud is not compatible with PHP 8.2 or later.

Mystery solved!

Drop back to PHP 8.1 and the error message will go away.

I think it is an error.

System requirements Nextcloud 27

    8.0 (deprecated)
    8.1
    8.2 (recommended)
1 Like

Not necessarily. When you choose to go off the beaten path, things get weird.

If mbowser is using prepackaged versions within docker, on niche proprietary platforms, then it’s likely the OS leans towards conservative.

mbowser has an unusual configuration on an unrecommended proprietary platform. Quirks are to be expected.

Just drop back to PHP 8.1. If it works, that’s your answer.

I’m sorry about the formatting of my post. If there is a sticky on how to properly submit my log info I will gladly follow that. I’m not installing anything special. I am running unraid with nextcloud docker installed on top. I did the latest nextcloud update and when I went to log into the nextcloud website it told me its not compatible with PHP8.2. Great but from everything ive see on all the forums including github and unraid, there is no easy way to move backwards from php 8.2 to 8.1. It invoves a lot of surgical deletion. Is there an easy way to get this fixed? Does next cloud plan on having their docker version that runs on unraid support php 8.2?

Unfortunately you are! Unraid is special, a proprietary OS that the Nextcloud devs haven’t tested Nextcloud on. On top of that, you’re using a third party package of Nextcloud (Docker). Again, there’s only such much planning the Nextcloud devs can make when publishing an image on Docker.

I’m really sorry about that, but that’s a risk you take going with an untested proprietary OS. On my system (FreeBSD), it’s as easy as “pkg remove php82”.

The fact that it takes surgical deletion to uninstall FOSS from your proprietary OS is a major issue. Even Windows isn’t that backwards.

I’m not one of the devs, but I’d be very surprised if they spend resources on any proprietary OS other than Windows (and maybe MacOS).

I do appreciate you responding to my post. I guess I’ll have to figure it out and do some research. I’m only using unraid because i very much like running plex on it and I like have data backups with different disk sizes that unraid brings flexibility with versus running a regular raid setup where Im locked into using the same drives and sizes.