• Resolved perryrylance

    (@perryrylance)


    Hi folks. Plugin is crashing a development site running PHP 8.2, I suspect because it enforces function signatures matching.

    Fatal error: Declaration of DecaLog\EventsLogger::emergency($message, $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in /var/www/html/wp-content/plugins/sessions/includes/libraries/decalog-sdk/EventsLogger.php on line 74

    We can fix this in our dev environment but it would be nice if this could be fixed so we can put the production site on 8.2. Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello!

    Sorry to hear you experience such an issue.

    I’m pretty sure it’s not due to PHP version (it’s working like a charm on many sites with PHP 8.2). I suspect a mismatch in PSR-3 versions due to the use of other libs.

    Can you tell me if you’re using a specific “framework” (like bedrock, for example) or if you used composer (in a lib or for your own devs) to requires a specific version of PSR-3?

    Thread Starter perryrylance

    (@perryrylance)

    Hi Pierre, thanks for the swift response.

    I think you might be right looking at other plugins installed here. If it’s the theme I’m working with then I’m afraid I can’t tell you any more.

    If it turns out to be one of the plugins that I can see is also using PSR-3 then I will let you know here ?? Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error’ is closed to new replies.