When I try to add content to a pane using the AJAX editor (by clicking on the plus icon), the website that is loaded displays the following text is displayed in a single unformatted line. I believe I'm running a fairly typical Drupal 6 setup, but I have recently been tweaking some things and the problem suddenly appeared. Therefore it's likely due to something I changed, but it still seems to be a bug with Panels.

The text that appears looks like this:

{ "output": "\x3cdiv class=\"panels-section-column\"\x3e\x3cdiv class=\"panels-section\"\x3e\x3ch3 class=\"panels-section-title\"\x3eCustom\x3c/h3\x3e\x3cdiv class=\"panels-section-decorator\"\x3e\x3c/div\x3e\x3cdiv class=\"panels-section-content\"\x3e\x3cdiv class=\"content-type-button clear-block\"\x3e\x3ca href=\"/panels/ajax/add-pane-config/1/row_1_2/custom_php/custom_php\" class=\"panels-ajax-link panels-modal-add-config\" title=\"Custom PHP block with access to Panels context data. Use sparingly, and with caution!\" 

...

class=\"panels-ajax-link panels-modal-add-config\" title=\"Who\x26#039;s online\" alt=\"Who\x26#039;s online\"\x3e\x3cspan id=\"thmr_46\" class=\"thmr_call\"\x3e\n  \x3cimg src=\"/sites/default/modules/panels/content_types/block/icon_core_block.png\" alt=\"Who\x26#039;s online\" title=\"Who\x26#039;s online\" width=\"16\" height=\"16\" /\x3e\x3c/span\x3e\n\n\x3c/a\x3e\x3cdiv\x3e\x3ca href=\"/panels/ajax/add-pane-config/1/row_1_2/block/user-3\" class=\"panels-ajax-link panels-modal-add-config\" title=\"Who\x26#039;s online\" alt=\"Who\x26#039;s online\"\x3eWho\'s online\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e", "type": "display", "title": "Add content to Top Middle" }

Comments

gklitt’s picture

Update: the issue only happens in Firefox (3). IE works fine.

Satanclaus’s picture

I can confirm this issue. It just started to occur out of the sudden here, too, although it worked a few times before. Browser is FF 3.0.5.

Edit:
This somehow seems to be caused by Devel module. Disabling access to Devel module prevents this bug from occurring. See also: http://drupal.org/node/149585

sdboyer’s picture

Status: Active » Closed (duplicate)

There are some well-established problems (with far-from clear or uniform solutions) with the Panels ajax interface that result in JSON code being spit back at you. Ex: #238139: "An error occurred."

dorien’s picture

Same thing with me in the alpha 3 version.
It started happening all of a sudden after switching to a live server.
I don't use the Devel module.
It fails on opera, firefox 3, Konqueror AND IE6. They just seem to open the Ajax file from the server.

gdoteof’s picture

also having this issue in FF3, only sometimes. its happening for me in a custom panel layout on a panel page

japanitrat’s picture

disabling "Secure Pages" module helped me in this case.

bcobin’s picture

Had the same problem (but I don't have Secure Pages or TinyMCE) - in my case, looks like Image Assist was the problem. See comment here: http://drupal.org/node/333018#comment-1217504

timhobert’s picture

I had the same problem and I disabled the devel module and the problem appears to be solved.

mrP’s picture

definitely a conflict with securepages in my case. disabling securepages lets me add content to panels

UPDATE:
ctools 1.3 / panels 3.3 / securepages 1.8 -- there is no problem adding content to panels with securepages is enabled
ctools 1.7 / panels 3.7 / securepages 1.8 -- securepages must be disabled in order to add content to panels

kappaluppa’s picture

I have the same problem. Am not using Secure Pages, disabled and delted Image Assist, Devel modules turned off.