Location http://www.mysite.com/quicktabs/ajax/undefined
Referrer http://www.mysite.com/
Message call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'quicktabs_ajax_undefined' was given in /sites/all/modules/quicktabs/quicktabs.module on line 248.

doesn't say quicktabs but always get 4 errors right after the one above stating this

Location http://www.mysite.com/function(E,F)%7Bvar%20D=F%7C%7Cwindow;var%20A=[];for(var%20C=0,B=this.length;C%3CB;++C)%7Bif(!E.call(D,this[C],C,this))%7Bcontinue%7DA.push(this[C])%7Dreturn%20A%7D?_=1299192134944
Referrer http://www.mysite.com/
Message function(E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C

CommentFileSizeAuthor
#3 quicktabs_ajax_undefined.patch388 bytesmrjeeves

Comments

CobraMP’s picture

Title: Watchdog errors » quicktabs_ajax_undefined
Priority: Normal » Major

changing the title and raising to major as now my users are starting to report that they are seeing the error printed on their pages.

call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'quicktabs_ajax_undefined' was given in ..../sites/all/modules/quicktabs/quicktabs.module on line 263.

CobraMP’s picture

Version: 6.x-2.0-rc5 » 6.x-3.x-dev

post 1 was 6.x-2 have upgraded to 6.x-3.x-dev when getting error on 2nd post

mrjeeves’s picture

Status: Active » Needs review
StatusFileSize
new388 bytes

while not the most elegant, or even preferred solution, attached patch will remove the errors.

burningdog’s picture

I'm seeing plenty of these errors in my apache logs, always following "GET /quicktabs/ajax/undefined HTTP/1.1":

"GET /function(a,b){var%20b=b||0;for(var%20c=0;c<this.length;++c)if(this[c]===a)return%20c;return-1} HTTP/1.1"
"GET /function(a,b){var%20c=b||window,d=[];for(var%20e=0,f=this.length;e<f;++e){if(!a.call(c,this[e],e,this))continue;d.push(this[e])}return%20d} HTTP/1.1"
"GET /function(a,b){var%20b=b||0;for(var%20c=0;c<this.length;++c)if(this[c]===a)return%20c;return-1}?_=1309257214252 HTTP/1.1"

Most of them look like errors in IE 6 (which I don't care about supporting) but there are a few errors in IE 7 too. I'm not quite sure why there's a GET request for /quicktabs/ajax/undefined in the first place?

katbailey’s picture

Status: Needs review » Postponed (maintainer needs more info)

Although this still doesn't get to the root of hte problem (i.e. how is undefined getting passed in in the first place), this commit adds a function_exists() check into the ajax menu callback: http://drupalcode.org/project/quicktabs.git/commit/c1fbfe13887142295ec8f...

Can somebody please outline the steps to reproduce an ajax call to quicktabs/ajax/undefined ?

pasqualle’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

This issue is without response for more than a month, closing.