Title: jQuery Error
Last modified: August 22, 2016

---

# jQuery Error

 *  Resolved [olajideolaolorun](https://wordpress.org/support/users/olajideolaolorun/)
 * (@olajideolaolorun)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-26/)
 * I keep getting this error in my console log
 * `ReferenceError: jQuery is not defined gigpress.js:1`
 * [https://wordpress.org/plugins/gigpress/](https://wordpress.org/plugins/gigpress/)

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

 *  Thread Starter [olajideolaolorun](https://wordpress.org/support/users/olajideolaolorun/)
 * (@olajideolaolorun)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/jquery-error-26/#post-5433724)
 * So we found the problem on another forum:
    [https://wordpress.org/support/topic/jetpack-cutting-my-site?replies=22#post-6200270](https://wordpress.org/support/topic/jetpack-cutting-my-site?replies=22#post-6200270)
 * >  Oh, I see what the problem is here. GigPress adds some Javascript code requiring
   > the jQuery library to work, but that code is added before the jQuery library
   > itself.
   >  [http://i.wpne.ws/YPfB](http://i.wpne.ws/YPfB) Could you contact the
   > GigPress plugin authors, and ask them to make sure the GigPress Javascript 
   > file is added after jQuery? They can do so by adding jQuery as a dependency
   > when enqueuing the file, as explained here: [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 *  Thread Starter [olajideolaolorun](https://wordpress.org/support/users/olajideolaolorun/)
 * (@olajideolaolorun)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-26/#post-5433805)
 * Please fix this.
 *  [mrherbivore](https://wordpress.org/support/users/mrherbivore/)
 * (@mrherbivore)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/jquery-error-26/#post-5433806)
 * AFAIK, this is not a GigPress issue. GigPress properly enqueues jQuery, so it
   should always be available when GigPress’ javascript is called.
 * You can confirm this by switching to one of the default themes and seeing that
   the error does not occur.
 *  [fred53](https://wordpress.org/support/users/fred53/)
 * (@fred53)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-26/#post-5433818)
 * I noticed this same error on a theme I was using. I changed
 * `wp_enqueue_script('gigpress-js', plugins_url('scripts/gigpress.js', __FILE__),'
   jquery');`
 * To
 * `wp_enqueue_script('gigpress-js', plugins_url('scripts/gigpress.js', __FILE__),
   array('jquery'));`
 * This fixed the issue for us anyway. The deps should be an array according to 
   the docs for [wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script).
 *  [mrherbivore](https://wordpress.org/support/users/mrherbivore/)
 * (@mrherbivore)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-26/#post-5433819)
 * Nice catch Fred53, thanks – I’ll fix this in the next update.

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

The topic ‘jQuery Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gigpress_8434ab.svg)
 * [GigPress](https://wordpress.org/plugins/gigpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gigpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gigpress/)
 * [Active Topics](https://wordpress.org/support/plugin/gigpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gigpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gigpress/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [mrherbivore](https://wordpress.org/support/users/mrherbivore/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/jquery-error-26/#post-5433819)
 * Status: resolved