Link to home
Start Free TrialLog in
Avatar of Tim Brocklehurst
Tim BrocklehurstFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Why is jQuery not loading on this wordpress site?

We have a test site (sudsnax.com - pw: ababs) and a live site: absoluteantibody.com .

Our latest update from the test site was to add a nested search feature, returning child posts as expandable using bootstrap accordions.
(do a search for 'ebola' in the top search box, and then click 'View Formats' in the results for an example). You will see it works fine on both sites.

However...

When we implemented this on the live site, it broke the homepage slider.  Hence it is currently turned off on the live site. But works fine on the Test Site.

Another example of broken code, is the pricing table. Half way down the page, the test site shows it as it should be, with prices tabbed per currency. But the live site shows each in different tables.

Using the browser's dev tools, you'll see there are errors caused on the live site:
Uncaught ReferenceError: jQuery is not defined

However, the Wordpress plugins and their versions are exactly the same on the live site and the test site. So too are the themes. We are at a loss to understand what could be causing this conflict on the live site when the test site works fine. They are on different hosts.

This is an excerpt from the debug script of the live site:
"Server":{"jQueryVersion":"1.12.4","PHPVersion":"5.6.30","MySQLVersion":"5.6.35","ServerSoftware":"Apache"}

and this is the corresponding line from the debug script of the test site:
"Server":{"jQueryVersion":"1.12.4","PHPVersion":"5.4.43","MySQLVersion":"5.6.35","ServerSoftware":"Apache\/2.2.31

Can anyone suggest what could be causing jQuery not to load on the live site, when it does on the test site?

Thank you
Tim
JQnotload.png
ASKER CERTIFIED SOLUTION
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tim Brocklehurst

ASKER

Thank's for that.
Yes - I noticed we had a cloudflare reference, but I'm not sure how to remove it. Its not a Wordpress Plugin

I have FTP access and WP Admin access. Do you know what I should do with either of those to remove it?

T
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Eddie
Your pointers to the Cloudflare helped us to fix this.