I am trying to add an existing node to my panel, but when i click "Finish", an error message pops up saying "An error occurred while attempting to process /panels/ajax/editor/add-pane/13/left/node/form: Cannot call method 'call' of undefined"

I used to be able to add content to panes with no problem, but now this error pops up for every panel when I try to add a node.

(I hope this is not a duplicate.)

Comments

merlinofchaos’s picture

Well that's different. Can you try updating to the latest CTools -dev? I made a change to that code today. I dont think it would affect htis, but I can't htink of what might be causing this, either.

richardlazear’s picture

I'll try that.

I was adding content to panels with different browsers. In Chrome, I get the original error message, and in IE8 i get an error saying "An error occurred while attempting to process /panels/ajax/editor/add-pane/13/right/node/node/form: 'undefined' is null or not an object"

Opera and Firefox 4 RC work fine.

Thanks

merlinofchaos’s picture

Is there a line number/.js file named? I can't duplicate this error on my system, so I'm not sure what to even look at.

richardlazear’s picture

Status: Active » Closed (fixed)

This is a little odd...

I changed my theme to Marinelli from the default Bartik theme, and now I don't get the error message anymore. (I guess changing this post to "fixed" is ok).

No, I don't recall seeing a line number or .js file reference. Also, the error message came in the form of a browser popup, and was not displayed within the website.

Jamie Holly’s picture

Just in case this helps anyone out. I was experiencing the same issue, except mine was with the core file uploads. It turned out that the Twitter widget I had on the site was conflicting. This is the one that shows your recent posts that you can generate on Twitter's site.

Moral of the story - if you have any blocks injecting 3rd party Javascript, try disabling them one by one. Chances are you'll find a conflict in one of those and that will fix it.

Jooblay.net’s picture

Version: 7.x-3.0-alpha2 » 7.x-3.0-alpha3
Priority: Major » Normal
Status: Closed (fixed) » Active

Ah ya for sure:) Drupal Core 7.7 and all modules up to date.

Here is the issue,

Posted by intoxination on March 24, 2011 at 8:23am above is correct about the twitter feeds {both Twitter Profile Widget
7.x-1.3 Helps to customize Twitter Profile Widget. Made by SplasH & TweetPack 7.x-1.0 & the widget feed .js from twitter.com/apps} via .js is throwing {An error occurred while attempting to process /system/ajax: Cannot call method 'call' of undefined} on any modify to HomeBox {Homebox 7.x-2.0-beta3}. For example when you open or close a Homebox Block. Then on Panels 7.x-3.0-alpha3 we are getting a scramble when we try to {edit} any content in any panel.

This is what you get when you try to edit the Panel Content:

[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"cronic","theme_token":"lWMFIVW2nZafMFQ7UQKXJ2-ukOIxl3S0IT38MasB-xs","css":[]},"tutorials":{"server":"http:\/\/tutr.tv","query_url":"http:\/\/tutr.tv\/tutorial\/tutorials_by_path_js?path=panels\/ajax\u0026core=7.x\u0026callback=%3F","target":"popup","default_selector":"#content"},"admin_menu":
.js twitter.com/apps widget feed.

and about 2 pages more, you get the idea.

Now when we disable all 3 twitter feeds the error both in HomeBox 7.x-2.0-beta3 and Panels 7.x-3.0-alpha3 it all clears up, no issue at all.

Now when we list our .js script from twitter in a block and enable it again it is throwing {An error occurred while attempting to process /system/ajax: Cannot call method 'call' of undefined} and the Panels Scramble above? This happens in any combo with any twitter feed or javascript that we enable.

new TWTR.Widget({ version: 2, type: 'profile', rpp: 10, interval: 6000, width: 'auto', height: 120, theme: { shell: { background: '#ffa01a', color: '#ffffff' }, tweets: { background: '#ffffff', color: '#070707', links: '#730d02' } }, features: { scrollbar: true, loop: true, live: true, hashtags: true, timestamp: true, avatars: true, behavior: 'default' } }).render().setUser('my feed here').start();

In closing does anyone have any idea why we are getting this AJAXs error and the scramble in Panels. Other then this the site is very stable.

Jooblay.net’s picture

Update on this issue,

It seems to be an AJAX and HOMEBOX error throwing from any .js {javascript} feed from twitter. This includes many if not all the twitter drupal 7 modules as well as direct .js from twitter/apps.

There is hope via Aggregation:)

So for the time being any feeds in .js into the HOMEBOX module seem to get this error from ajax. {An error occurred while attempting to process /system/ajax: Cannot call method 'call' of undefined}.

:)

uberellis’s picture

*subscribe* My module (http://drupal.org/project/jasm) also creates this issue

Jooblay.net’s picture

Is anyone checking browsers on this issue, it seems google chromium could be throwing this error? we will run opera, firefox and sea monkey at it. :)

DrupalUP Nasty 4Sure.

solomojo’s picture

Version: 7.x-3.0-alpha3 » 6.x-3.9

Same error here but on D6 in IE9 (64-bit), IE8 mode, IE7 mode, Chrome, Firefox 7.0.1. Here is the error I get from the debugger in chrome:

XMLHttpRequest cannot load http://www.mysite.com/panels/ajax/editor/add-pane/panels_mini%253Agrass_seed_mega_menu/left/block/menu-menu-mucho-test/form. Origin https://www.mysite.com is not allowed by Access-Control-Allow-Origin.

These are the steps I take to create the error:
1. click Edit on my panel
2. Click Content
3 Click the gear Icon on the "Left Side" or "Right Side" column.
4. Click "Add Content"
5. Click "Menus"
6. Select the menu I want to add to the panel.
7. Click "finish"

I am using ctools-6.x-1.8 if that helps.

jody lynn’s picture

Following this comment fixed it for me: http://drupal.org/node/1022234#comment-4126278

Letharion’s picture

Category: bug » support
Status: Active » Closed (cannot reproduce)

After reading all the comments on this issue, I get the distinct impression that the cause is various others modules, instead of, or perhaps in combination with, Panels, that cause this issue.
If that's the case, then please file an issue with the relevant module.

I will close this issue for now, as it doesn't look like it's really in Panels.
If, however you can reproduce this problem on a clean install with only Panels, then please re-open the issue with the steps to reproduce the problem.

ywarnier’s picture

This is related to a bug in the Twitter js, as described in http://drupal.org/node/1140764

djh007’s picture

Disabling Twitter Widget worked for me!