• Resolved broketrainenthusiast

    (@broketrainenthusiast)


    Hello,
    I have been looking all over Google for hours now and am very confused. Everyone has a different answer, and most don’t explain where to put the code snippet that they post.

    The site is running on a machine running the latest version of Ubuntu Server and apache2. On the checkout page, attempting to checkout with PayPal Express will cause the ReferenceError: jQuery is not defined” error, seemingly due to a javascript file on PayPal’s servers.

    I am not sure how to fix this. I am aware that jQuery should be loaded before anything attempts to run it, but I have no idea how to do that, or if it’s already correct and that isn’t the issue at all. I also saw that some speed boosting plugins could cause the issue but I have not installed any of them. Any help would be appreciated.

    The site is broketrainenthusiast.com but to see the issue you’ll need to add this fake item to your cart at broketrainenthusiast.com/example/ and then initiate a purchase by clicking the checkout button on broketrainenthusiast.com/cart/ (don’t worry. it’s in Sandbox mode).

    Like I said, any help with this would be appreciated, as this error prevents any successful transaction from occurring.

    Thank you for your time,
    Eric

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I ran a check as per your instructions above and I don’t see any error messages pop up when I click on the PayPal button. The PayPal window opens up ready for me to enter my payment details. However I do see the error messages via the Developer Tools in the browser Google Chrome.

    Have you carried out a plugin/theme conflict test yet?

    Also when running in Sandbox mode things can get complicated. Please read the following comment from one of the developers.

    Kind regards.

    Thread Starter broketrainenthusiast

    (@broketrainenthusiast)

    Hello,

    The error message only appears after you click the pay button in the PayPal window and it attempts to return you to my website. Thats where the transaction fails, however you can see the error in the console immediately after clicking the PayPal button to launch the checkout window.

    I am not sure how to perform these tests, but I have disabled all other plugins and this didn’t solve the issue. I am using the default TwentyTwenty theme.

    Additionally, the error appears regardless of if I am using Sandbox or Live mode.

    I hope this info helps!
    Thank you for your time,
    Eric

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    The error message only appears after you click the pay button in the PayPal window and it attempts to return you to my website.

    Have you set up PayPal IPN in your account? If you haven’t please do so and then carry out a test.

    Kind regards

    • This reply was modified 5 years, 7 months ago by mbrsolution.
    Thread Starter broketrainenthusiast

    (@broketrainenthusiast)

    Hello,

    I have enabled IPN but there is no difference. I should clarify, the Error that appears when it returns the user to my site is the same error that the console shows. It doesn’t actually alert the user until they leave the PayPal window back to the original page, however the error occurs immediately after launching the PayPal window in the first place. It seems to be an issue with jQuery on my site.

    Thank you for your time,
    Eric

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi Eric,

    Yes this seems to be unique to your site/server. No other user of our plugin is reporting this error.

    Check to see if a caching system is running in your site or server. This could be causing this issue.

    You might also have to speak to your host about this issue. Let me know what they say. I am curious to know myself.

    Thank you

    Thread Starter broketrainenthusiast

    (@broketrainenthusiast)

    Hello,

    It’s back to the drawing board then, as I am my own host. If I do find a solution to the problem I’ll be sure to let you know!

    Thank you for all of your time and help,
    Eric

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi Eric,

    It’s back to the drawing board then, as I am my own host.

    Make sure you have the necessary PHP extensions to run WordPress in your server. Also check your PHP and MySQL versions.

    Kind regards

    Thread Starter broketrainenthusiast

    (@broketrainenthusiast)

    My solution now that jQuery was phased out anyway was to just load it using a script tag in the header of my cart page. everything works great now!

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I am glad you found a solution πŸ™‚

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

The topic ‘Getting jQuery Error When Checking Out’ is closed to new replies.