When trying to add panel content to either a panel node or panel page I get code on my page when I click on anything:
[ { "command": "modal_display", "title": "Configure new Most recent poll", "output": "\x3cform action=\"/drupaldev/?q=panels/ajax/add-pane-config/3/right/block/poll-0/form\" accept-charset=\"UTF-8\" method=\"post\" id=\"ctools-block-content-type-edit-form\"\x3e\n\x3cdiv\x3e\x3cdiv class=\"option-text-aligner\"\x3e\x3cdiv class=\"form-item\" id=\"override-title-checkbox-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"override-title-checkbox\"\x3e\x3cinput type=\"checkbox\" name=\"override_title\" id=\"override-title-checkbox\" value=\"1\" class=\"form-checkbox\" /\x3e Override title\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"override-title-textfield-wrapper\"\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"override_title_text\" id=\"override-title-textfield\" size=\"35\" value=\"\" class=\"form-text\" /\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3cdiv style=\"clear: both; padding: 0; margin: 0\"\x3e\x3c/div\x3e\x3cdiv class=\"description\"\x3eYou may use %keywords from contexts, as well as %title to contain the original title.\x3c/div\x3e\x3cinput type=\"hidden\" name=\"form_build_id\" id=\"form-ada020bf84c0c057aef8227b8a379530\" value=\"form-ada020bf84c0c057aef8227b8a379530\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_token\" id=\"edit-ctools-block-content-type-edit-form-form-token\" value=\"f5d81fd6bd5b5c9868180d172dc6a264\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_id\" id=\"edit-ctools-block-content-type-edit-form\" value=\"ctools_block_content_type_edit_form\" /\x3e\n\x3cdiv class=\"clear-block\"\x3e\x3cinput type=\"submit\" name=\"op\" id=\"edit-return\" value=\"Finish\" class=\"form-submit\" /\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3c/form\x3e\n" } ]
Comments
Comment #1
merlinofchaos commentedSo far every time this has happened it has been because some other module or some theme has javascript that clashes with Panels and causes a crash.
Comment #2
summit commentedSubscribing, having this also sometimes, will look into it more. greetings, Martijn
Comment #3
icenogle commentedSubscribing. We're experiencing the same problem. Turned off a lot of modules, still no joy.
Comment #4
merlinofchaos commentedIf you see a message like this, please look in the javascript error console. In Firefox, this is accessible via ctrl-shift-j.
Comment #5
lierbag commentedFIXED! I had the same problem, so I looked at my error console in Firefox, and this was the message:
Error: Drupal.CTools.Modal.modal.modalContent is not a function
Source File: http://localhost:8888/sites/all/modules/ctools/js/modal.js?Y
Line: 44
This wasn't very helpful, so I tried removing all the external javascripts from my that I had added myself (non-module scripts). The problem was solved, but I needed some of these scripts I had just removed, so I started putting them back one by one. When I added my external jquery.js script, it broke again, so I knew this was the culprit. By removing an external jquery.js script that I had added to my in page.tpl.php I solved my problem. I had added this script myself, it wasn't part of the drupal jquery module. It was needed for some interactive features, however, in my situation, I had also installed the jquery module, so I had two of these jquery.js scripts in my head! Removing the second (non-module) jquery script from my solved the problem. I had two of these scripts though, so maybe this won't be useful to everyone. Good luck!
Comment #6
sanestrategy commentedThat doesn't work for me, considering I've tried several different themes that do not have an extra jquery.js call in their header, including Garland, a Zen theme, a 960 grid theme, and Rootcandy. Thanks for the update, though!
My error console pops up this:
Error: jQuery.modalContent is not a constructor
Source File: http://sanestrategy.com/modules/ctools/js/mc.js?M
Line: 163
Comment #7
esmerel commentedComment #8
merlinofchaos commentedThe original poster never responded. Another user marked it fixed. The last user to comment didn't actually do what I asked, so I can't help. Marking fixed. Can re-open but be sure to provide the data I asked.