Support » Plugin: WooCommerce PayPal Checkout Payment Gateway » Issue with Litespeed Server and Smart Buttons on WooCommerce product pages

  • Resolved gferguson78

    (@gferguson78)


    Hi there,

    I’ve been having issues with this for a while and only recently setup a whole new empty WooCommerce installation to investigate. It seems that the PayPal Smart Buttons on product pages do not work correctly when the page has been cached by Litespeed Server. When I click on the ‘Buy Now’ button from a product page which has previously been cached the PayPal popup appears but then quickly disappears. The error returned is as follows:

    ‘undefined is not an object (evaluating ‘response.data.messages’)’

    This error is returned from the file /wc-gateway-ppec-smart-payment-buttons.js?ver=1.6.17:125:40

    I appreciate that this is an issue with the page being cached but I’m hoping there may be some way to exclude whatever data the page requires to send over to PayPal from the cache in order to make this work correctly without having to uncache all product pages completely.

    The issue is only with Smart Buttons on product pages, the plugin works fine at checkout. I’m having a similar issue with the Stripe payment plugin as well.

    The site I’ve tested this on was a fresh install of WordPress 5.22 with the latest WooCommerce v3.7. The only plugins installed were Litespeed Cache and WooCommerce Paypal Checkout Payment Gateway.

    Many thanks,
    Gordon

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support melinda a11n

    (@melindahelt)

    Automattic Happiness Engineer

    Hi there!

    Since you are having issues with both payment gateways, Please contact us at WooCommerce.com > My Account > Tickets. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.

    Thread Starter gferguson78

    (@gferguson78)

    I’m currently in touch with Litespeed devs about this as it appears the Litespeed cache is causing the issue. If they are unable to help though and refer me to the plugin developers for a fix I’ll create a ticket on WooCommerce.

    Thanks for your help.

    Plugin Support melinda a11n

    (@melindahelt)

    Automattic Happiness Engineer

    Thanks for the update!

    I’m going to close out this thread for now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with Litespeed Server and Smart Buttons on WooCommerce product pages’ is closed to new replies.