The site I'm managing is runs by Drupal 7.53 with many contributed modules.

I don't know what happened from yesterday, ajax queries in field editing pages and views editing pages throwing errors or not loading at all. Clearly I can see what is causing this error in JQuery and Ajax. All the modules installed are contributed modules except one custom module, which doesn't have any Javascript code in it. Cleared the cache few times . No javascript and CSS aggregation. But still wherever JQuery & Ajax is needed , the pages are breaking . How can I solve this problem. How can I figure out what is causing problem?

I'm unable to alter any of the views due to ajax error throwing up. All help is appreciated.

  • Are there any javascript errors showing up in the console?
    – Jaypan
    Commented Jul 21, 2017 at 10:04
  • @Jaypan, Yes there was a Javascript error : Error: Syntax error, unrecognized expression: body #container .node a[href^=http:]:not(.external-nofollow) jquery.js:4680:8. My JQuery version was 1.8 , and later I downgraded the JQuery version to 1.4 and it fixed the problem. Commented Jul 21, 2017 at 15:02
  • 1
    That's your problem. But solving it is going to be more difficult, as the error is actually upstream somewhere, what you are seeing in the console is just where it finally fails. Unfortunately I can't really help from here, you'll have to debug that backwards.
    – Jaypan
    Commented Jul 21, 2017 at 15:04
  • Do you have any jquery modules enabled on your site, like jquery update? Commented Jul 21, 2017 at 16:09
  • @longboardnode yes Jquery Update module is enabled on the module. Can that module create problems? Using that module I set the Jquery version to 1.4 from 1.8 for administration theme. And that fixed the problem. Commented Jul 21, 2017 at 16:26

1 Answer 1


Jquery Update module is very helpful but new jquery versions can cause issues with other dependent modules. The module is important not only to keep your site up to date but also allow for theme-specific control to ensure compatibility. So the module's settings page is something you might want to visit and test when a new jquery version is released.

Also, the CDN option can cause load issues if the provider you choose is offline for some reason or overloaded. From the jquery update settings warning:

"NOTE: Using one of the "CDN Provider" options below is the preferred method for loading Bootstrap CSS and JS on simpler sites that do not use a site-wide CDN. Using a "CDN Provider" for loading Bootstrap, however, does mean that it depends on a third-party service."

So use this option with caution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.