Hey there!

I've been using Panels for a while now and everything always worked like a charm!

But a week ago drupal wanted me to update it's core and since i updated i get ajax errors for everything i do!

Editing a panel: error
creating a new one: error

i can't help myself anymore.. maybe someone got a clue of ajax and can assist!

This is the error message the browser gives:
http://s7.directupload.net/file/d/2987/izqidtbd_jpg.htm

and this is the error text i get redirected to then:
http://pastebin.com/iTiAL8rk

Hopefully someone is able to help quickly.

greetings,
patrik

Comments

merlinofchaos’s picture

Hm. The AJAX response you get forwarded to is correct. The error suggests that something is actually interrupting the AJAX call (usually this happens if something else tries to do an ajax call at the same time). It might mean that there is somehow an incompatibility between two modules.

fold93’s picture

hey there! thanks for that quick response!

the only thing that changed between the working and the current state is the updated drupal core! :(

EDIT: Thanks for that hint! a wysiwyg editor was blocking ajax! - Turned it off, works like a charm again!

Greetings!

henrikakselsen’s picture

I'm also getting an AJAX error and I believe it was after upgrade to core 7.15 and to panels 3.3 (at the same time). The error is different than yours, though, and disabling wysiwyg didnt help.

It shows up every time I want to add some content to a region. It is a quite long error message (popup)

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /panels/ajax/editor/select-content/panel_context%3Apage-support%3Apage_support_panel_context/left
StatusText: OK
ResponseText: 
(sitename)
@import url("http://loc.sitename.vps10.front.no/modules/system/system.base.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/modules/contextual/contextual.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/misc/ui/jquery.ui.core.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/misc/ui/jquery.ui.theme.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/themes/sasson/styles/reset/normalize.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/modules/comment/comment.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/modules/contrib/date/date_api/date.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/modules/field/theme/field.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/modules/node/node.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/modules/search/search.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/modules/user/user.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/modules/contrib/views/css/views.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/modules/contrib/admin_menu/admin_menu.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/modu.../plugins/layouts/twocol/twocol.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/modules/contrib/context/plugins/context_reaction_block.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/modules/contrib/search_api_autocomplete/search_api_autocomplete.css?m9kh4i");
@import url("http://loc.sitename.vps10.front.no/sites/all/themes/frontd7/styles/frontstrap.css?m9kh4i");
Your browser is ancient! Upgrade to a different browser or install Google Chrome Frame to experience this site.

*some more stuff, mainly menu points from the site*
Anonymous’s picture

I got the same error and no idea where to start debugging :(

henrikakselsen’s picture

I don't know whether this is related to panels or ctools. I've been experimenting with going back to prev versions, and also dev version. I also tried going back to drupal 7.14, but problem persists, so now I'm suspecting that the problem is somewhere in the database. I'm also getting this drush error, and I suspect the issues may be related:

> drush cc all
WD menu: PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'weight' at row 9: INSERT INTO {menu_router} (path, load_functions,  [error]
to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, delivery_callback, fit, number_parts, context, tab_parent, tab_root, title,
title_callback, title_arguments, theme_callback, theme_arguments, type, description, position, weight, include_file) VALUES (:db_insert_placeholder_0,
:db_insert_placeholder_1, :db_insert_placeholder_2,

(...)

 :db_insert_placeholder_458, :db_insert_placeholder_459); Array
(
    [:db_insert_placeholder_0] => rss.xml
    [:db_insert_placeholder_1] => 
    [:db_insert_placeholder_2] => 
    [:db_insert_placeholder_3] => user_access
    [:db_insert_placeholder_4] => a:1:{i:0;s:14:"access content";}
    [:db_insert_placeholder_5] => node_feed
    [:db_insert_placeholder_6] => a:0:{}
    [:db_insert_placeholder_7] => 
  
(...)

    [:db_insert_placeholder_457] => 
    [:db_insert_placeholder_458] => 7
    [:db_insert_placeholder_459] => sites/all/modules/contrib/ctools/page_manager/plugins/tasks/page.inc
)
 in _menu_router_save() (line 3813 of /Users/henrikakselsen/Sites/mysite/includes/menu.inc).
Anonymous’s picture

I downgraded to panels-7.x-3.2 (with latest drupal) and the AJAX errors have disappeared overhere.

To which version did you downgrade henrikakselsen?

henrikakselsen’s picture

Yeah, I also tried 2.2.

I've done some more research and found that my problem is indeed connected to the PDOException I get in drush (and in the php logs). It comes down to some corrupted weight variables in the the db.

I found that changing the line 3806 in menu.inc

'weight' => $item['weight'],

to

'weight' => 1,

at least makes panels work fine again. Of course this is not a real fix, but at least it pinpoints the problem. What caused the messed up variable needs some more research. Jesse, I suggest you check your logs to see if you can find some related errors (or just run drush cc all).

Anonymous’s picture

I did a sudo drush cc all and my problems are gone now.

What's weird is that I did /admin-menu/flush-cache a few times before which did not have any effects.

deanflory’s picture

Anyone having lots of AJAX issues might want to try disabling the jquery_update module, worked for me. Just spreading the info, unsure if it's related to this issue.

justkristin’s picture

Damn, it was the update javascript module for me, too. Too bad, as it was more important to our site than the other ones people suggested disabling (devel, admin toolbar, etc.)

gmclelland’s picture

I'm not sure why, but I have found that the devel module causes a lot of these ajax errors when working with Panels. Hope that helps someone.

dsnopek’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm pretty sure this is fixed now :-) Feel free to reopen if I'm wrong!