Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

jQuery Not Defined

More
IP: 23.242.64.216 11 years 4 months ago #4305 by primus ltg
I am getting this error on every page of the site:
Code:
ReferenceError: jQuery is not defined http://www.primuslighting.com/components/com_k2/js/k2.js?v2/6/7&sitepath=:1

this page who't open at all:
www.primuslighting.com/index.php/reps

This page has a lot of Javascript on it.

Installing jQuery Easy didn't have any effect even after some tweeking

Everything was fine till we upgraded to Joomla 3.4.
More
IP: 174.44.39.212 11 years 4 months ago #4306 by admin
Replied by admin on topic jQuery Not Defined
Hello,

you are getting this error because jQuery is loaded after k2.js, therefore the K2 script does not find jQuery.

Even though you think jQuery Easy had no effect, I still believe it would put everything in order and remove the extra libraries that are loaded on the pages.

Could you please enable the error reporting in the jQuery Easy plugin, it will help in understanding what the plugin does on your pages and it will show what are your settings.

You could also make sure that none of your extensions loads jQuery (when possible) and let the jQuery Easy plugin do it instead. That will minimize the conflicts from the start and improve performance. Check in your template and k2 to see if you can avoid the jQuery loading (possible in K2 for sure).

As far as the empty page is concerned, enumerate all extensions that are loaded on the page, disable the ones that are loaded on that page only and see if your page loads again. At this point there is nothing telling that it is a javascript error and not a bug in an extension instead.

Olivier.
More
IP: 23.242.64.216 11 years 4 months ago #4307 by primus ltg
Replied by primus ltg on topic jQuery Not Defined
I was not able to find a place to turn on error reporting in jQuery Easy, I turned on error reporting Joomla! but did not see anything about jQuery.

I had previously disabled K2 from loading it's jQuery libraries.

I continue to get the same error on the front page.

Following your advise I am looking into the extensions on the page that includes JoomUtra USAMap
The following user(s) said Thank You: admin
More
IP: 174.44.39.212 11 years 4 months ago - 11 years 4 months ago #4308 by admin
Replied by admin on topic jQuery Not Defined
No problem. The reporting tool is found in the jQuery Easy plugin, in the 'other' tab. Set 'show report' to 'yes'. This is the only way to see what the plugin does.

Olivier.
Last edit: 11 years 4 months ago by admin.
More
IP: 23.242.64.216 11 years 4 months ago #4309 by primus ltg
Replied by primus ltg on topic jQuery Not Defined
I turned reporting on and got this:
Code:
jQuery Easy Modifications Report re-ordered header libraries Execution time (in seconds): 0.00087165832519531

I have already re-ordered jQuery Easy from last to first, to just before K2. to no effect.
More
IP: 174.44.39.212 11 years 4 months ago #4310 by admin
Replied by admin on topic jQuery Not Defined
Perfect, that tells me you are missing something:
there won't be any fixing by the plugin until you enable jQuery and select a jQuery version in the jQuery Easy plugin. You will also need to enable Migrate.

Olivier.