Skip to content

RangeError when loading elfinder #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wcoppens opened this issue Jul 17, 2013 · 2 comments
Closed

RangeError when loading elfinder #31

wcoppens opened this issue Jul 17, 2013 · 2 comments

Comments

@wcoppens
Copy link

I'm having a strange error when trying to use the ELFinder and i'm not fully sure if it is relatied to the Bundle or ELFinder itself.

Anyway, when im trying to load finder im receiving after the api calls the following error from the compressed ElFinder javascript file:

RangeError {} main_elfinder.min_3.js:9
Uncaught RangeError: Maximum call stack size exceeded
p.extend.camelCase
p.extend.css
ca
p.cssHooks.(anonymous function).get
p.extend.css
(anonymous function)
p.extend.access
p.fn.(anonymous function)
(anonymous function)
p.extend.each
p.fn.p.each
(anonymous function)
p.event.dispatch
g.handle.h
p.event.trigger
(anonymous function)
p.extend.each
p.fn.p.each
p.fn.extend.trigger
p.fn.(anonymous function)
(anonymous function)
p.event.dispatch
g.handle.h
p.event.trigger
(anonymous function)
p.extend.each
p.fn.p.each
p.fn.extend.trigger
p.fn.(anonymous function)
(anonymous function)
p.event.dispatch
g.handle.h
p.event.trigger
(anonymous function)
p.extend.each
p.fn.p.each
p.fn.extend.trigger
p.fn.(anonymous function)
(anonymous function)
p.event.dispatch
g.handle.h
p.event.trigger
(anonymous function)
p.extend.each
p.fn.p.each
p.fn.extend.trigger
p.fn.(anonymous function)
(anonymous function)
p.event.dispatch
g.handle.h
etc....

Since it happens on line 9, which is the first line of code in the JS file im not able to debug the script itself. So before compressing a ELFinder version myself i was wondering if im the only one...

Thanks in advance!

@helios-ag
Copy link
Owner

How can i reproduce this error? I checked bundle with tinymce and ckeditor, and firebug didn't mention any errors.

@wcoppens
Copy link
Author

@helios-ag,
Installed the bundle now on a clean installation of symfony 2.2.4, directly after the installation tried the /elfinder route and again the same error, it seems to happen on the following line in the JS file:

 this.trigger = function(t, n) {
            var i, t = t.toLowerCase(), r = w[t] || [];
            if (this.debug("event-" + t, n), r.length)
                for (t = e.Event(t), i = 0; r.length > i; i++) {
                    t.data = e.extend(!0, {}, n);
                    try {
                        if (r[i](t, this) === !1 || t.isDefaultPrevented()) {
                            this.debug("event-stoped", t.type);
                            break
                        }
                    } catch (a) {
                        window.console && window.console.log && window.console.log(a)
                    }
                }
            return this

(Determind by using the pretty print function in Chrome)

The exact line which throws the error is the 'window.console && window.console.log && window.console.log(a)' line.
Im currently trying to find out what can cause the error.

Update 11:54 UTC
It seems to be something with the CkEditor combination, it only throws me the error when trying to load the ckeditor.html.twig view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants