You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a new Debian 12 with fresh Nextcloud 27.0.2 installed on a VPS (PHP 8.2 as default).
When I put the 'auto prepend' in my apache VirtualHost file, I get HTTP 500 Error on each http request.
In /var/log/apache2/nextcloud.error.log :
[php:error] [pid 14186] [client IPxxxxx:53046] PHP Fatal error: Declaration of OC\Log\PsrLoggerAdapter::alert($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::alert(Stringable|string $message, array $context = []): void in /var/www/nextcloud/lib/private/Log/PsrLoggerAdapter.php on line 87
Is there an incompatibility between Nextcloud and this bouncer ?
Is there a workaround to have this working ?
Many thanks,
Dicohub
The text was updated successfully, but these errors were encountered:
The standalone bouncer depends on psr/log too. But, during installation, composer picks up the highest compatible version available. With php 8.2, it is 3.0.0.
As we are using the auto_prepend_file mechanism, it ends with the incompatibility issue you reported (because there are 2 different and incompatible versions of the same package that are loaded together).
For the standalone bouncer to work here, we have to downgrade its version of psr/log.
If you followed the installation guide, it can be done by running the following command from the source folder of the bouncer (/path/to/the/crowdsec-standalone-bouncer in the installation guide):
Hello,
I've got a new Debian 12 with fresh Nextcloud 27.0.2 installed on a VPS (PHP 8.2 as default).
When I put the 'auto prepend' in my apache VirtualHost file, I get HTTP 500 Error on each http request.
In /var/log/apache2/nextcloud.error.log :
[php:error] [pid 14186] [client IPxxxxx:53046] PHP Fatal error: Declaration of OC\Log\PsrLoggerAdapter::alert($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::alert(Stringable|string $message, array $context = []): void in /var/www/nextcloud/lib/private/Log/PsrLoggerAdapter.php on line 87
Is there an incompatibility between Nextcloud and this bouncer ?
Is there a workaround to have this working ?
Many thanks,
Dicohub
The text was updated successfully, but these errors were encountered: