• mrbobi

    (@mrbobi)


    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.



    • This topic was modified 9 months ago by mrbobi.
Viewing 1 replies (of 1 total)
  • Plugin Support gavinohanlon

    (@gavinohanlon)

    Hi Mrbobi,

    Thank you for bringing this to our attention. We have received your report regarding the JavaScript error and are currently investigating the issue.

    We will keep you updated on any progress.

    If you have any questions in the meantime, please don’t hesitate to reach out.

    All the best.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught ReferenceError: wp is not defined’ is closed to new replies.