jQuery errors after update to 2.1.x

Hi there,

I’m trying to develop a new website with Theme X and Cornerstone. It all worked fine, until I updated to the new version.

Now I get errors on multiple pages.

The first error I get on a page with a classic slider element is:

cs-body.js?ver=2.1.3:2212 Uncaught TypeError: jQuery.easing[jQuery.easing.def] is not a function
at Object.swing (cs-body.js?ver=2.1.3:2212)
at init.run (jquery.js?ver=1.12.4:4)
at i (jquery.js?ver=1.12.4:4)
at n.fx.tick (jquery.js?ver=1.12.4:4)

The pages crashes in a way that I can’t edit or save the page. It fires about 200000 errors until the server crashes with a 500 error.

I narrowed the error down to the classic slider element. If I remove that element it doesn’t give me the error.

A temporary workaround is to out-comment this part of the code in cs-body.js:

return jQuery.easing[jQuery.easing.def](t, e, n, i, o)

The second error I get on all pages:

Uncaught TypeError: this.dropzones[b].toggle is not a function
at n.refresh (media-views.min.js?ver=4.8.2:4)
at n.containerDragover (media-views.min.js?ver=4.8.2:4)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)

This error fires a couple of hundred times on the backend on some pages.

Another error I see on all pages:

Template compile error Error: SCRIPT tags are not allowed in HTMLBars templates (on line 1)
at validateStartTag (cs-vendor.js:131056)
at Parser.finishStartTag (cs-vendor.js:130916)
at Parser.finishTag (cs-vendor.js:130900)
at EventedTokenizer.afterAttributeValueQuoted (cs-vendor.js:133047)
at EventedTokenizer.tokenizePart (cs-vendor.js:132689)
at Parser.ContentStatement (cs-vendor.js:130697)
at Parser.acceptNode (cs-vendor.js:130543)
at Parser.Program (cs-vendor.js:130601)
at Parser.acceptNode (cs-vendor.js:130543)
at Object.preprocess (cs-vendor.js:130502)

I’m not sure where all these errors are coming from. If it is a conflict with something else, or corrupt files. I got these errors after updating to 2.1.x

Do you guys know where all these errors are coming from?

Hello There,

Thank you for the very detailed post information. It seems that you are experiencing cache issues. Since you are using SiteGround, could you please clear your site cache or temporarily disable the supercacher in your hosting panel? The SuperCacher is developed by SiteGround exclusively for their customers. It increases the number of hits a site can handle and boosts the website loading speed. The SuperCacher includes 4 different caching options for maximum optimization of your websites. You can access the tool by clicking on the SuperCacher icon in your cPanel. For more information about this, please check it out here: https://www.siteground.com/tutorials/supercacher/supercacher_intro.htm

And by the way, please also clear your browser cache or use private browsing mode and test your site again.

Hope this helps.

Hi There!

Thanks for your reply. I’ve checked the caching in the cPanel and it was already switched of.

I checked the site again in private browsing mode, and the exact same problems occur.

What can I do next?

I tested the Class Slider in my test site and it does not give errors in the console so there is most probably a script somewhere in your site that is causing conflict. Please do the following:

  1. Clear all caches including browser cache again then deactivate your caching plugins and other optimization plugins.

  2. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  3. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  4. Remove custom CSS, Javascript and templates.

Thanks.

Okay so I’ve tested for plugin errors. Apparently the conflict is between the slider component and the WooCommerce Multilingual (WPML) plugin. Which doesn’t make sense to me since there are no products on this particular page.

How to proceed from here? Did this popup somewhere else already?

Hello There,

Thanks for updating in! I have revisited your site and I could no longer see any JS error. It seems the JS issue was resolved already. You can check out my screenshot here: http://prntscr.com/gzm0k5

The only remaining issue is the repeating image which is coming from The Grid. This is a known issue between Cornerstone and The Grid plugin. I’ve submitted this issue already to our issue tracker so the developers will be made aware of it and take action for further investigation.

Please bear with us.

Hi There,

Thank you for taking the time to check the error and log in.

Can you please check again? I had disabled the Woocommerce Multilangual plugin, to prevent my server from crashing! I have enabled the plugin again.

Tom

It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

Thank you for your understanding.