Hi,
While trying to create a single-column panel I received the following error after trying to add "new custom content".
I have also tried to do this with mini panels and adding a New Variant on an already existing panel page but I got the same exactly error.
Many thanks in advance
[ { "command": "append", "selector": "#panel-pane-middle", "data": "\x3cdiv class=\"panel-pane\" id=\"panel-pane-new-3\"\x3e\x3cdiv class=\"grabber\"\x3e\x3cspan class=\"buttons\"\x3e\x3cdiv class=\"ctools-dropdown-no-js ctools-dropdown\" id=\"ctools-dropdown-1\"\x3e\x3cdiv class=\"ctools-dropdown-link-wrapper\"\x3e\x3ca href=\"#\" class=\"ctools-dropdown-link ctools-dropdown-image-link\"\x3e\x3cimg src=\"/drupal/sites/all/modules/panels/images/icon-configure.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class=\"ctools-dropdown-container-wrapper\"\x3e\x3cdiv class=\"ctools-dropdown-container\"\x3e\x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/drupal/panels/ajax/hide/16/new-3\" class=\"ctools-use-ajax\"\x3eDisable this pane\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/drupal/panels/ajax/configure/16/new-3\" class=\"ctools-use-modal\"\x3eSettings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2\"\x3e\x3ca href=\"/drupal/panels/ajax/style-type/pane/16/new-3\" class=\"ctools-use-modal\"\x3eStyle: No style\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"3\"\x3e\x3ca href=\"/drupal/panels/ajax/pane-css/16/new-3\" class=\"ctools-use-modal\"\x3eCSS properties\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"4\"\x3e\x3ca href=\"/drupal/panels/ajax/access-settings/16/new-3\" class=\"ctools-use-modal\"\x3eVisibility settings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"5\"\x3e\x3ca href=\"/drupal/panels/ajax/access-add/16/new-3\" class=\"ctools-use-modal\"\x3e -- Add new visibility rule\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"6\"\x3e\x3ca href=\"/drupal/panels/ajax/cache-method/16/new-3\" class=\"ctools-use-modal\"\x3eCache method: No caching\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"7 last\"\x3e\x3ca href=\"/drupal/%2523\" class=\"pane-delete\" id=\"pane-delete-panel-pane-new-3\"\x3eRemove\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/span\x3e\x3cspan class=\"text\"\x3eCustom (hallo)\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"panel-pane-collapsible\"\x3e\x3cdiv class=\"pane-title\"\x3ehallo\x3c/div\x3e\x3cdiv class=\"pane-content\"\x3ehallo\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e" }, { "command": "changed", "selector": "#panel-pane-new-3", "star": "div.grabber span.text" }, { "command": "modal_dismiss" } ]
Comments
Comment #1
merlinofchaos commentedWhen you see an error like this, please check your javascript error console. In firefox you can get to this via ctrl-shift-J. IE8 has one too, though I don't remember how to get to it.
Comment #2
sp_key commentedCool, thanks for the advice.
I'm not entirely sure which error is the one associated with my problem as my console was full of errors and even after I emptied it I still got quite a few after trying to add a new single-column panel. However, I suspect it is Image Assist that does that and this is the error reported from the console:
(Image Assist undefined - details below)
Please let me know if this is something I need to report as an image assist issue and many thanks for your time.
------------------------------------------
/* $Id: img_assist.js,v 1.6.4.2 2008/07/22 23:08:13 sun Exp $ */
Drupal.behaviors.img_assist = function(context) {
$('textarea.img_assist:not(.img_assist-processed)', context).each(function() {
// Drupal's teaser behavior is a destructive one and needs to be run first.
if ($(this).is('textarea.teaser:not(.teaser-processed)')) {
Drupal.behaviors.teaser(context);
}
$(this).addClass('img_assist-processed').parent().append(Drupal.theme('img_assist_link', this));
});
}
Drupal.theme.prototype.img_assist_link = function(el) {
var html = '
if (Drupal.settings.img_assist.link == 'icon') {
link = '
}
html += ''+ link +'';
html += '
';
return html;
}
function launch_popup(nid, mw, mh) {
var ox = mw;
var oy = mh;
if((ox>=screen.width) || (oy>=screen.height)) {
var ox = screen.width-150;
var oy = screen.height-150;
var winx = (screen.width / 2)-(ox / 2);
var winy = (screen.height / 2)-(oy / 2);
var use_scrollbars = 1;
}
else {
var winx = (screen.width / 2)-(ox / 2);
var winy = (screen.height / 2)-(oy / 2);
var use_scrollbars = 0;
}
var win = window.open(Drupal.settings.basePath + 'index.php?q=img_assist/popup/' + nid, 'imagev', 'height='+oy+'-10,width='+ox+',top='+winy+',left='+winx+',scrollbars='+use_scrollbars+',resizable');
}
Comment #3
merlinofchaos commentedYes, the img_assist issue is known. There is a workaround that with the latest img_assist dev you can set panels/ajax/* as fieldsets where the img_assist code will not be attached to textareas and that will prevent it from crashing.
Comment #4
opp67 commentedThe 'Image Assist' module is the culprit, deactivate it and you will be able to post custom content nodes.