PHP Fatal error: Declaration of Monolog\Logger::emergency
-
jaimemParticipant1 year, 6 months ago #53590
WPSOLR PRO 24.0
WordPress 6.7.2
PHP 8.1.30PHP Fatal error: Declaration of Monolog\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = []) in /var/www/audition/docs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/monolog/monolog/src/Monolog/Logger.php on line 682
This error message was signaled by the automated ‘Your site has experienced a fatal error’ message to the site admin. I’ve also seen it in the debug log while updating plugins, but not exclusively. I enabled debugging on the site for about 30 minutes and the site threw this error 77 times. The search function seems to be working and there hasn’t been any noticeable disruption to the site.
Some (possibly related) strange behaviour:
* WP is signaling that there is a new version of WPSOLR PRO availbe (on the plugins page as well as the updates page), but also says ‘Latest version already installed.’
* I’ve had to click ‘Reactive this site license’ from the WPSOLR PRO ‘Click here to manage your license’ a few times in the past couple of weeks, even though the license hasn’t expired during this time (our license renews each August).thanks!
wpsolrKeymaster1 year, 6 months ago #53592It looks like the version of monolog brought with WPSOLR dependencies is incompatible with recent WordPress.
Here is a workaround, until a fix is released:
cd /plugins/wpsolr-pro/wpsolr-pro/wpsolr/core composer require monolog/monolog:^2.9(downgrade monolog to 2.x)
wpsolrKeymaster1 year, 5 months ago #54064Fix released with WPSOLR 24.0.1.
You must be logged in to reply to this topic.