Title: Uncaught ReferenceError
Last modified: September 6, 2016

---

# Uncaught ReferenceError

 *  Resolved [Manux_oS](https://wordpress.org/support/users/manux_os/)
 * (@manux_os)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/)
 * Hi Danny how are you?
 * I noticed with chromes developer tools an error.
 * Uncaught ReferenceError: jQuery is not defined
 * This is a popular error that came up few months ago. My theme also had this error.
 * You can check my hope page TechValue.gr with chrome > more tools > developers
   tools to see the error.
 * Is it possible to be fixed?
 * Thanks 🙂
 * Regards, Manos
    -  This topic was modified 9 years, 9 months ago by [Manux_oS](https://wordpress.org/support/users/manux_os/).

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

 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8147610)
 * Hi Manu,
 * I’m fine, thanks 😉
 * Can you remove the PHP code with Grid WUD, and use Grid WUD in a post/page?
    
   Is the error gone?
 * Can you return me the exact PHP code you are using to display the Grid WUD?
    
   Seem to be that jQuery is not loaded at the time you request it.
 * Regards, Danny
 *  Thread Starter [Manux_oS](https://wordpress.org/support/users/manux_os/)
 * (@manux_os)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8147743)
 * This is my php code:
 *     ```
       <div class="wud">
       <?php if( is_front_page())	: ?>
       <?php echo do_shortcode('[gridwud slug="10092,11713,13074,10678,12169" button="1"]'); ?>
       <?php endif;?>
       </div>
       ```
   
 * I removed my php code cleaned cache etc and tried just the shortcode:
 *     ```
       [gridwud slug="10092,11713,13074,10678,12169" button="1"]
       ```
   
 * inside a post and i also get the same error there.
 * Is only me getting this error?
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8147769)
 * I don’t know or you have this problem only …
    Some try-outs …
 * 1
    Try to remove on grid-wud.js next code:
 *     ```
       //<![CDATA[
   
       and
   
       //]]> 
       ```
   
 * Give this a better result?
 * 2
    in wp-config file add the line:
 *     ```
       define(‘CONCATENATE_SCRIPTS’, false );
       ```
   
 * Is this error now gone?
 * Let me know the results 😉
    Regards, Danny
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8147854)
 * The biggest difference between your site and mine is next:
    This is loaded at
   your site:
 *     ```
       /wp-content/plugins/jch-optimize/assets/wp-content/plugins/nz/1/0/da1a9f913f8cc705f3740dc63becae17.js
       ```
   
 * This on my site
 *     ```
       /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
       ```
   
 * So i load the WordPress default one and you with a plugin.
    Therefore the line:
 *     ```
       define(‘CONCATENATE_SCRIPTS’, false );
       ```
   
 * would solve this issue, or disable the plugin to see or the errors are gone.
 * see also your next error:
 *     ```
       jquery.magnific-popup.min.js:4 Uncaught TypeError: e is not a function
       ```
   
 * Regards, Danny
    -  This reply was modified 9 years, 9 months ago by [AccountClosed](https://wordpress.org/support/users/wistudatbe/).
    -  This reply was modified 9 years, 9 months ago by [AccountClosed](https://wordpress.org/support/users/wistudatbe/).
    -  This reply was modified 9 years, 9 months ago by [AccountClosed](https://wordpress.org/support/users/wistudatbe/).
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8147923)
 * Whenever you opt to use jQuery in a project, this means that jQuery becomes a
   dependency for your work.
    And whenever you’re working with dependencies, you
   generally need to make sure that they are loaded before your code so that your
   code can take advantage of it. Your plugin which load jQuery, instead the WP 
   default one, loads to late and after we are requesting a jQuery function, which
   caused this issue.
 * Regards, Danny
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8154286)
 * It seems to be resolved now, happy to see it.
    What did you changed?
 * Regars, Danny
 *  Thread Starter [Manux_oS](https://wordpress.org/support/users/manux_os/)
 * (@manux_os)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8156597)
 * Hi Danny,
 * Thanks for your detailed answer and help! Sorry for my late reply,i was trying
   to fix it and didn’t have much free time.
 * I always wanted to replace my minify/combine plugin with w3 total cache but didn’t
   have much time. So now i did it.
 * I did manually minify/combine and placed grid-wud.js before </body>.
 * That was the fix in my case. It wasn’t a plugin bug or anything like this.
 * Regards, Manos
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8158187)
 * Hi Manos,
    Thank you very much for you reply! I’m happy to hear that it wasn’t
   an bug from my plugin. Regards, Danny

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

The topic ‘Uncaught ReferenceError’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/grid-wud_b6d1ea.svg)
 * [Grid WUD](https://wordpress.org/plugins/grid-wud/)
 * [Support Threads](https://wordpress.org/support/plugin/grid-wud/)
 * [Active Topics](https://wordpress.org/support/plugin/grid-wud/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/grid-wud/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/grid-wud/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [jquery error](https://wordpress.org/support/topic-tag/jquery-error/)
 * [ReferenceError](https://wordpress.org/support/topic-tag/referenceerror/)
 * [uncaught](https://wordpress.org/support/topic-tag/uncaught/)

 * 8 replies
 * 2 participants
 * Last reply from: [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-7/#post-8158187)
 * Status: resolved