• Resolved jgateman

    (@jgateman)


    Since the last update our Woocommerce error logs are filling up with fatal errors being triggered by the Paypal payments plugin. Here is the error and stack trace with the domain information replaced by ..

    Please advise on how to fix.

    2022-04-20T17:17:49+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_total() on null in ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1127
    Stack trace:
    #0 ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(378): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
    #1 ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(195): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
    #2 ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(56): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
    #3 ../wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalC in ../wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1127

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

    (@niklasinpsyde)

    Hi @jgateman,

    The latest update added new functionality which could potentially conflict with certain third-party plugins.
    A downgrade to version 1.7.0 should prevent the error. You could also give it a try with this test version.
    The upcoming 1.8.0 update does not yet include a fix for this issue, but the following update 1.8.1 likely will.

    Kind regards,
    Niklas

    Thread Starter jgateman

    (@jgateman)

    Thanks Niklas,

    I will downgrade and wait for the next update that fixes that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught critical error being triggered after last update’ is closed to new replies.