This project is archived and is in readonly mode.

#78 ✓hold

core1.2.2 + more1.2.2.2 : js error : too much recursion on old firefox 2

Reported by Philippe | June 23rd, 2009 @ 05:45 PM


I have this error on old firefox 2.0.6 : "too much recursion" when loading mootools core + more
It's working with firefox 2.0.18

In the page head :

The compatibility firefox 2+ is not good... Thx Philippe

Comments and changes to this ticket

  • Philippe

    Philippe June 24th, 2009 @ 09:17 AM

    loading in the html head : mootools-1.2.2-core.js and mootools-

  • Aicke Schulz

    Aicke Schulz June 24th, 2009 @ 12:33 PM

    Does the "too much recursion" error come from MooTools or the nsSessionSaver.js? (Firebug right side)

  • Philippe

    Philippe June 24th, 2009 @ 02:05 PM

    I tried with mootools-1.2.3-core.js and mootools- (full options, no compression)

    --> same problem

    Firebug report "too much recursion" error from mootools :

    mootools-1.2.3-core.js (line 1112) : var result = method.apply(this, arguments);
    mootools- (line 1133) : return this.get('value');

  • xrado

    xrado July 12th, 2009 @ 02:35 PM

    i get the same error with FF

    too much recursion
    [Break on this error] var result = method.apply(this, arguments); mootools...3-core.js (line 1112)

    too much recursion
    [Break on this error] (1133 out of range 2) mootools...1-more.js (line 1133)

    but FF have no problems

  • Aaron Newton

    Aaron Newton July 14th, 2009 @ 04:54 PM

    • State changed from “new” to “hold”
    • Assigned user set to “Valerio”

    This is a bug in Firebug (to my knowledge), not in MooTools. Can anyone verify that this error occurs w/o Firebug installed (get something like Developer Toolbar and watch it's JS console)?

  • xrado

    xrado July 14th, 2009 @ 09:07 PM

    Firefox Firebug plugin disabled
    Firefox Error Console says:

    Error: too much recursion
    Source File: ../js/mootools-1.2.3-core.js
    Line: 1112

  • Ilkka Kaakkola

    Ilkka Kaakkola August 14th, 2009 @ 03:40 PM

    Mootools-core version:
    var MooTools = {

        'version': '1.2.3',
        'build': '4980aa0fb74d2f6eb80bcd9f5b8e1fd6fbb8f607'


    Mootools-more version:
    MooTools.More = {

        'version': ''


    Firefox vanilla install (no addons installed at all). Just to clear, this is not a firebug bug (tested on multiple computers and a from-scratch virtual windows install with absolutely no references to firebug).

    Using Mootools-core standalone does not produce this error.

    The function causing 'too much recursion' is on line 1114 of mootools-core (well, in the version I use), in the new Native() wrap: function, calling method.apply( this,arguments ) causes the recursion.

    This is triggered when mootools-more is loaded and an instance of URI is created (with my debug alerts surrounding it),

    alert("debug , before error, should be visible" );
    URI.base = new URI( $$('base[href]').getLast(), { base: document.location } );
    alert("debug, after error, not visible" );

    This is what actually seems to loop for ever, called when creating a new instance of URI()

    ['toString', 'valueOf'].each(function(method){

        URI.prototype[method] = function(){
                return this.get('value');


    Couldn't quite figure out why does this (the variable 'this') cause a recursion problem here.

    (trying to touch 'this' (ie. try to alert(this)) inside the function causes a stack overflow on Safari also - why this.get('value') still works as a return I do not know..)

    Hope this debug helps.


  • Ilkka Kaakkola

    Ilkka Kaakkola August 14th, 2009 @ 07:36 PM

    And it is only the 'valueOf' prototype method that causes recursion. this.get('value') calls valueOf() internally perhaps?

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions