• Resolved fanglinx

    (@fanglinx)


    Hi, I used the wizard set up to link my live business Paypal account. And I found my site crashed with Fatal Error Uncaught TypeError showed on the screen. I tried to find the solution on the platform. It seems I have the exact same problem in here. However, I didn’t see any solution available in this thread.
    The following is my error logs

    CRITICAL Uncaught TypeError: Return value of WooCommerce\PayPalCommerce\Button\Assets\SmartButton::get_3ds_contingency() must be of the type string, null returned in /www/wwwroot/www.cooeyewear.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/class-smartbutton.php:611
    Stack trace:
    #0 /www/wwwroot/www.cooeyewear.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/class-smartbutton.php(693): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->get_3ds_contingency()
    #1 /www/wwwroot/www.cooeyewear.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/class-smartbutton.php(412): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->localize_script()
    #2 /www/wwwroot/www.cooeyewear.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/class-buttonmodule.php(73): WooCommerce\PayPalCommerce\Button\Assets\SmartButton->enqueue()
    #3 /www/wwwroot/www.cooeyewear.com/wp-includes/class-wp-hook.php(303): WooCommerce\PayPalC in /www/wwwroot/www.cooeyewear.com/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/class-smartbutton.php on line 611

    Also, I found that the same issue post here showed that this is a bug and it’ll be fixed in next version.
    Therefore, should I wait for the 1.6.1 version or there is a good solution to fix that problem? Thanks a lot!

    • This topic was modified 4 years, 7 months ago by fanglinx.

    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 @fanglinx,

    The 1.6.1 update has been released with a fix for this issue.
    Apologies for the trouble.
    Please update to the latest version and let us know if any issues remain.
    Thanks!

    Kind regards,
    Niklas

    Thread Starter fanglinx

    (@fanglinx)

    hi @niklasinpsyde.
    Thanks for the quick response and update. The problem is solved perfectly in the 1.6.1 update! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error:Uncaught TypeError showed when I activated the plugin’ is closed to new replies.