• Resolved MMW

    (@moneymakewise)


    Hello,

    Been receiving again and again, daily, this critical error. Any ideas what is it and how to fix it?
    I have no idea if this error is forbiting my customers to purchase online, since none of them complained that they cannot complete an order, BUT would be grateful if you point me to the right direction in fixing it asap please.

    2022-05-20T02:18:45+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_total() on null in /home/customer/www/yiassu.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php:1227
    Stack trace:
    #0 /home/customer/www/yiassu.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(448): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->is_cart_price_total_zero()
    #1 /home/customer/www/yiassu.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php(229): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_button_wrapper_registrar()
    #2 /home/customer/www/yiassu.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(57): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->render_wrapper()
    #3 /home/customer/www/yiassu.com/public_html/wp-includes/class-wp-hook.php(307): WooCommerce\PayPalCommerce\Button\ButtonMo in /home/customer/www/yiassu.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1227

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

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

    (@niklasinpsyde)

    Hi @moneymakewise,

    This error has been addressed for the upcoming update sometime next week.
    In the meantime, you can download a test package with a fix from here.
    Alternatively, this error should also not occur with version 1.7.0.
    The handling of free products was modified in version 1.7.1 and this could potentially cause the reported error in certain configurations.
    With the next update, this shouldn’t be a problem anymore though.

    Kind regards,
    Niklas

    Thread Starter MMW

    (@moneymakewise)

    Hello @niklasinpsyde

    Many thanks for your quick response!
    Will wait for the fix next week then.

    Much appreciated.

    Regards,
    Yiannos

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