Skip to content

[Bug]: This version of Nextcloud is not compatible with PHP>=8.4 #50792

@ckujau

Description

@ckujau

⚠️ This issue respects the following points: ⚠️

Bug description

Apparently my Linux Arch installation received a PHP update and now Nextcloud 30.0.5 says:

$ occ
This version of Nextcloud is not compatible with PHP>=8.4.<br/>You are currently running 8.4.3.

$ php-fpm -v | head -1
PHP 8.4.3 (fpm-fcgi) (built: Jan 15 2025 08:09:27) (NTS)

The quick fix is easy enough and well documented of course (and it does work, for my setup anyway), but I was unable to find a "Test apps against PHP 8.4" issue similar to #18146. I guess testing newer PHP versions is already in progress?

# quick fix, only to have it documented here
$ diff -u /usr/share/webapps/nextcloud/lib/versioncheck.php{.orig,}
--- /usr/share/webapps/nextcloud/lib/versioncheck.php.orig      2025-02-12 22:24:39.000000000 +0100
+++ /usr/share/webapps/nextcloud/lib/versioncheck.php   2025-02-13 11:13:40.443801531 +0100
@@ -14,7 +14,7 @@
 }
 
 // Show warning if >= PHP 8.4 is used as Nextcloud is not compatible with >= PHP 8.4 for now
-if (PHP_VERSION_ID >= 80400) {
+if (PHP_VERSION_ID >= 80500) {
        http_response_code(500);
        echo 'This version of Nextcloud is not compatible with PHP>=8.4.<br/>';
        echo 'You are currently running ' . PHP_VERSION . '.';

Steps to reproduce

  1. Upgrade PHP to 8.4
  2. Run Nextcloud
  3. This version of Nextcloud is not compatible with PHP>=8.4

Expected behavior

Nextcloud should be compatible with PHP 8.4

Nextcloud Server version

30

Operating system

Other

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

FWIW, I did find the exact error message in this forum posting, but the topic was somewhat unrelated and then closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions