Update to php8.2

Hello,
I create this point because following an update of my server with the version of php 8.2, my nextcloud site has crashed. It is visible at this address:
obierti-cloud.com
Can you tell me how to recover my site please.

Seems you are running php8.1 still. 8,2 will be released later this year.

This version of Nextcloud is not compatible with > PHP 8.0.
You are currently running 8.1.2-1ubuntu2.8.

AFAIK, Nextcloud from version 24.x.x is compatible with php 8.1
Maybe you try to upgrade then :slight_smile:

/lib/versioncheck.php edit and remove this:

// Show warning if >= PHP 8.2 is used as Nextcloud is not compatible with >= PHP 8.2 for now
if (PHP_VERSION_ID >= 80200) {
http_response_code(500);
echo ‘This version of Nextcloud is not compatible with PHP>=8.2.
’;
echo 'You are currently running ’ . PHP_VERSION . ‘.’;
exit(1);
}

1 Like

I wouldn’t completely remove it. Use scalpel instead of hammer:

sed -i 's/>= 80200/>= 80300/' /var/www/nextcloud/lib/versioncheck.php
2 Likes