Uncaught ReferenceError: wp is not defined
-
Mobile menu not working because of a javascript failure when Easy Pricing Tables plugin is activated.
Dev console gives “Uncaught ReferenceError: wp is not defined” and “Uncaught SyntaxError: Invalid regular expression: /(?:\n\n)({0,3}(?:<([?%])[^\r]?\2>)[ \t](?=\n{2,}))/g: Nothing to repeat”
The source of the problem is this script id=”wp-data-js-after” created by the plugin.(function() { var userId = 0; var storageKey = "WP_DATA_USER_" + userId; wp.data.use(wp.data.plugins.persistence, { storageKey: storageKey }); } )();This script exists only when Easy Pricing Tables plugin is activated.
As soon Easy Pricing Tables plugin is desactivated, the problematic wp-data-js-after script is no longer present and there is no more javascript failure on the pages.
The topic ‘Uncaught ReferenceError: wp is not defined’ is closed to new replies.