-
-
Couldn't load subscription status.
- Fork 4.6k
Closed as not planned
Closed as not planned
Copy link
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
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
- Upgrade PHP to 8.4
- Run Nextcloud
- 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
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug