• Resolved mttindustries

    (@mttindustries-1)


    updated this yesterday,
    since then the cart page throws a critital error message
    this is from the error log:

    [15-Jun-2023 08:14:58 UTC] PHP Fatal error: Uncaught TypeError: Return value of WooCommerce\PayPalCommerce\Button\Assets\SmartButton::intent() must be of the type string, null returned in /home/slotmein/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1434
    Stack trace:

    0 /home/slotmein/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(986): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->intent()

    1 /home/slotmein/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(803): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->url_params()

    2 /home/slotmein/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(600): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->script_data()

    3 /home/slotmein/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(71): WooCommerce\PayPalCommerce\But in /home/slotmein/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1434

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mttindustries

    (@mttindustries-1)

    it’s the PayPal Smart Buttons option causing this. In the meantime I’ve disabled it and the cart works again. But ideally we want the smart buttons

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @mttindustries-1

    Thank you for raising this issue with us, we have opened a bug for our developers to look into this. Have you already tried to revert to the previous version to see if that would resolve this issue?

    I have linked this support thread to the bug, so you should get an update once we have a fix available for it or when we require additional details from your end.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @mttindustries-1

    Our developer looked into this error and informed that this issue is caused by a something on your site that is adjusting the value intent into null.

    It is unclear why this is happening; maybe something was wrong with the settings page and this field was saved as null? The only way we can get further is to get a closer look into your site and seeing if there is anything that can cause such a situation. You may want to perform a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for WooCommerce and PayPal Payments to see if the behavior persists. Here’s a guide that explains the steps in more detail: How to test for conflicts.

    If you want us to take a closer look, you can also provide us all the details for this, so we can take a look. If you don’t feel comfortable sharing those details on a public forum, please open a ticket with our service desk. You can find the instruction for this here: https://paypal.inpsyde.com/docs/request-support/
    (please add the URL of this thread in the ticket as well)

    Kind regards,
    Joost

    I encounter the same issue and disabling the cart button seems to solve it. (temp)

    Theme: Elesi

    Hosting on Siteground. (+ S.G security plugings)

    I’ll deploy to to staging and give a feedback.

    BTW, rolling back the PP plugin seems to work fine as well

    @joostvandevijver thank you for the links and pointers

    @mttindustries-1 @joostvandevijver

    FYI information it seems like the issue was resolved with the latest update from the theme Elessi 5.2.3.1

    Thread Starter mttindustries

    (@mttindustries-1)

    I tried to replicate it locally and couldn’t. On the live website I had the smart buttons disabled for the meantime and then I tried turning it back on and that seemed to have fixed it. Maybe that setting needed to be refreshed or something for the database.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Thanks to you both to update us with the current status of this issue. It seems like this is a caching issue, but we are still looking into this. It is a bit hard to troubleshoot this, since it is not occurring for many merchants. I have informed our developer on these developments.

    We will keep this thread open for a bit longer, while we do some further checks and wait for the possibility that the issue returns to your environments. If it does return for you, please open the private engagement as above. If we don’t see any more reports of this issue and it does not return for you, we will mark this thread as resolved in 2 weeks.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘fatal error since update’ is closed to new replies.