• Resolved AmidaC

    (@amidac)


    My checkout won’t load after migrating from development site to live site. The environment is exactly the same as it’s on the same cloud server and mirrors the development site. Checking the web console I get the message:
    t.order_data is undefined, as well as SyntaxError: expected expression, got ‘<‘ See screenshot with more detail here:
    https://prnt.sc/mxwvmw

    Can someone advise?
    WooCommerce Stripe Gateway: version 4.1.15
    WP version: 5.1.1

    The url example is to the product page for you to add to basket and see result. Also screenshot of issue here:
    https://prnt.sc/mxwxe7

    Thanks in advance!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @amidac,

    What might be happening here is Stripe requires SSL to be on the site (HTTPS) for it to run correctly on a Live site. The error in your screenshot shows that it is missing this.

    Make sure that your Live site has SSL installed then test again. If you continue to have issues please let us know.

    Thread Starter AmidaC

    (@amidac)

    Hi @nixiack8 – thanks for the response but the issue still persists with the same two error messages…

    Hi @amidac,

    If this is the case, what I show from your site in this screenshot is that you have HTTPS showing across the top, but the certificate itself is not appearing to be valid. To fix this, reach out to your Host and they should be able to get this sorted, then it should work.

    Thread Starter AmidaC

    (@amidac)

    Not sure why it’s flagging that as an error as on the same page you’ll see it’s registered as valid, and also on the checkout page? I’ve also run a test on whynopadlock and it’s come back as valid. Please see screenshots below:

    https://prnt.sc/n39x1n

    https://prnt.sc/n39x41

    https://prnt.sc/n39x7y

    Hi @amidac,

    At this point it would be good to reach out to your Host, as they are the ones who handle SSL. For some reason it is being flagged as not valid, and we are unable to do anything regarding SSL. In that same screenshot in my previous response it also had some image items that were not served over SSL, so this also could be related (not likely, but possible).

    Please reach out to your Host and make sure that the Cert was set correctly, and it should start working πŸ™‚

    Thread Starter AmidaC

    (@amidac)

    Thanks @nixiack8 I’ve just spoken with the hosts and they have confirmed that the SSL is valid and correctly installed – also ran a test in a different site and it’s all valid, see screenshot: https://prnt.sc/n3q2ki – it also doesn’t return that error in the console of the other pages, nor the checkout where the issue lies?

    Thread Starter AmidaC

    (@amidac)

    Update: the padlock is showing and here is an updated screenshot with the stripe error in console – does that help?

    https://prnt.sc/n3qdfm

    Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hey @amidac,

    Glad to see your SSL is all good now. Were you able to solve this problem? If not, I would recommend testing for conflicts at this point. Something is leading to a JavaScript error. Here are the steps for conflict testing: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Let us now how it goes!

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

The topic ‘how to fix TypeError: t.order_data is undefined’ is closed to new replies.