Title: Random script errors causing site problems
Last modified: October 13, 2020

---

# Random script errors causing site problems

 *  Resolved [CreationNation](https://wordpress.org/support/users/creationnation/)
 * (@creationnation)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/)
 * I just finished troubleshooting an issue I’ve been having on my website for about
   2 weeks or so. I disabled and reenabled all 40-ish plugins and the Mailchimp 
   for WooCommerce is the one causing my error.
 * It’s random, but happens when refreshing the site (when enabled) at least 1 in
   8 times. What it was causing for me is my variation pricing would not load on
   my product pages and folks were able to order higher priced items for the lowest
   variation price. I assume because of the script error it caused this. Below is
   a sampling of the error that is generated when this plugin is enabled (has been
   fine for a long time – but I see last update involved the “notes”?):
 * Uncaught ReferenceError: Backbone is not defined
    at notes-common-v2.js?ver=8.9.1-
   202041:32 at notes-common-v2.js?ver=8.9.1-202041:158 admin-bar-v2.js?ver=8.9.1-
   202041:2 Uncaught ReferenceError: Backbone is not defined at admin-bar-v2.js?
   ver=8.9.1-202041:2 (index):2079 Uncaught TypeError: Cannot read property ‘setDefaults’
   of undefined at HTMLDocument.<anonymous> ((index):2079) at i (jquery.js?ver=1.12.4-
   wp:2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2) at Function.
   ready (jquery.js?ver=1.12.4-wp:2) at HTMLDocument.J (jquery.js?ver=1.12.4-wp:
   2) embed.js:6 [Deprecation] Synchronous XMLHttpRequest on the main thread is 
   deprecated because of its detrimental effects to the end user’s experience. For
   more help, check [https://xhr.spec.whatwg.org/](https://xhr.spec.whatwg.org/).
   q.getText @ embed.js:6 embed.js:6 Failed to load resource: the server responded
   with a status of 404 (Not Found) q.getText @ embed.js:6 embed.js:20 Uncaught 
   Error: xhrFailed at p (embed.js:2) at Function.q.getText (embed.js:6) at ra (
   embed.js:23) at b (embed.js:2) at embed.js:11 at ka (embed.js:20) at oa (embed.
   js:11) at embed.js:24 at b (embed.js:2) at Ya (embed.js:24)):
 * It would also cause the core jquery not to load. I currently have plugin disabled
   and all is running fine.
    -  This topic was modified 5 years, 8 months ago by [CreationNation](https://wordpress.org/support/users/creationnation/).

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

 *  Plugin Author [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * (@ryanhungate)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/#post-13564318)
 * [@creationnation](https://wordpress.org/support/users/creationnation/) this is
   a bad one to troubleshoot I’m sure but this is not related to our plugin. If 
   you look at the error trace, it’s telling you exactly where it is, in the admin-
   bar-v2.js file. Backbone not being defined.
 * What is your site url?
    What browser are you using? Are you logged in as an admin?
   Have you tried this as a private browsing session to simulate the customer’s 
   experience?
 * This is outside the scope of the plugin’s support but since it’s important for
   you to get your store loading correctly we’ll do our best to send you in the 
   right direction. We’ll try to see where this is happening and report back for
   you to look deeper.
 *  Thread Starter [CreationNation](https://wordpress.org/support/users/creationnation/)
 * (@creationnation)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/#post-13564571)
 * Hi Ryan,
 * I know it seems unrelated, but I literally spent time and went through turning
   off all plugins, and turning them back on one by one, and this plugin was the
   only one to generate the error when turned on. Maybe when on it causes something
   else to blow, that I am not sure – but I could replicate, and since having the
   plugin off I have no longer encountered the errors I was experiencing.
 * Site: [http://www.shiningsol.com](http://www.shiningsol.com)
    I tested this in
   Chrome, Firefox and Edge. All replicated. I tested logged in as admin and not
   as admin. I did not try as a private session but customers were the ones experiencing
   it (without knowing) because I lost some $ on orders where when the error happened,
   they could order a large size variation but it only charged them for the smaller
   size variation.
 * It’s been a little over a week now with no errors, and plugin off. I would be
   happy to turn it on for testing purposes to show you in real time the error happening–
   if you wanted to email to coordinate: [deron@creationnation.com](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/deron@creationnation.com?output_format=md)
 *  Plugin Author [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * (@ryanhungate)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/#post-13564611)
 * [@creationnation](https://wordpress.org/support/users/creationnation/) so one
   thing that I was thinking is – how recently did you install the plugin? What 
   version are you currently using? Have you tried a disconnect -> reconnect at 
   all?
 * The reason I’m asking is that we’ve never heard of this specific issue but there
   was something similar with people using the Dojo library and Braintree where 
   there was a conflict. That’s been resolved but you might need to re-configure
   your store to generate a new script.
 * Do you happen to have a staging environment that we could test with? If we have
   to troubleshoot on a production server that’s last on the list, but can be done.
   I’m available right now if you want to turn this on. Shouldn’t take but maybe
   15 minutes to “see” the problem and you can then turn it off.
 * Please ping me when you’ve done that – and I’ll be on it fast.
 *  Plugin Author [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * (@ryanhungate)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/#post-13564618)
 * [@creationnation](https://wordpress.org/support/users/creationnation/) also tell
   me exactly where you spotted this error, and what to select etc.
 *  Plugin Support [khungate](https://wordpress.org/support/users/khungate/)
 * (@khungate)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/#post-13732317)
 * Hi [@creationnation](https://wordpress.org/support/users/creationnation/), We’re
   going to close out this ticket for now since it’s been a few weeks since we’ve
   been in touch.
 * Please let us know if you still need any help and we’ll be glad to reopen and
   troubleshoot further. Please note, the best way to reach us is over at the [GitHub plugin page.](https://github.com/mailchimp/mc-woocommerce/)
   From there, you can receive direct responses from the development team, log new
   issues, download the latest version, and track existing support tickets.

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

The topic ‘Random script errors causing site problems’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-woocommerce/assets/icon-256x256.png?rev=1509501)
 * [Mailchimp for WooCommerce](https://wordpress.org/plugins/mailchimp-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [khungate](https://wordpress.org/support/users/khungate/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/random-script-errors-causing-site-problems/#post-13732317)
 * Status: resolved