Ecwid 6.7.2 Uncaught ReferenceError
-
Issue
Upgrading Ecwid plugin from 6.7.1 to 6.7.2 results in JS error that prevents other plugins correctly displaying non-Ecwid page content.
Versions
- Ecwid Ecommerce Shopping Cart 6.7.2
- WordPress 5.2.1
Experience
- WordPress and all plugins up-to-date for several days without issue.
- Update Ecwid to 6.7.2
- Clear server cache
- Clear browser cache
- Visit front-page of site and none of the background-images load.
- The font-page is not an Ecwid page.
- The missing images aren’t listed in the Network Panel as failed resources. They aren’t listed at all.
- An “Uncaught ReferenceError: is logged to the browser console.
- The reference error occurs in multiple browsers (current releases).
- Restoring from backup to rollback plugin to 6.7.1 fixes issue.
Logs
The Console logs is for
frontend.js?ver=6.7.2:42Uncaught ReferenceError: Ecwid is not defined at HTMLDocument.<anonymous> (frontend.js?ver=6.7.2:42) 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)The corresponding source is (ln 42 – 45):
Ecwid.OnAPILoaded.add(function() { var font = window.ec.config.chameleonDefaults.font['font-family'] || ''; document.cookie = "ec_store_chameleon_font=" + font; });
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Ecwid 6.7.2 Uncaught ReferenceError’ is closed to new replies.