最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - "jQuery Not Defined" Error When Connecting to PayPal

programmeradmin3浏览0评论

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.

I am attempting to create a new blog and web store with a self-hosted WordPress site. The site is running on a machine running the latest version of Ubuntu Server and apache2. I am using the plugin "WP Simple PayPal Shopping Cart" to create a way for users to checkout. 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 but to see the issue you'll need to add this fake item to your cart at broketrainenthusiast/example/ and then initiate a purchase by clicking the PayPal button on broketrainenthusiast/cart/ (don't worry. it's in Sandbox mode).

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

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.

I am attempting to create a new blog and web store with a self-hosted WordPress site. The site is running on a machine running the latest version of Ubuntu Server and apache2. I am using the plugin "WP Simple PayPal Shopping Cart" to create a way for users to checkout. 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 but to see the issue you'll need to add this fake item to your cart at broketrainenthusiast/example/ and then initiate a purchase by clicking the PayPal button on broketrainenthusiast/cart/ (don't worry. it's in Sandbox mode).

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

Share Improve this question edited Aug 10, 2020 at 15:56 bravokeyl 3,3776 gold badges27 silver badges33 bronze badges asked Aug 8, 2020 at 16:59 MacBook1MacBook1 1
Add a comment  | 

1 Answer 1

Reset to default 0

This could be caused by the WordPress 5.5 update which has removed jQuery. I'd suggest trying the Enable jQuery Migrate Helper plugin.

发布评论

评论列表(0)

  1. 暂无评论