'channelUrl' is null or not an object

Jul 16, 2009 at 5:19 AM

Hi

I m getting this javascript error on performing any action of javascript on the page.
" 'channelUrl' is null or not an object" .

if any solution.. plz suggest
thanks

May 10, 2010 at 10:44 PM

I'm experiencing the same thing in my Facebook IFrame canvas application.  Whenever I drag and drop an item using the jQuery "Sortable" UI addon, then kick off an AJAX call to tell the server that the user dragged and dropped an item, the very next time the user goes to drag and drop the same item, they get that error:

'channelUrl' is null or not an object

For me, the error occurs in the following line of code:

http://static.ak.connect.facebook.com/connect.php/en_US/js/CacheData

LINE 46:

if(a.channelUrl.indexOf('http'))

The line of code starts with this:

"FB.subclass('FB.XdComm.Server','FB.Class',{init:functi...."

This error is occuring because "a.frameName" is set to "iframe_canvas", but "a.channelUrl" is set to NULL.  So when you call "indexOf" on a NULL property, you get that JavaScript error.

I've submitted a bug to Facebook for this:

http://bugs.developers.facebook.com/show_bug.cgi?id=10244