-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declaration of AbstractLogger::emergency must be compatible with #517
Declaration of AbstractLogger::emergency must be compatible with #517
Comments
Either Nextcloud or another app ships the psr/log package as well, but in an incompatible version. We need to find out where this is coming from. This app ships a resent version of psr/log and I have the suspicion that another app ships an old one. Search your Nextcloud installation for a
|
See #520. I attached a tarball for testing. |
Herre my result:
So the exact pattern is only found in the sentry plugin. But if I search like this I find more files:
of those, here are the ones of these files which contain the outdated version of the emergency function definition without the : void return parameter:
FYI: I have a basic vanilla installation from extracting the install file. You can find for example the outdated "./3rdparty/psr/log/Psr/Log/LoggerInterface.php" in the latest server download file: https://download.nextcloud.com/server/releases/latest.tar.bz2 |
Break 26 for me as well {
"reqId": "JcVcxCXNwyRte9gi9Im9",
"level": 3,
"time": "2023-05-07T11:17:14+00:00",
"remoteAddr": "xxx.xxx.xxx.xxx",
"user": "skjnldsv",
"app": "PHP",
"method": "GET",
"url": "/index.phpapps/disabled/suspicious_login",
"message": "Declaration of Psr\\Log\\AbstractLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\\Log\\LoggerInterface::emergency($message, array $context = []) at /var/www/html/custom_apps/sentry/vendor/psr/log/src/LoggerTrait.php#23",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36",
"version": "26.0.1.1",
"data": {
"app": "PHP"
}
} |
Fixes #517 Signed-off-by: Christoph Wurst <[email protected]>
Fixes #517 Signed-off-by: Christoph Wurst <[email protected]>
Steps to reproduce
Expected behaviour
Nextcloud should keep running and submit errors to my sentry installation
Actual behaviour
Server configuration
Operating system: Ubuntu 22.04 (kubernetes docker)
Web server: Apache/2.4.52
Database: bitnami/mariadb:10.6.12-debian-11-r3
PHP version: PHP 8.1.16
Version: Nextcloud 25.0.3
Updated from an older version or fresh install: fresh install
List of activated apps:
The content of config/config.php:
Client configuration
Logs
Web server error log
Server log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: