Strange error on roundcube

Does anyone know what this is?

[04-Mar-2024 16:47:49 UTC] PHP Fatal error: Declaration of MStilkerich\CardDavAddressbook4Roundcube\RoundcubeLogger::log($level, $message, array $context = ) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = ): void in /usr/local/lib/roundcubemail/plugins/carddav/src/RoundcubeLogger.php on line 99

This shows up when I try to open up the email inbox and it comes as HTTP error 500.

nvm fixed it by disabling the carddav plugin

1 Like

@sybe i have the same error, how did you disable carddav plugin?

delete the carddav folder from /usr/local/lib/roundcubemail/plugins

1 Like

You can fix the issue by update RoundcubeLogger.php around line 99:

  //public function log($level, $message, array $context = array())
    public function log($level, Stringable|string $message, array $context = []): void

Under near the top right under use Psr\Log... add:

use Stringable;

This should resolve the error. Note, I still get this on Roundcube 1.6.11.