-
AuthorPosts
-
amilks Friend
amilks
- Join date:
- June 2009
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
December 29, 2009 at 6:28 pm #147153Hello,
I get this error consistently when using Kunena with Urani. I do not get it with Milkyway.
$ is not a function
http://wmdwebservices.com/templates/ja_urani/js/ja.script.js
Line 77These two errors seem to come and go:
$ is not a function
anonymous(img, Object)mootools.js (line 23)
anonymous()mootools.js (line 8)
anonymous(“http://wmdwebservices.com/templates/ja_urani/images/icon-min.gif”, Object)mootools.js (line 80)
anonymous(“http://wmdwebservices.com/templates/ja_urani/images/icon-min.gif”)mootools.js (line 80)
anonymous([“http://wmdwebservices.com/templates/ja_urani/images/icon-min.gif”, “http://wmdwebservices.com/templates/ja_urani/images/icon-max.gif”], Object)mootools.js (line 80)
ja.ddmod.js()ja.ddmod.js (line 16)
[Break on this error] el=$(el);return(!props||!el)?el:el.set(p…entById(el);type=(el)?’element’:false;}nmootools.js (line 23)$ is not a function
anonymous([li.havechild, li.active, li, 39 more… 0=li.havechild 1=li.active 2=li 3=li.active])mootools.js (line 25)
$$()mootools.js (line 25)
anonymous()css.js (line 15)
anonymous()mootools.js (line 21)
anonymous(Object name=event)mootools.js (line 21)
anonymous(function())mootools.js (line 50)
anonymous(“domready”, Object name=args, Object name=delay)mootools.js (line 50)
anonymous()mootools.js (line 59)
anonymous()mootools.js (line 21)
anonymous(DOMContentLoaded )mootools.js (line 21)
[Break on this error] return $$.unique(elements);};$$.unique=f…included=true;elements.push(element);}}nmootools.js (line 25)Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 30, 2009 at 3:29 am #327739Hello guy!
That’s the javascript conflict bettween the Mootool libs and the Jquery libs. i checked the source codes on your site. I saw that the Jquery Lib was loaded before the Mootool Libs load. To fix the problem, The mootool lib must to load in the first.
Please open the file; templatesja_uranilayoutsblocksheader.php at line 1:
<jdoc:include type=”head” />
Replace:
<script type=”text/javascript” src=”<?php echo $this->baseurl(); ?>media/system/js/mootools.js”></script>
<jdoc:include type=”head” />good luck
amilks Friendamilks
- Join date:
- June 2009
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
December 30, 2009 at 4:36 am #327747When I open templatesja_uranilayoutsblocksheader.php
<jdoc:include type="head" />
So I decided to copy into line 1 anyways
<script type="text/javascript" src="<?php echo $this->baseurl(); ?>media/system/js/mootools.js"></script>
<jdoc:include type="head" />Well….
I lost the script.js error, but I still have this one:
$ is not a function
anonymous(img, Object)mootools.js (line 23)
anonymous()mootools.js (line 8)
anonymous("http://wmdwebservices.com/templates/ja_urani/images/icon-min.gif", Object)mootools.js (line 80)
anonymous("http://wmdwebservices.com/templates/ja_urani/images/icon-min.gif")mootools.js (line 80)
anonymous(["http://wmdwebservices.com/templates/ja_urani/images/icon-min.gif", "http://wmdwebservices.com/templates/ja_urani/images/icon-max.gif"], Object)mootools.js (line 80)
ja.ddmod.js()ja.ddmod.js (line 16)
[Break on this error] el=$(el);return(!props||!el)?el:el.set(p...entById(el);type=(el)?'element':false;}nmootools.js (line 23)
Use of getBoxObjectFor() is deprecated. Try to use element.getBoundingClientRect() if possible.Let me know 🙂
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 30, 2009 at 4:53 am #327750Please can view the source of the page : http://wmdwebservices.com/forum
I can not see the script tag (which using for load the mooltool lib) below <head> tagFor examplate on my change:
<head>
<script type=”text/javascript” src=”http://localhost/joomla/ja_urani.vtesting/quickstart/media/system/js/mootools.js”></script>amilks Friendamilks
- Join date:
- June 2009
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
December 30, 2009 at 4:55 am #327751Right now the error is gone. I cannot trigger it so I am going to leave it unless you think I need to do what you said.
What do you think?
amilks Friendamilks
- Join date:
- June 2009
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
December 30, 2009 at 2:31 pm #327802OK, problem solved!
It was in When I open templatesja_uranilayoutsblockshead.php NOT in When I open templatesja_uranilayoutsblocksheader.php
THANK YOU SO MUCH!
I did this and it worked perfectly. No more errors!
<em>@tienhc 158351 wrote:</em><blockquote>
Please open the file; templatesja_uranilayoutsblockshead.php at line 1:
<jdoc:include type=”head” />
Replace:
<script type=”text/javascript” src=”<?php echo $this->baseurl(); ?>media/system/js/mootools.js”></script>
<jdoc:include type=”head” />
</blockquote>By the way, my errors popped up again this morning prompting me to dig deeper. Thanks again.
amilks Friendamilks
- Join date:
- June 2009
- Posts:
- 40
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 10
- Thanked:
- 6 times in 1 posts
January 3, 2010 at 3:14 pm #328020Hello Tienhc,
I have an issue with the fix. I am using Fabrik with Mootools 1.2 on my website as well. Because of this I need to Remove Mootools 1.1 from all Fabrik pages which I do with the Removemootools1.1 module from Fabrik, but now I get recrusion errors on my fabrik pages from the inclusion of 1.1 and 1.2. Is there a way to not include the script on a few pages?
I think I could rename the template to something like Fabrik_Urani and have a different fabrik template? In fact, that is what I will do for now. Let me know if there is a better way.
Extra Info: That does work, it is just a little bulky.
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by amilks 14 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum