Unable to redirect to Paypal at checkout because of duplicate id _wpnonce
-
Hi,
My checkout page throws this error anytime I want to proceed to Sandbox Paypal, making a purchase. As it involves fbevents.js and checkout.min.js it could be a bug caused by Woocommerce or PixelYourSite’s plugin which adds a FB Purchase Pixel to checkout among others. Also I’m using their other plugin for creating FB product feeds.
The error the checkout returns after clicking on Proceed to Paypal is:
SyntaxError: Unexpected token D in JSON at position 2
When checking the tool XHR and Fetch the console throws these js errors:
[DOM] Found 2 elements with non-unique id #_wpnonce <input type="hidden" id="_wpnonce" name="_wpnonce" value="b54635f4c7"> and eb9f44e055 Unable to fix malformed JSON | checkout.min.js Resource interpreted as Document but transferred with MIME type image/gif facebook.com/tr | fbevents.js
Also when I check findgoodhealth.org/checkout/?wc-ajax=checkout the page throws this text:
{"result":"failure","messages":"<ul class=\"woocommerce-error\">\n\t\t\t<li>We were unable to process your order, please try again.<\/li>\n\t<\/ul>\n","refresh":true,"reload":false}
Console doesn’t return anything.
Thanks for the attention and I hope we can fix this.
The page I need help with: [log in to see the link]
- The topic ‘Unable to redirect to Paypal at checkout because of duplicate id _wpnonce’ is closed to new replies.