I have been trying to put one of the Profile Category in Panel but am unable to do so when i try to add i get the following on a new page unable to figure out what it is

[ { "command": "append", "selector": "#panel-pane-middle", "data": "\x3cdiv class=\"panel-pane\" id=\"panel-pane-new-1\"\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=\"/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=\"/panels/ajax/hide/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-ajax\"\x3eDisable this pane\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/panels/ajax/configure/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-modal\"\x3eSettings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2\"\x3e\x3ca href=\"/panels/ajax/style-type/pane/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-modal\"\x3eStyle: No style\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"3\"\x3e\x3ca href=\"/panels/ajax/pane-css/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-modal\"\x3eCSS properties\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"4\"\x3e\x3ca href=\"/panels/ajax/access-settings/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-modal\"\x3eVisibility settings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"5\"\x3e\x3ca href=\"/panels/ajax/access-add/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-modal\"\x3e -- Add new visibility rule\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"6\"\x3e\x3ca href=\"/panels/ajax/cache-method/panel_context%3Auser_view%3Auser_view_panel_context_2/new-1\" class=\"ctools-use-modal\"\x3eCache method: No caching\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"7 last\"\x3e\x3ca href=\"/%2523\" class=\"pane-delete\" id=\"pane-delete-panel-pane-new-1\"\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\"\x3e\"Professional\" profile fields\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"panel-pane-collapsible\"\x3e\x3cdiv class=\"pane-title\"\x3eNo info\x3c/div\x3e\x3cdiv class=\"pane-content\"\x3eNo info available.\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e" }, { "command": "changed", "selector": "#panel-pane-new-1", "star": "div.grabber span.text" }, { "command": "modal_dismiss" } ]

CommentFileSizeAuthor
#5 bug_apk.jpg56.73 KBSNaKeMe

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

This indicates some kind of javascript crash. Please check your javascript console (ctrl-shift-f in firefox) and tell me what message it gives. Please reset this back to active when you've provided this information.

abhisheknagar’s picture

Status: Postponed (maintainer needs more info) » Active

thanks for quick reply but i am not getting anything on the javascript console quite strange using firebug i see normal post and response as the test pasted above

Abhishek

SNaKeMe’s picture

Version: 6.x-3.0 » 6.x-3.2
Component: Code » Panel pages
Category: support » bug

I have the same problem.

Link goes: [home domain] .../panels/ajax/add-pane-config/panel_context%3Apage-user_view_2%3Apage_user_view_2_panel_context/right/profile_fields/profile_fields/form

And then white Screen with these Informations:

[ { "command": "settings", "argument": { "CTools": { "dependent": { "override-title-textfield": { "values": { "override-title-checkbox": [ 1 ] }, "num": 1, "type": "disable" } } } } }, { "command": "modal_display", "title": "Configure new Profile category", "output": "\x3cdiv class=\"messages\"\x3e\x3cdiv class=\"messages status\"\x3e\n\x3ca href=\"/new_kjg/admin/settings/site-maintenance\"\x3eDie Website befindet sich im Offline-Modus.\x3c/a\x3e\x3c/div\x3e\n\x3c/div\x3e\x3cform action=\"/new_kjg/panels/ajax/add-pane-config/panel_context%3Apage-user_view_2%3Apage_user_view_2_panel_context/right/profile_fields/profile_fields/form\" accept-charset=\"UTF-8\" method=\"post\" id=\"ctools-profile-fields-content-type-edit-form\"\x3e\n\x3cdiv\x3e\x3cdiv class=\"form-item\" id=\"edit-context-wrapper\"\x3e\n \x3clabel for=\"edit-context\"\x3eBenutzer: \x3c/label\x3e\n \x3cselect name=\"context\" class=\"form-select\" id=\"edit-context\" \x3e\x3coption value=\"argument_uid_1\"\x3eUser: ID\x3c/option\x3e\x3c/select\x3e\n\x3c/div\x3e\n\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\x3cdiv class=\"clear-block no-float\"\x3e\x3cdiv class=\"form-item\"\x3e\n \x3clabel\x3eWhich category: \x3c/label\x3e\n \x3cdiv class=\"form-radios\"\x3e\x3cdiv class=\"form-item\" id=\"edit-category-Allgemeines-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-category-Allgemeines\"\x3e\x3cinput type=\"radio\" id=\"edit-category-Allgemeines\" name=\"category\" value=\"Allgemeines\" class=\"form-radio\" /\x3e Allgemeines\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-category-Kjg-Mingolsheim-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-category-Kjg-Mingolsheim\"\x3e\x3cinput type=\"radio\" id=\"edit-category-Kjg-Mingolsheim\" name=\"category\" value=\"Kjg_Mingolsheim\" class=\"form-radio\" /\x3e Kjg Mingolsheim\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-category-Kontakt-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-category-Kontakt\"\x3e\x3cinput type=\"radio\" id=\"edit-category-Kontakt\" name=\"category\" value=\"Kontakt\" class=\"form-radio\" /\x3e Kontakt\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-category-Links-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-category-Links\"\x3e\x3cinput type=\"radio\" id=\"edit-category-Links\" name=\"category\" value=\"Links\" class=\"form-radio\" /\x3e Links\x3c/label\x3e\n\x3c/div\x3e\n\x3cdiv class=\"form-item\" id=\"edit-category-Persönliches-wrapper\"\x3e\n \x3clabel class=\"option\" for=\"edit-category-Persönliches\"\x3e\x3cinput type=\"radio\" id=\"edit-category-Persönliches\" name=\"category\" value=\"Persönliches\" class=\"form-radio\" /\x3e Persönliches\x3c/label\x3e\n\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3cdiv class=\"clear-block no-float\"\x3e\x3cdiv class=\"form-item\" id=\"edit-empty-wrapper\"\x3e\n \x3clabel for=\"edit-empty\"\x3eEmpty text: \x3c/label\x3e\n \x3ctextarea cols=\"60\" rows=\"5\" name=\"empty\" id=\"edit-empty\" class=\"form-textarea resizable img_assist\"\x3e\x3c/textarea\x3e\n \x3cdiv class=\"description\"\x3eText to display if category has no data. Note that title will not display unless overridden.\x3c/div\x3e\n\x3c/div\x3e\n\x3c/div\x3e\x3cinput type=\"hidden\" name=\"form_build_id\" id=\"form-d85a84ed9f47ebb40135741f4cc0fab7\" value=\"form-d85a84ed9f47ebb40135741f4cc0fab7\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_token\" id=\"edit-ctools-profile-fields-content-type-edit-form-form-token\" value=\"475e470ed669e625a30c8cfb6ffcdfa5\" /\x3e\n\x3cinput type=\"hidden\" name=\"form_id\" id=\"edit-ctools-profile-fields-content-type-edit-form\" value=\"ctools_profile_fields_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" } ]

Any idea?

merlinofchaos’s picture

#3: Please read #1.

SNaKeMe’s picture

StatusFileSize
new56.73 KB

'Drupal.settings.img_assist.link' is Null or no object

Console IE:

/* $Id: img_assist.js,v 1.8 2008/07/22 23:07:44 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 = '

', link = Drupal.t('Add image');
if (Drupal.settings.img_assist.link == 'icon') {
link = 'Only local images are allowed.';
}
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');
}

After that the IE want to start a download ... look at the image attached.

merlinofchaos’s picture

SNaKeMe: This is an issue with img_assist. See this search: http://drupal.org/project/issues/img_assist?text=panels&status=All

THe top issue shows a workaround, and there's an issue with a patch though it is currently marked 'needs work' so I'm not sure the patch is reliable.

#2: Using firebug's console is difficult because when the page refreshes, it clears the console, so you often cannot see the error it brought up. It is more reliable to use the basic firefox one which will not clear when the page is refreshed.

SNaKeMe’s picture

Thanks!

That solved the Problem:
I went to admin/settings/img_assist, selected the radio button for image assist to "Show on only the listed textareas", clicked Submit, and the problem was resolved.

merlinofchaos’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.