Title: ReferenceError: jQuery is not defined.
Last modified: May 10, 2019

---

# ReferenceError: jQuery is not defined.

 *  Resolved [Sjors](https://wordpress.org/support/users/sjource/)
 * (@sjource)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-4/)
 * Hello gVectors Team,
 * First of all, thanks for making this plug-in. I really like it so far. I do have
   a small problem though. I get a _ReferenceError: jQuery is not defined_ when 
   I look at the console.
 * I think it’s because my theme (GeneratePress) doesn’t use jQuery by default while
   WPForo tries to load this script.
 *     ```
       <script type="text/javascript">
       			jQuery(document).ready(function($){
                       var wpforo_wrap = $('#wpforo-wrap');
       				$(wpforo_wrap).on('click','.attach_cant_view', function(){
                          wpforo_notice_show("<p>You are not permitted to view this attachment</p>");
       				});
       			});
       		</script>
       ```
   
 * I’m not 100% sure what this script does, but if it prevents guests from viewing
   attachments, then I don’t think I need it. Everyone, including guest, are allowed
   to view them. Is there a way to safely remove this script or is it necessary 
   for something else and do I need to load jQuery somehow?
 * Thanks!
    -  This topic was modified 7 years, 1 month ago by [Sjors](https://wordpress.org/support/users/sjource/).

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

 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-4/#post-11520564)
 * Hi [@sjource](https://wordpress.org/support/users/sjource/),
 * Could you please leave your forum URL to allow us to check it?
 *  Thread Starter [Sjors](https://wordpress.org/support/users/sjource/)
 * (@sjource)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-4/#post-11520767)
 * Thanks for the fast reply!
 * I’ve made a [quick testsite](https://opensjource.nl) to exclude other possible
   causes. The error appears when visiting all pages except for the [forum page](https://opensjource.nl/community/).
    -  This reply was modified 7 years, 1 month ago by [Sjors](https://wordpress.org/support/users/sjource/).
    -  This reply was modified 7 years, 1 month ago by [Sjors](https://wordpress.org/support/users/sjource/).
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [7 years ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-4/#post-11529643)
 * Hi [@sjource](https://wordpress.org/support/users/sjource/),
 * The issue will be fixed in the next version release. Please wait for the next
   update.

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

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

 * ![](https://ps.w.org/wpforo/assets/icon-256x256.png?rev=2121644)
 * [wpForo Forum](https://wordpress.org/plugins/wpforo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforo/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforo/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-4/#post-11529643)
 * Status: resolved