• Resolved Troglos

    (@troglos)


    If MP3 is activated I get this error:

    Uncaught ReferenceError: jQuery is not defined
        at Object.<anonymous> (public.js?ver=3.0.0-beta.25:151)
        at __webpack_require__ (public.js?ver=3.0.0-beta.25:20)
        at Object.<anonymous> (public.js?ver=3.0.0-beta.25:73)
        at __webpack_require__ (public.js?ver=3.0.0-beta.25:20)
        at Object.<anonymous> (public.js?ver=3.0.0-beta.25:48)
        at __webpack_require__ (public.js?ver=3.0.0-beta.25:20)
        at public.js?ver=3.0.0-beta.25:40
        at public.js?ver=3.0.0-beta.25:43

    and more precisely at #149 of public.js

    /***/ function(module, exports) {
    module.exports = jQuery;
    /***/ }

    Any suggestion?
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Troglos,

    Thank you for the issue report.
    Could you please let us know on which page(s) do you get this error, and if you use any MailPoet widgets on your site?
    That will help us to understand the issue better. Thanks!

    Regards,
    MailPoet Team.

    Thread Starter Troglos

    (@troglos)

    I just found the culprit.
    I had in functions.php the following:

    /**
     * Move jQuery to the footer. 
     */
    function wpse_173601_enqueue_scripts() {
        wp_scripts()->add_data( 'jquery', 'group', 1 );
        wp_scripts()->add_data( 'jquery-core', 'group', 1 );
        wp_scripts()->add_data( 'jquery-migrate', 'group', 1 );
    }
    add_action( 'wp_enqueue_scripts', 'wpse_173601_enqueue_scripts' );

    It’s ok with other plugins but not with MP3

    Re,

    Thanks for the update and we’re glad that you found the culprit!

    MailPoet Team.

Viewing 4 replies - 1 through 4 (of 4 total)

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