Cornerstone update broke Javascript

Updated plugin “Cornerstone” to version 3.3.6 from 3.0.4

JS errors in console:
x-body.min.js?ver=6.0.4:1
Uncaught TypeError: window.csGlobal.collapse is not a function
at HTMLDocument. (x-body.min.js?ver=6.0.4:1)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)

I rolled back Cornerstone, and JS is happy again.

Still broken with other plugins disabled.

Please advise how to proceed…

X theme was an older version, and apparently you need to keep them both updated simultaneously to keep things from breaking.

Hi @ttremain,

Thank you for reaching out to us. Yes always make sure to update both X and Cornerstone to the latest version to avoid such errors and potential conflicts. You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.

After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.