Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

ReferenceError: jQuery is not defined

12 years 1 month ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
each time a user profile is displayed we've got the following error message in the firebug console :
ReferenceError: jQuery is not defined See the attached file in relation with.
It seems com_community is loading its own jQuery file. Why ?
Joomla core has already jQuery file.
Is there a way to switch off the following scripts ?, if so how ?:
/components/com_community/assets/joms.jquery-1.8.1.min.js
/components/com_community/assets/script-1.2.min.js

Cheers,
L

Attachments:
12 years 1 month ago
Licenses:

Hi.

No, you can't switch them off. JomSocial uses own version of modified jQuery.
You can rather disable loaded jQuery by using unset command like this:

<?php
unset($this->_scripts['/media/system/js/mootools-core.js']);
unset($this->_scripts['/media/jui/js/jquery.min.js']);
unset($this->_scripts['/media/jui/js/jquery-noconflict.js']);
unset($this->_scripts['/media/jui/js/jquery-migrate.min.js']);
unset($this->_scripts['/media/system/js/core.js']);
unset($this->_scripts['/media/system/js/mootools-more.js']);
unset($this->_scripts['/media/system/js/modal.js']);
?>

You need to provide exact path to script so to be sure check source of your page to see it.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 1 month ago
Licenses:
JomSocial Expired Socialize Expired

Michal,
thank you for your lights.
Would you mind to tell us where can we set this part of code ?
Cheers,
L

12 years 1 month ago
Licenses:

Hi.

In index.php file of your current template.
In Socialize (and other T3 framework based templates) add this code to:

ROOT/templates/socialize/tpls/blocks/header.php, right below: <!-- //META FOR IOS & HANDHELD -->


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 1 month ago
Licenses:
JomSocial Expired Socialize Expired

hi,
is it header.php or head.php ?
string <!-- //META FOR IOS & HANDHELD --> is only in head.php
So we've modified head.php, but there is no difference
we've applied:
<?php
unset($this->_scripts);
unset($this->_scripts);
unset($this->_scripts);
?>
No effect these scripts are still there, with the same path, even after clearing browser & web caches.
Did we miss something?
Cheers,
L

12 years 1 month ago
Licenses:

Hi.

It should be in head.php, right under last meta tag.

But... argghhh!:

<b>Notice</b>: Indirect modification of overloaded property T3Template::$_scripts has no effect in <b>/home/prolusatia/ftp/test/templates/socialize/tpls/blocks/head.php</b> on line <b>26</b><br />

T3 framework doesn't allow unset :/

OK, then try with Easy jQuery plugin. It should be able to DISABLE Joomla! native jQuery and mootools as well.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 1 month ago
Licenses:
JomSocial Expired Socialize Expired

Ok, we'll try easy jquery and we keep you inform.
Cheers,
L

12 years 1 month ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
issue solved by applying Easy jQuery plugin. Thank you
Cheers,
L

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW