• Has anyone came over this one ?

    On my WP localhost install, I have a jQuery not defined error in my Firebug console.
    After setting display errors to true, everything is ok.

    I don’t want to show notices/errors to my users, so what is the cause of this strange behaviour ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What’s the full message showing up in the console?

    Thread Starter pildit

    (@pildit)

    ReferenceError: jQuery is not defined
    http://localhost/gokid/
    Line 16

    ReferenceError: jQuery is not defined

    ado.config({mode:"old",xml:false,characterEncoding:true});ado.preview({enabled:t...

    I think the problem is that the HTML is malformed when errors are not shown. If I turn on errors display, suddenly the HTML source is correctly formatted, without it, the page source looks really messy, something like a minified version.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you know if this belongs to your theme or a plugin?

    Thread Starter pildit

    (@pildit)

    No, I don’t know, how can I check out ?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try deactivating all of your plugins to explore whether it’s an issue with your theme.

    Thread Starter pildit

    (@pildit)

    Oh no, I have other problems now…i switched to my child theme and nothing works anymore.

    Fatal error: require_once(): Failed opening required ‘C:\xampp\htdocs\gokid/wp-content/themes/Newspaper-child/includes/wp_booster/td_block.php’ (include_path=’.;C:\xampp_new\php\PEAR’) in C:\xampp\htdocs\gokid\wp-content\themes\Newspaper-child\classes\td_block_rewrited.php on line 3

    It seems it’s using the TEMPLATE_DIRECTORY of its parent theme.
    I can’t access wp-admin anymore..how can I reset the themes without using the Admin section ?

    Rename the theme folder Newspaper-child to something else to force WP to use the default twentyfifteen or twentysixteen theme.

    Thread Starter pildit

    (@pildit)

    I solved it .. still have problemes with the HTML formatting

    HTML of the theme? Where did you download the Newspaper theme from?

    Thread Starter pildit

    (@pildit)

    I deactivated all the plugins and now it works ok.
    THanks for your help

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

The topic ‘jQuery not defined disappears after turning errors on’ is closed to new replies.