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:
// 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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘ReferenceError: Query is not defined’ is closed to new replies.