• Resolved znikap

    (@znikap)


    Upon attempting to activate the plugin, I am met with a fatal error that prevents the plugin from initializing properly. The error message is as follows:
    Fatal error: Declaration of Monolog\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = [])

    I have taken several troubleshooting steps to isolate the issue, including deactivating all other plugins to rule out any conflicts. However, the error persists specifically when WooCommerce and the WooCommerce PayPal Payments plugin are activated together.

    Here are some details about my site:

    • Theme: Sage (Roots)
    • Framework: Bedrock boilerplate
    • WordPress Version: 6.4.3
    • WooCommerce Version: 8.5.2
    • WooCommerce PayPal Payments Plugin Version: 2.5.3

    Could you please provide guidance on how to fix this fatal error?
    Thanks.

    • This topic was modified 9 months, 2 weeks ago by znikap.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @znikap,

    It will be great if you could share your System Status Report. You can get it by navigating to the?WooCommerce / Status?section of your site. Once there, click on the?Get system report?button and then copy it by clicking on the?Copy for support?button.

    Please provide those log entries on our?PrivateBin. After uploading, send us the link, so we can review them in detail.

    Once we have a clearer picture of your system’s state and the specific circumstances, we can guide you better on how to resolve the issue.

    Kind regards,
    Krystian

    Thread Starter znikap

    (@znikap)

    Thanks for the quick reply,
    Here’s the log.

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello?@znikap,

    According to your system report, currently you are using:

    PHP Version: 8.2.5

    The PayPal Payments plugin is fully supported and tested with PHP versions ranging from 7.2 to 8.1. PHP 8.2 is not yet officially supported.

    The fatal error is triggered because our plugin uses a previous version of psr/log , as defined in woocommerce-paypal-payments/blob/trunk/composer.json with "psr/log": "^1.1" . The more recent version that would be compatible with PHP 8.2 is this one: https://packagist.org/packages/psr/log#3.0.0. However, an update to this version might result in breaking compatibility with very old versions of PHP.

    We have created a Jira request for our development team to take a look at this. At the moment, I do not have a definitive answer, but I assure you that we are looking into this. I will keep you updated on any progress or workaround that might arise after consulting with our team. For now, this remains an open issue.

    Please feel free to reach out if you have any further questions.

    Kind Regards,
    Krystian

    Cris

    (@ctagupa)

    Hello,

    I did a compatibility check on both PHP 8.1 and 8.2 it got errors, I assumed it should be supported up to 8.1?

    Error Samples on PHP 8.1:

    Found 1 error and 0 warnings affecting 1 line on file /wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/human-readable-interface/src/CaptionAwareInterface.php.

    Found 1 error and 0 warnings affecting 1 line on file /wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/human-readable-interface/tests/functional/MessageAwareInterfaceTest.php.

    Any workaround this? Thanks!

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello?@znikap,

    Since we haven’t heard back from you, we’ll assume everything is working as needed.

    If you have any more questions, feel free to start a new thread or directly reach out for help. You can get support by opening a ticket with our service desk here: Request Support. Please include this thread’s URL in your ticket for reference.

    Hello @ctagupa, please create your own thread. We’ll try to analyze this there.

    Regards,
    Krystian

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error on Activation of WooCommerce PayPal Payments Plugin’ is closed to new replies.