Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updating to 3.2: when I try to add content to a region in Panels, I get something like:
AJAX HTTP error.
HTTP result code: 500
Information:
Path: /panels/ajax/editor/select-content/panel_context%3Anode_view%3Anode_view_panel_context_10/region2
StatusText: Internal Server Error
ResponseText:
500 - Internal server error.
Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Needless to say this is critical for our site. Everything else seems to work. Anyone?
Best,
Thomas
Comments
Comment #1
thomas1977 CreditAttribution: thomas1977 commentedFrom outside this seems connected to the 3.1 issues mentioned in the release notes for 3.2:
"3.1 included some bad IPE logic that made it impossible to add new panes to any region; this release fixes that bug."
I went directly from 3.0 to 3.2 - does this have anything to do with the issue still being present?
Would it be safe to downgrade to 3.0 until the issue gets ironed out?
Comment #2
snowfire CreditAttribution: snowfire commentedI get the same error when trying to add content to a panel:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /ProcessInstruments/?q=panels/ajax/editor/select-content/1/right
StatusText: Internal Server Error
ResponseText: test
test
new drupal install - 7.12, panels 7.3.2, wisiwig and ckeditor disabled. windows server running php5.
any ideas what could be causing this?
Comment #3
thomas1977 CreditAttribution: thomas1977 commented@ snowfire
Just for the record: I'm running windows server as well. Don't know if this has got anything to do with it.
Comment #4
snowfire CreditAttribution: snowfire commented@thomas1977
- I disabled the admin overlay, and I can now add content.
found another error with 403 and flexible layout.
Comment #5
thomas1977 CreditAttribution: thomas1977 commentedTried switching off the overlay module, but that doesn't make any difference in my setup. Wonder what's going on...
Comment #6
Co-operatives UK CreditAttribution: Co-operatives UK commentedSame problem here - on a windows server as well. Tried disabling the overlay but that had no effect.
Comment #7
thomas1977 CreditAttribution: thomas1977 commented@ Co-operatives UK
Just out of curiosity: did you have a clean install with 3.2, or did you (like I did) update from 3.0 or 3.1 to 3.2?
Comment #8
rarioj CreditAttribution: rarioj commentedTo get it to work, I had to remove line 86 in the file
panels/includes/add-content.inc
.So the final function will look like this:
Comment #9
thomas1977 CreditAttribution: thomas1977 commented@ rarioj
Thanks. However, I'm not too fond of the idea of having to hack module core files. Bad experiences in the past. I'd much prefer an update that fixes the issue.
Comment #10
rarioj CreditAttribution: rarioj commentedMe neither. But the cause of the error seems to be the someone leaving out debug message (CMIIW). Thus, I provided the quick fix.
Comment #11
merlinofchaos CreditAttribution: merlinofchaos commentedRemoved the message and pushed.
This error is partly because your site is using the PHP setting to print errors to the screen; this can cause issues with AJAX in general and you should turn this off. And while that message should not be there, it's way too easy to get a notice or a warning that would break AJAX this way.
Comment #12
thomas1977 CreditAttribution: thomas1977 commentedTested. Works now. Thanks!
Comment #13
Co-operatives UK CreditAttribution: Co-operatives UK commentedAn upgrade from 3.1.
Comment #15
xaa CreditAttribution: xaa commented#8 seems working just fine.
simply comment the line 86: error_log('test');, refresh the page and no more error