HomePage › Forums › Themes Support › Shopic – Multipurpose WooCommerce WordPress Theme › Jquery Error
- This topic has 3 replies, 2 voices, and was last updated 3 years, 4 months ago by Billy Nguyen.
-
AuthorPosts
-
December 13, 2020 at 4:56 am #2519rydeasllcSupport Expired
Wehn updating Elementor Pro, The Shopic js is now throwing an error:
jquery.min.js?ver=3.5.1:formatted:4019 Uncaught TypeError: e.indexOf is not a function at S.fn.init.S.fn.load (jquery.min.js?ver=3.5.1:formatted:4019) at elementor-frontend-1f516338a7cfabf68360a8dc333fcffc.js:formatted:36 at _runHook (frontend.min.js?ver=3.0.14:formatted:3115) at Object.doAction (frontend.min.js?ver=3.0.14:formatted:3140) at e.exports.runReadyTrigger (frontend.min.js?ver=3.0.14:formatted:4381) at HTMLDivElement.<anonymous> (frontend.min.js?ver=3.0.14:formatted:3296) at Function.each (jquery.min.js?ver=3.5.1:formatted:160) at S.fn.init.each (jquery.min.js?ver=3.5.1:formatted:78) at _default.runElementsHandlers (frontend.min.js?ver=3.0.14:formatted:3295) at _default.onInit (frontend.min.js?ver=3.0.14:formatted:3312)
I debugged and it appears that the Shopic js is using vendored Elementor code and the deprecated window.load function. The js needs to be updated:
The affected js file is [site]/wp-content/cache/min/1/wp-content/themes/shopic/assets/js/elementor-frontend-1f516338a7cfabf68360a8dc333fcffc.js:formatted
December 13, 2020 at 5:34 am #2520rydeasllcSupport ExpiredHere are the versions of Elementor that have this problem:
Elementor
Version 3.0.14Elementor Pro
Version 3.0.8On our staging site, these versions have no problem:
Elementor
Version 3.0.13Elementor Pro
Version 3.0.5December 13, 2020 at 7:57 am #2521rydeasllcSupport ExpiredI further diagnosed the issue, and it turns out it is not Elementor.
The problem is due to the Shopic theme not being updated to be compatible with the version of jQuery that is vendored into WordPress 5.6.
Wordpress 5.6 features an updated version of jQuery that is 4 years newer than the one in WordPress 5.5.6.
Here is more information:
https://wishdesk.com/blog/new-wordpress-5-6-break-sites-on-december-2020
December 14, 2020 at 10:43 am #2537Hi there,
I have just checked your site. Very, very plugins install on your site.
#1. Backup your site when update WordPress version.
#2. Deactivate all plugins and re-check
#3. Active Twenty Twenty-One theme and re-check. -
AuthorPosts
You must be logged in to reply to this topic.