• Resolved Gijs de Lange

    (@gys1984)


    Hello,

    We get an Fatal error. The version of the plugin we use is 7.8.0.

    Our fatal error:
    Fatal error: Declaration of Mollie\WooCommerce\Log\WcPsrLoggerAdapter::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void

    We can ‘solve’ it by changing a line in the file mollie-payments-for-woocommerce > src > Log > WcPsrLoggerAdapter.php

    Line 75. From:
    public function log($level, $message, array $context = [])
    To:
    public function log($level, $message, array $context = []): void

    But this is not ideal, since we get a fatal error every time while updating and have to update this file again.

    We found this support ticket that seem to talk about the same issue:
    https://www.ads-software.com/support/topic/php-8-1-psr-3-0-0-compatibility/

    Hope you guys can have a look!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @gys1984

    Thank you for reaching out and providing detailed information about the issue.

    The good news is that this issue has been addressed and will be fixed in the next update, which is scheduled for release on October 8th. Once the update is available, you should no longer encounter this fatal error, and you won’t need to manually modify the file each time.

    Regards,
    Femi.

    Thread Starter Gijs de Lange

    (@gys1984)

    Thanks Femi, that’s great to hear!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.