• Resolved CreationNation

    (@creationnation)


    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/.
    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ryanhungate

    (@ryanhungate)

    @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

    (@creationnation)

    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: https://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: [email protected]

    Plugin Author ryanhungate

    (@ryanhungate)

    @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

    (@ryanhungate)

    @creationnation also tell me exactly where you spotted this error, and what to select etc.

    Plugin Support khungate

    (@khungate)

    Hi @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. 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.