Title: ReferenceError: Query is not defined
Last modified: September 29, 2017

---

# ReferenceError: Query is not defined

 *  Resolved [wunch](https://wordpress.org/support/users/wunch/)
 * (@wunch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/referenceerror-query-is-not-defined/)
 * Using the Twitter shortcode, you get a “ReferenceError: Query is not defined”
   in the javascript console. This also causes subsequent javascript-based things
   to potentially fail.
 * This is because you have a typo in [line 684 of feeds/twitter/twitter-feed.php](https://plugins.trac.wordpress.org/browser/feed-them-social/trunk/feeds/twitter/twitter-feed.php#L684):
 *     ```
       // this makes it so the page does not scroll if you reach the end of scroll bar or go back to top
                            if ($twitter_height !== 'auto' && empty($twitter_height) == NULL) { ?><script>Query.fn.isolatedScrollTwitter = function () {this.bind('mousewheel DOMMouseScroll', function (e) {var delta = e.wheelDelta || (e.originalEvent && e.originalEvent.wheelDelta) || -e.detail,bottomOverflow = this.scrollTop + jQuery(this).outerHeight() - this.scrollHeight >= 0,topOverflow = this.scrollTop <= 0;if ((delta < 0 && bottomOverflow) || (delta > 0 && topOverflow)){e.preventDefault();}});return this;};jQuery('.fts-twitter-scrollable').isolatedScrollTwitter();</script><?php }
       ```
   
 * That first statement after the opening script tag should be “jQuery”, not “Query”.
 * Looks like you introduced this bug in [1709777](https://plugins.trac.wordpress.org/changeset/1709777/).

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

 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/referenceerror-query-is-not-defined/#post-9543095)
 * Awesome catch and I can verify this! I’m going to push an update for this today.
   Thanks again for the heads up and have a great weekend 🙂
 * Spencer
 *  [damon7620](https://wordpress.org/support/users/damon7620/)
 * (@damon7620)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/referenceerror-query-is-not-defined/#post-9543357)
 * We just pushed a silent update to fix the issue. Please delete and reinstall 
   the free version of the plugin! Enjoy your weekend 🙂
 *  Thread Starter [wunch](https://wordpress.org/support/users/wunch/)
 * (@wunch)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/referenceerror-query-is-not-defined/#post-9543509)
 * Awesome. It’s working now, thanks! 🙂
 *  [damon7620](https://wordpress.org/support/users/damon7620/)
 * (@damon7620)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/referenceerror-query-is-not-defined/#post-9543519)
 * Awesome, that is good news!
 * If you have a second and wouldn’t mind leaving a review for us, we would be very
   grateful.
    [https://wordpress.org/support/view/plugin-reviews/feed-them-social](https://wordpress.org/support/view/plugin-reviews/feed-them-social)
 * Or if you have a facebook account and want to leave a review for us there, that
   would be awesome too.
    [https://www.facebook.com/SlickRemix/reviews?ref=page_internal](https://www.facebook.com/SlickRemix/reviews?ref=page_internal)

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

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

 * ![](https://ps.w.org/feed-them-social/assets/icon-256x256.jpg?rev=998039)
 * [Feed Them Social - Social Media Feeds, Video, and Photo Galleries](https://wordpress.org/plugins/feed-them-social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feed-them-social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feed-them-social/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-them-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-them-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-them-social/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [damon7620](https://wordpress.org/support/users/damon7620/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/referenceerror-query-is-not-defined/#post-9543519)
 * Status: resolved