Critical JS error from CookieYes – “Cannot redefine property: src”
-
I’m getting the following critical JavaScript error in the browser console:
Uncaught TypeError: Cannot redefine property: src at document.createElement (<anonymous>)This error originates in the file
script.jsloaded by the CookieYes plugin. It appears that the plugin is trying to override or redefinedocument.createElementor a native property likesrc, which causes aTypeErrorand breaks other JavaScript functionality on my site, especially in the WooCommerce checkout.I tested this by disabling CookieYes, and the error disappears immediately.
The topic ‘Critical JS error from CookieYes – “Cannot redefine property: src”’ is closed to new replies.