Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • amilks Friend
    #147153

    Hello,

    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 77

    These 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 Moderator
    #327739

    Hello 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 Friend
    #327747

    When 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 Moderator
    #327750

    Please 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> tag

    For examplate on my change:

    <head>
    <script type=”text/javascript” src=”http://localhost/joomla/ja_urani.vtesting/quickstart/media/system/js/mootools.js”></script>

    amilks Friend
    #327751

    Right 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 Friend
    #327802

    OK, 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 Friend
    #328020

    Hello 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.

Viewing 7 posts - 1 through 7 (of 7 total)

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