Hello there,
When clicking the small cog to add content to a panel layout the following error appears in a modal window

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /panels/ajax/editor/select-content/panel_context%3Apage-help%3Apage_help_panel_context/middle
StatusText: OK
ResponseText: [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":"cpPPcHLn7hHWW01RLnksawH3pFpj-qNkcHVaQGB2mrs","css":{"misc\/ui\/jquery.ui.core.css":1,"misc\/ui\/jquery.ui.theme.css":1,"modules\/overlay\/overlay-parent.css":1},"js":{"headjs--script":1,"headjs--replace":1}},"beautytips":{".beautytips":{"cssSelect":".beautytips"},"beautytips_manager_custom_2":{"fill":"#382D49","strokeStyle":"#666666","spikeLength":15,"spikeGirth":10,"width":350,"overlap":0,"centerPointY":1,"cornerRadius":5,"cssStyles":{"fontFamily":"\"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif","fontSize":"12px","padding":"10px 14px"},"shadow":true,"shadowColor":"rgba(0,0,0,.5)","shadowBlur":8,"shadowOffsetX":4,"shadowOffsetY":4,"cssSelect":"a.tips","style":"hulu","trigger":"hover","shrinkToFit":true,"animate":{"on":"fadeIn","off":"fadeOut"},"list":["fill","strokeStyle","spikeLength","spikeGirth","width","overlap","centerPointY","cornerRadius","cssStyles","shadow","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","trigger","shrinkToFit","animate"]},"beautytips_manager_custom_3":{"fill":"#382D49","strokeStyle":"#666666","spikeLength":15,"spikeGirth":10,"width":350,"overlap":0,"centerPointY":1,"cornerRadius":5,"cssStyles":{"fontFamily":"\"Lucida Grande\",Helvetica,Arial,Verdana,sans-serif","fontSize":"12px","padding":"10px 14px"},"shadow":true,"shadowColor":"rgba(0,0,0,.5)","shadowBlur":8,"shadowOffsetX":4,"shadowOffsetY":4,"cssSelect":"#edit-search-block-form--2","style":"hulu","trigger":["focus","focus"],"shrinkToFit":true,"positions":["bottom"],"list":["fill","strokeStyle","spikeLength","spikeGirth","width","overlap","centerPointY","cornerRadius","cssStyles","shadow","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","trigger","shrinkToFit","positions"]}},"mediaelementAll":true,"overlay":{"paths":{"admin":"node\/*\/webform\nnode\/*\/webform\/*\nnode\/*\/webform-results\nnode\/*\/webform-results\/*\nnode\/*\/submission\/*\nnode\/*\/outline\nnode\/*\/outline\/remove\nmedia\/*\/edit\nmedia\/*\/multiedit\nmedia\/*\/delete\nnode\/*\/edit\nnode\/*\/delete\nnode\/*\/revisions\nnode\/*\/revisions\/*\/revert\nnode\/*\/revisions\/*\/delete\nnode\/add\nnode\/add\/*\noverlay\/dismiss-message\nuser\/*\/shortcuts\nadmin\nadmin\/*\nbatch\ntaxonomy\/term\/*\/edit\nnode\/*\/translate\nuser\/*\/cancel\nuser\/*\/edit\nuser\/*\/edit\/*","non_admin":"admin\/structure\/block\/demo\/*\nadmin\/reports\/status\/php"},"ajaxCallback":"overlay-ajax"},"extlink":{"extTarget":"_blank","extClass":"ext","extSubdomains":1,"extExclude":"","extInclude":"","extAlert":0,"extAlertText":"This link will take you to an external web site. We are not responsible for their content.","mailtoClass":"mailto"}},"merge":true},{"command":"insert","method":"prepend","selector":"head","data":"\u003cstyle type=\"text\/css\" media=\"all\"\u003e@import url(\"http:\/\/funnywonders.21designs.co.uk\/misc\/ui\/jquery.ui.core.css?lld5hf\");\n@import url(\"http:\/\/funnywonders.21designs.co.uk\/themes\/seven\/jquery.ui.theme.css?lld5hf\");\n@import url(\"http:\/\/funnywonders.21designs.co.uk\/modules\/overlay\/overlay-parent.css?lld5hf\");\u003c\/style\u003e\n","settings":null},{"command":"insert","method":"prepend","selector":"head","data":"\u003cscript type=\"text\/javascript\"\u003e\n\u003c!--\/\/--\u003e\u003c![CDATA[\/\/\u003e\u003c!--\n\/**\n\tHead JS\t\tThe only script in your \u003cHEAD\u003e\n\tCopyright\tTero Piirainen (tipiirai)\n\tLicense\t\tMIT \/ http:\/\/bit.ly\/mit-license\n\tVersion\t\t0.9\n\t\n\thttp:\/\/headjs.com\n*\/(function(a){var b=a.documentElement,c={screens:[320,480,640,768,1024,1280,1440,1680,1920],section:\"-section\",page:\"-page\",head:\"head\"},d=[];if(window.head_conf)for(var e in head_conf)head_conf[e]!==undefined\u0026\u0026(c[e]=head_conf[e]);function f(a){d.push(a)}function g(a){var c=new RegExp(\"\\\\b\"+a+\"\\\\b\");b.className=b.className.replace(c,\"\")}function h(a,b){for(var c=0;c\u003ca.length;c++)b.call(a,a[c],c)}var i=window[c.head]=function(){i.ready.apply(null,arguments)};i.feature=function(a,c,e){{if(a){Object.prototype.toString.call(c)==\"[object Function]\"\u0026\u0026(c=c.call()),f((c?\"\":\"no-\")+a),i[a]=!!c,e||(g(\"no-\"+a),g(a),i.feature());return i}b.className+=\" \"+d.join(\" \"),d=[]}};var j=navigator.userAgent.toLowerCase();j=\/(webkit)[ \\\/]([\\w.]+)\/.exec(j)||\/(opera)(?:.*version)?[ \\\/]([\\w.]+)\/.exec(j)||\/(msie) ([\\w.]+)\/.exec(j)||!\/compatible\/.test(j)\u0026\u0026\/(mozilla)(?:.*? rv:([\\w.]+))?\/.exec(j)||[],j[1]==\"msie\"\u0026\u0026(j[1]=\"ie\"),f(j[1]),i.browser={version:j[2]},i.browser[j[1]]=true;if(i.browser.ie)for(var k=3;k\u003c11;k++)parseFloat(j[2])\u003ck\u0026\u0026f(\"lt-ie\"+k);h(\"abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\".split(\"|\"),function(b){a.createElement(b)}),h(location.pathname.split(\"\/\"),function(a,d){if(this.length\u003e2\u0026\u0026this[d+1]!==undefined)d\u0026\u0026f(this.slice(1,d+1).join(\"-\")+c.section);else{var e=a||\"index\",g=e.indexOf(\".\");g\u003e0\u0026\u0026(e=e.substring(0,g)),b.id=e+c.page,d||f(\"root\"+c.section)}});function l(){var a=window.outerWidth||b.clientWidth;b.className=b.className.replace(\/ (w|lt)-\\d+\/g,\"\"),f(\"w-\"+Math.round(a\/100)*100),h(c.screens,function(b){a\u003c=b\u0026\u0026f(\"lt-\"+b)}),i.feature()}l(),window.onresize=l,i.feature(\"js\",true).feature()})(document),function(){var a=document.createElement(\"i\"),b=a.style,c=\" -o- -moz- -ms- -webkit- -khtml- \".split(\" \"),d=\"Webkit Moz O ms Khtml\".split(\" \"),e=window.head_conf\u0026\u0026head_conf.head||\"head\",f=window[e];function g(a){for(var c in a)if(b[a[c]]!==undefined)return true}function h(a){var b=a.charAt(0).toUpperCase()+a.substr(1),c=(a+\" \"+d.join(b+\" \")+b).split(\" \");return!!g(c)}var i={gradient:function(){var a=\"background-image:\",d=\"gradient(linear,left top,right bottom,from(#9f9),to(#fff));\",e=\"linear-gradient(left top,#eee,#fff);\";b.cssText=(a+c.join(d+a)+c.join(e+a)).slice(0,-a.length);return!!b.backgroundImage},rgba:function(){b.cssText=\"background-color:rgba(0,0,0,0.5)\";return!!b.backgroundColor},opacity:function(){return a.style.opacity===\"\"},textshadow:function(){return b.textShadow===\"\"},multiplebgs:function(){b.cssText=\"background:url(\/\/:),url(\/\/:),red url(\/\/:)\";return(new RegExp(\"(url\\\\s*\\\\(.*?){3}\")).test(b.background)},boxshadow:function(){return h(\"boxShadow\")},borderimage:function(){return h(\"borderImage\")},borderradius:function(){return h(\"borderRadius\")},cssreflections:function(){return h(\"boxReflect\")},csstransforms:function(){return h(\"transform\")},csstransitions:function(){return h(\"transition\")},fontface:function(){var a=navigator.userAgent,b;if(0)return true;if(b=a.match(\/Chrome\\\/(\\d+\\.\\d+\\.\\d+\\.\\d+)\/))return b[1]\u003e=\"4.0.249.4\";if((b=a.match(\/Safari\\\/(\\d+\\.\\d+)\/))\u0026\u0026!\/iPhone\/.test(a))return b[1]\u003e=\"525.13\";if(\/Opera\/.test(({}).toString.call(window.opera)))return opera.version()\u003e=\"10.00\";if(b=a.match(\/rv:(\\d+\\.\\d+\\.\\d+)[^b].*Gecko\\\/\/))return b[1]\u003e=\"1.9.1\";return false}};for(var j in i)i[j]\u0026\u0026f.feature(j,i[j].call(),true);f.feature()}(),function(a){var b=a.documentElement,c,d,e=[],f=[],g={},h={},i=a.createElement(\"script\").async===true||\"MozAppearance\"in a.documentElement.style||window.opera;var j=window.head_conf\u0026\u0026head_conf.head||\"head\",k=window[j]=window[j]||function(){k.ready.apply(null,arguments)};var l=0,m=1,n=2,o=3;i?k.js=function(){var a=arguments,b=a[a.length-1],c=[];t(b)||(b=null),s(a,function(d,e){d!=b\u0026\u0026(d=r(d),c.push(d),x(d,b\u0026\u0026e==a.length-2?function(){u(c)\u0026\u0026p(b)}:null))});return k}:k.js=function(){var a=arguments,b=[].slice.call(a,1),d=b[0];if(!c){f.push(function(){k.js.apply(null,a)});return k}d?(s(b,function(a){t(a)||w(r(a))}),x(r(a[0]),t(d)?d:function(){k.js.apply(null,b)})):x(r(a[0]));return k},k.ready=function(a,b){if(a==\"dom\"){d?p(b):e.push(b);return k}t(a)\u0026\u0026(b=a,a=\"ALL\");var c=h[a];if(c\u0026\u0026c.state==o||a==\"ALL\"\u0026\u0026u()\u0026\u0026d){p(b);return k}var f=g[a];f?f.push(b):f=g[a]=[b];return k},k.ready(\"dom\",function(){c\u0026\u0026u()\u0026\u0026s(g.ALL,function(a){p(a)}),k.feature\u0026\u0026k.feature(\"domloaded\",true)});function p(a){a._done||(a(),a._done=1)}function q(a){var b=a.split(\"\/\"),c=b[b.length-1],d=c.indexOf(\"?\");return d!=-1?c.substring(0,d):c}function r(a){var b;if(typeof a==\"object\")for(var c in a)a[c]\u0026\u0026(b={name:c,url:a[c]});else b={name:q(a),url:a};var d=h[b.name];if(d\u0026\u0026d.url===b.url)return d;h[b.name]=b;return b}function s(a,b){if(a){typeof a==\"object\"\u0026\u0026(a=[].slice.call(a));for(var c=0;c\u003ca.length;c++)b.call(a,a[c],c)}}function t(a){return Object.prototype.toString.call(a)==\"[object Function]\"}function u(a){a=a||h;var b=false,c=0;for(var d in a){if(a[d].state!=o)return false;b=true,c++}return b||c===0}function v(a){a.state=l,s(a.onpreload,function(a){a.call()})}function w(a,b){a.state||(a.state=m,a.onpreload=[],y({src:a.url,type:\"cache\"},function(){v(a)}))}function x(a,b){if(a.state==o\u0026\u0026b)return b();if(a.state==n)return k.ready(a.name,b);if(a.state==m)return a.onpreload.push(function(){x(a,b)});a.state=n,y(a.url,function(){a.state=o,b\u0026\u0026b(),s(g[a.name],function(a){p(a)}),d\u0026\u0026u()\u0026\u0026s(g.ALL,function(a){p(a)})})}function y(c,d){var e=a.createElement(\"script\");e.type=\"text\/\"+(c.type||\"javascript\"),e.src=c.src||c,e.async=false,e.onreadystatechange=e.onload=function(){var a=e.readyState;!d.done\u0026\u0026(!a||\/loaded|complete\/.test(a))\u0026\u0026(d(),d.done=true)},b.appendChild(e)}set

Does anyone have any advice?
Cheers

CommentFileSizeAuthor
#56 Captura.PNG206.28 KBKhun

Comments

tr33m4n’s picture

I should make it clear, I clicked on the settings cog and then clicked on add content for this error to appear, not just clicked the cog

David Sparks’s picture

Hi

It's something to do with jQuery - not entirely sure what, but for me uninstalling the jQuery UI and jQuery Update modules fixed the problem. No doubt I'll need them soon though, so if anyone figures out the problem please let us know..!

tvb’s picture

Hello,

Disabling 'Drupal for Firebug' as indicated in this issue solved the problem for me: http://drupal.org/node/1050648#comment-4413726

It made the AJAX HTTP errors dissappear.

sionescu’s picture

+1 for disabling Drupal for Firebug

Thomas_M’s picture

I get a similar error, but not when clicking on "Add content" but two windows later, when trying to add a field/ view/ form etc. (although for some it works...). I don't get Error 200 but Error 500.

Before it was working, now suddenly not anymore. Cannot reconstruct what has happened. Deinstalled the latest updates didn't change anything. Don't have 'Drupal for Firebug' or 'Jquery UI' installed.

Any ideas?

Thomas_M’s picture

Now I deinstalled "Firebug" (before I only deactivated it in Firefox) and it works again. There was an update of firebug (version 1.7.3) a couple of days ago. Afterwards the problem occurred.

luthien7’s picture

I am having this same problem with some differences. I have been up and down the issues list and this is the closest match I have found...I apologize profusely if I missed something and this issue is already fixed elsewhere:

I have a test site set up on my home computer and an active site online -- they are configured exactly the same. When I go through the wizard to create a landing page - or try to edit an existing panel - on the active (online) site, at the point of adding a variant or adding content to a pane (any time, in other words, that the pop-up screen would activate) I get the white screen with spinner (endlessly) and
"An AJAX HTTP error occurred.
HTTP Result Code: 200" error. I installed firebug and the firebug module for drupal in order to figure out why it was happening, so it was happening prior to those items being installed so I know is isn't that.
I checked error logs and it states "page not found --- misc/jquery.cookie.js" though I have verified that does exist. I don't think it has to do with my host site handling of jquery or apache as I had this working perfectly before I upgraded Drupal from 7.2 to 7.4. Strangely, my test set up on my local machine works just fine on Drupal 7.4 and has had none of these issues.

Any help is greatly appreciated

screenage’s picture

subscribing

admataz’s picture

It seems this error is a symptom that doesn't really indicate the cause. There are multiple potential causes for this, depending on various client/server configurations and Drupal settings and modules installed.

For me it is related to a javascript error triggered when I try to upload and a clash between a TinyMCE instance with the media plugin and the ajax/ahah in fileupload (Drupal 6.22). In Firefox.

I don't have a fix so far, but I know how to avoid it in my instance. Hope that helps someone....

IronWorker’s picture

#5: same here. Turned off the module and the problem went away. Running Drupal for Firebug 7.x-1.2 and Panels 7.x-3.0-alpha3

bocaj’s picture

Turning off Drupalforfirebug appears to have fixed the issue for me as well!

elzix’s picture

Version: 7.x-3.x-dev » 7.x-3.0-alpha3

When clicking the small cog to add content to a panel layout the following error appears in a modal window

[{"command":"settings","settings":{"basePath":"\/dru\/","pathPrefix":"","ajaxPageState":{"theme":"pedon","theme_token":"N6zIGpDRc6Hi_5TbnvAy1m_lS49zxrRSxzYzMFvn8v4","css":[]},"overlay":{"paths":{"admin":"node\/*\/edit\nnode\/*\/delete\nnode\/*\/revisions\nnode\/*\/revisions\/*\/revert\nnode\/*\/revisions\/*\/delete\nnode\/add\nnode\/add\/*\noverlay\/dismiss-message\nuser\/*\/shortcuts\nadmin\nadmin\/*\nbatch\ntaxonomy\/term\/*\/edit\nuser\/*\/cancel\nuser\/*\/edit\nuser\/*\/edit\/*","non_admin":"admin\/structure\/block\/demo\/*\nadmin\/reports\/status\/php"},"ajaxCallback":"overlay-ajax"}},"merge":true},{"command":"modal_display","title":"Add content to Right side","output":"\u003cdiv class=\"panels-add-content-modal\"\u003e\u003cdiv class=\"panels-section-column panels-section-column-categories\"\u003e\u003cdiv class=\"inside\"\u003e\u003cdiv class=\"panels-categories-box\"\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/activity\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eActivity\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/custom-blocks\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eCustom blocks\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/menus\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eMenus\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/miscellaneous\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eMiscellaneous\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/node\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eNode\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/node--tokens-\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eNode (tokens)\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/page-elements\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003ePage elements\u003c\/a\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/select-content\/1\/right\/widgets\" class=\"use-ajax panels-modal-add-category\" title=\"\"\u003eWidgets\u003c\/a\u003e\u003c\/div\u003e\u003cdiv class=\"content-type-button clearfix\"\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/add-pane\/1\/right\/node\/node\" class=\"use-ajax panels-modal-add-config\" title=\"Add a node from your site as content.\"\u003e\u003cimg typeof=\"foaf:Image\" src=\"http:\/\/nexgen.co.ke\/dru\/sites\/all\/modules\/ctools\/plugins\/content_types\/node\/icon_node.png\" alt=\"\" \/\u003e\u003c\/a\u003e\u003cdiv\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/add-pane\/1\/right\/node\/node\" class=\"use-ajax panels-modal-add-config\" title=\"Add a node from your site as content.\"\u003eExisting node\u003c\/a\u003e\u003c\/div\u003e\u003c\/div\u003e\u003cdiv class=\"content-type-button clearfix\"\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/add-pane\/1\/right\/custom\/custom\" class=\"use-ajax panels-modal-add-config\" title=\"Create a completely custom piece of HTML content.\"\u003e\u003cimg typeof=\"foaf:Image\" src=\"http:\/\/nexgen.co.ke\/dru\/sites\/all\/modules\/ctools\/images\/no-icon.png\" alt=\"\" \/\u003e\u003c\/a\u003e\u003cdiv\u003e\u003ca href=\"\/dru\/panels\/ajax\/editor\/add-pane\/1\/right\/custom\/custom\" class=\"use-ajax panels-modal-add-config\" title=\"Create a completely custom piece of HTML content.\"\u003eNew custom content\u003c\/a\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/div\u003e\u003cdiv class=\"panels-categories-description\"\u003eContent options are divided by category. Please select a category from the left to proceed.\u003c\/div\u003e\u003c\/div\u003e"}]

Firefox 3.6.9 Fresh Install
Drupal 7.7 Fresh Install
Panels 7.x-3.0-alpha3
Ctools 7.x-1.0-rc1
Firebug - NOT INSTALLED (or don't know what it is)
Drupal for Firebug - NOT INSTALLED (or don't know what it is)
jQuery UI - NOT INSTALLED (or don't know what it is)

nagiek’s picture

+1 for disabling DrupalForFirebug. Latest -dev version seems to be working. See #1139190: Drupal For Firebug Breaks Ctools

@elzix try upgrading to the dev version

ILLIA’s picture

+1 for disabling DrupalForFirebug helped me. Thanks guys a lot! ;)

aangel’s picture

I'm getting the same error and am not using Drupal for Firebug, etc. and upgrading to the latest -dev version didn't help, either.

aangel’s picture

I methodically turned off all my optional modules and that made the problem go away...unfortunately I turned them off in batches so I don't know exactly which module contributed to my error. When I turned them back on in pairs the error did not return.

leovw’s picture

I am experiencing the exact same thing in mini panels... Disabling my last installed module seemed to solve it - http://drupal.org/project/twitter_profile_widget
(frustratingly the module I was hoping to put in the mini panel!)

A solution would be gratefully accepted!

ethant’s picture

Adding this (below) to my theme's template.php file causes me to get the ajax load gif, and nothing else:

function omega_preprocess_page(&$variables) {

  drupal_add_js(path_to_theme() . '/js/jquery.min.js');
  drupal_add_js(path_to_theme() . '/js/jquery-ui.min.js');
  drupal_add_js(path_to_theme() . '/js/colorchange.js');
}

So, using this module disallows users from adding scripts to their theme?

EDIT:
Solved the problem by adding my scripts to the main Omega theme (I am using a sub theme) html.tpl file. I know it's not ideal, but it'll do.

7wonders’s picture

Same issue here and disabling drupalforfirebug fixed the problem in my case.

Letharion’s picture

Status: Active » Closed (won't fix)

This type of issue pops up all the time.
Javascript error [X] breaks panels functionalty [Y].
In each individual case, someone with JS-skills needs to sit down, figure out the problem, and post a patch, either to Panels or whichever other module/theme that causes the problem.

The maintainers of Panels can not ensure JS-compatibility with every other module out there. Issues like this are only likely to be fixed when a developer hits this issue and proposes a fix. If you can't figure it out yourself, and you really need a fix, please try to find a consultant.

This particular issues has listed several different causes of the same problem, unfortunately, that makes this particular issues extra difficult to work on, as it's unclear which exact problem we are trying to solve. I will close this issue "Won't fix". If you still suffer from this problem afterwards, do as those above, disable things until you find the culprit, and the post a new, more specific issue like "Drupalforfirebug version X breaks Panels UI", or something similar. This helps us keep issues apart, and increases the likely hood for their individual resolution. Thank you.

bennos’s picture

Normaly it helps to deactivate the JS Aggregation, when it is an JS problem.

jcir’s picture

+1 for disabling DrupalForFirebug helped me too. Thanks guys a lot! ;)

skriptble’s picture

+1 for disabling the Twitter Profile Module. I would have liked to use this as well but I had other problems with it anyway (It doesn't display properly in my theme.)

ahillio’s picture

in my case disabling Devel's "Theme Developer" module solved it

tr33m4n’s picture

In response to #22, couldn't panels work without jscript and then allow the user to enable it via a module if needs be? Personally I think it'd be great if no jscript was involved initially, but I s'pose you can't do everything without it

merlinofchaos’s picture

If you can make drag & drop work without layout you're a better person than I am.

slyisarenko-ilya@mail.ru’s picture

In my case message appears when I try do any ajax action.
It happenes because I modify index.php in root directory of drupal installation for test proposes and add some output here.
All ajax requests got this dummy output and fails.
Removing it resolved my problem.

raulmuroc’s picture

Status: Closed (won't fix) » Active

Should fix because it is a big problem to have all panels interface broken and not working.

dave reid’s picture

Status: Active » Closed (fixed)
therobyouknow’s picture

I believe this was fixed with #1708230: panels/ajax does not respond with the 'application/json' Content-Type header.

Has it? Can we confirm?

This is where I see the same problem as the original poster - when I attempt to configure a panels side menu bar I get the error message in a dialog pop up as shown via the link below (the same error text as provided by the original poster). My screen shot shows where it occurs for my situation:

http://i48.tinypic.com/2n8v2nt.png

Seen this in Chrome browser (so turning off Firebug on Firefox is not relevant to me, but great news for folks that it is for). Actually this doesn't work for me anyway - I've tried using Firefox (I don't have the firebug plugin), and I get the same error.

Running as a local development on MAMP PRO on MacOS X 10.7.4

PHP 5.4.4

Drupal 7.15

Panels 7.x-3.3

Omega Tools 7.x-3.0-rc4

Omega Alpha 7.x-3.1

Omega 7.x-3.1

Chaos Tools 7.x-1.2

Sub themed off omega. No changes to this subtheme. Just bare theme at the moment.

therobyouknow’s picture

Title: An AJAX HTTP error occurred in panel content editor » Can get further if start from scratch - Letharion appears to have the best idea

I started from scratch as I found there were several other modules I had installed which may be interfering with Panels/CTools/Themes or wherever this error message originated from.

I took Letharion's advice as they appear to have the best idea in their comment: http://drupal.org/node/1160788#comment-5325586:

The maintainers of Panels can not ensure JS-compatibility with every other module

Here is what I started from scratch with - this is my drush make file:

core = 7.x

api = 2
projects[] = drupal

; Standard modules 
projects[] = views
projects[] = ctools
projects[] = pathauto 
projects[] = token
projects[] = panels

; Base theme 
projects[] = omega

Then I downloaded omega tools

drush dl omega_tools

and enabled this

drush en omega_tools

then I created a sub theme "therobyouknow" from omega

drush omega-subtheme therobyouknow --starterkit=starterkit_omega_html5

and enabled the other modules installed in the drush make (above)

etc.

Then in the Drupal admin web ui I set my omega sub theme as default

And then I attempted to edit the side menu (as before, where the problem occurred), this time it worked - no error message. So far so good.

Next steps: I need other modules such as Media, Font modules, Google Analytics, so I'll install them one by one and take snapshots. And see how I go.

Not out of the woods yet but further than before.

therobyouknow’s picture

Right idea - realistic, Letharion:

The maintainers of Panels can not ensure JS-compatibility with every other module out there

So I started from scratch with just a few modules, success so far, but still a way to go, will install one by one and snapshot

See below my comment:
http://drupal.org/node/1160788#comment-6512474

raulmuroc’s picture

Title: Can get further if start from scratch - Letharion appears to have the best idea » An AJAX HTTP error occurred in panel content editor

Please, do not change the title to something that does not have any logic :S

Just say:

Can get further if start from scratch - @Letharion in #22 appears to have the best idea

Thank you.

therobyouknow’s picture

Since my last comment, I have installed a whole lot of other modules and still found no problem. I will post the list here, soon.

_redfog’s picture

I had the same issue. For me, it seems to be a JS conflict.
Every time I saved a node, this type of errors appears to me on white page.
(I havn't got the firebug module.)

Then, I tried to desactivate some module, at first mine. I think it came from one of my JS file.
As you probably know, you might use behaviors in JS file like this :

(function ($) {

  Drupal.behaviors.youBehaviorName= {
    attach: function(context, settings) {
	//bla bla
    }}
})(jQuery);

When you have a selector, you can precise the context

$('myselector', context).even(function() {...})

Having put the context to find the selector solved me the problem.

therobyouknow’s picture

I hope that @_redfog's advice helps those who want to try to fix their site as it is (thanks to @_redfog for their contribution). For those that want to start from scratch, as I promised earlier here are my steps so far.

This was my drush make file to start with:

core = 7.x

api = 2
projects[] = drupal

; Standard modules 
projects[] = views
projects[] = ctools
projects[] = pathauto 
projects[] = token
projects[] = panels

; Base theme 
projects[] = omega

I ran this (using drush make (specify drush make file) - I assume you have drush set up. Daunting? Check out Dani Nordin's books on O'Reilly (no I don't have any advantage promoting these).

Then step-by-step I installed the following modules, again in drush (at the command line).

Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush dl omega_tools
Project omega_tools (7.x-3.0-rc4) downloaded to                                                                 [success]
/Users/robertdavis/Sites/therobyouknow.com/sites/all/modules/omega_tools.
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush en omega_tools
The following extensions will be enabled: omega_tools, ctools
Do you really want to continue? (y/n): y
ctools was enabled successfully.                                                                                [ok]
omega_tools was enabled successfully.                                                                           [ok]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush omega-subtheme therobyouknow --starterkit=starterkit_omega_html5
You have successfully created the theme therobyouknow.                                                          [status]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush en therobyouknow
The following extensions will be enabled: therobyouknow
Do you really want to continue? (y/n): y
therobyouknow was enabled successfully.                                                                         [ok]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush dis bartik
bartik is the default theme and can't be disabled.                                                              [ok]
There were no extensions that could be disabled.                                                                [ok]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush en views
The following extensions will be enabled: views
Do you really want to continue? (y/n): y
views was enabled successfully.                                                                                 [ok]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush en panels
The following extensions will be enabled: panels
Do you really want to continue? (y/n): y
panels was enabled successfully.                                                                                [ok]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ 

More steps here (I have just listed the modules and if the install went OK (i.e. didn't get the error (that this post is about)):

Things going OK are denoted by 'ok'

activated panels page manager module
and
panel nodes

'ok'

views content (not sure what this was actually - I don't think it was a module)

ran cron

'ok'

installed and enabled stylizer module
ran cron

installed and enabled pathauto
installed and enabled token

ran cron

installed and enabled panels in place editor

ran cron

installed and enabled mini panels

ran cron

'ok'

installed and enabled views ui

ran cron

'ok'

updated token

installed and enabled media

ran cron

notes: media internet sources

installed and enabled plupload

'ok'

link1
link2
link3

'ok'

installed and enabled Wysiwyg

installed and enabled multiform

'ok'

installed and enabled libraries

'ok'

issued command mkdir sites/all/libraries

downloaded colorbox jquery plugin
- from http://www.jacklmoore.com/colorbox
- v1.3.20 on 2012-09-24
- unpack in sites/all/libraries

installed and enabled media gallery

'ok'

installed and enabled media browser plus

Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush dl media_browser_plus
There are no releases for project media_browser_plus.
Choose one of the available releases for media_browser_plus:
 [0]  :  Cancel                                                   
 [1]  :  7.x-2.x-dev    -  2012-Aug-24  -  Supported, Development 
 [2]  :  7.x-1.x-dev    -  2012-Jan-31  -  Development            
 [3]  :  7.x-1.0-beta3  -  2011-Jul-12  -  Supported   

I selected option 1

Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush en media_browser_plus
The following projects have unmet dependencies:
media_browser_plus requires colorbox
Would you like to download them? (y/n): y

Project colorbox (7.x-1.3) downloaded to /Users/robertdavis/Sites/therobyouknow.com/sites/all/modules/colorbox.     [success]
file_put_contents(/Users/robertdavis/.drush/cache/default/5.7-commandfiles--fe7ea540800f7321311ea4d0a6acc036.cache):[warning]
failed to open stream: No such file or directory cache.inc:433
The following extensions will be enabled: media_browser_plus, colorbox
Do you really want to continue? (y/n): y

The following extensions will be enabled: media_browser_plus, colorbox
Do you really want to continue? (y/n): y
colorbox was enabled successfully.                                                                                  [ok]
media_browser_plus was enabled successfully.                                                                        [ok]

'ok!!!'

installed and enabled emfield

'ok'

installed and enabled media_youtube

issued command drush up on 2012-10-15. Problem with development media browser plus meant drush backed out the update for it - not anything to do with the error that this thread is about.
media_browser_plus version is development, after all.

So below you can see the modules I'm using, with no issues, hope this helps if you decide to eliminate modules in your setup, or start from scratch.

Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ drush up
Checking available update data ...                                                                                                                                                      [ok]
Checked available update data for Panels.                                                                                                                                               [ok]
Checked available update data for Pathauto.                                                                                                                                             [ok]
Checked available update data for Plupload integration module.                                                                                                                          [ok]
Checked available update data for Token.                                                                                                                                                [ok]
Checked available update data for Views.                                                                                                                                                [ok]
Checked available update data for Wysiwyg.                                                                                                                                              [ok]
Checked available update data for Alpha.                                                                                                                                                [ok]
Checked available update data for 7 projects.                                                                                                                                           [status]
Update information last refreshed: Mon, 10/15/2012 - 15:36

Update status information on all installed and enabled Drupal projects:
 Name                                                   Installed version  Proposed version  Status                                             
 Drupal                                                 7.15               7.15              Up to date                                         
 Colorbox (colorbox)                                    7.x-1.3            7.x-1.3           Up to date                                         
 Chaos tools (ctools)                                   7.x-1.2            7.x-1.2           Up to date                                         
 Embedded Media Field (emfield)                         7.x-1.0-alpha1     7.x-1.0-alpha1    Up to date                                         
 Media (media)                                          7.x-1.2            7.x-1.2           Up to date                                         
 Libraries (libraries)                                  7.x-2.0            7.x-2.0           Up to date                                         
 Media Browser Plus for Media 2.x (media_browser_plus)  7.x-2.x-dev        7.x-2.x-dev       Update available                                   
 Media Gallery (media_gallery)                          7.x-1.0-beta8      7.x-1.0-beta8     Up to date                                         
 Media: YouTube (media_youtube)                         7.x-2.0-rc1        7.x-2.0-rc1       Up to date                                         
 Multiple forms (multiform)                             7.x-1.0            7.x-1.0           Up to date                                         
 Omega Tools (omega_tools)                              7.x-3.0-rc4        7.x-3.0-rc4       Up to date                                         
 Panels (panels)                                        7.x-3.3            7.x-3.3           Up to date                                         
 Pathauto (pathauto)                                    7.x-1.2            7.x-1.2           Up to date                                         
 Plupload integration module (plupload)                 7.x-1.0            7.x-1.0           Up to date                                         
 Token (token)                                          7.x-1.4            7.x-1.4           Up to date                                         
 Views (views)                                          7.x-3.5            7.x-3.5           Up to date                                         
 Wysiwyg (wysiwyg)                                      7.x-2.1            7.x-2.2           Update available                                   
 Omega (omega)                                          7.x-3.1            7.x-3.1           Up to date                                         



Code updates will be made to the following projects: Media Browser Plus [media_browser_plus-7.x-2.x-dev], Wysiwyg [wysiwyg-7.x-2.2]

Note: A backup of your project will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue with the update process? (y/n): 


Do you really want to continue with the update process? (y/n): y
Project media_browser_plus was updated successfully. Installed version is now 7.x-2.x-dev.
Backups were saved into the directory                                                                                 [ok]
/Users/robertdavis/drush-backups/robdavis_therobyouknow/20120930161750/modules/media_browser_plus.
Drush command terminated abnormally due to an unrecoverable error.                                                    [error]
Error: Unsupported operand types in
/Users/robertdavis/Sites/therobyouknow.com/sites/all/modules/media_browser_plus/media_browser_plus.module, line 695
The external command could not be executed due to an application error.                                               [error]
Backups were restored successfully.                                                                                   [ok]
Robert-Daviss-MacBook-Pro:therobyouknow.com robertdavis$ 
therobyouknow’s picture

Another option would be to consider the Panopoly distribution, particularly if you are interested in publishing and flexibility of page layouts

rHOnDO’s picture

Thanks for the thead, it pointed me in the correct direction.

My issue was whenever I submitted a change for a view, I was getting the JSON error above. Based on this thread I reduced my jQuery Update pref from v1.8 to v1.7 and that got rid of my error.

terikon’s picture

Version: 7.x-3.0-alpha3 » 7.x-3.3

In my case, as I go to admin/structure/panels/layouts/add-flexible, and press "Preview" button without typing anything in "Administrative title", I get AJAX error.
If I type in the title, pressing "Preview" button works as expected.
It looks like a bug - not checking administrative title was set.

hanksterr7’s picture

#40 matched my situation. I would get JSON error (white screen full of code beginning with [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState": whenever I clicked Apply after making changes to a View.
Changing jQuery Update preference from v1.8 to v1.7 made the problem go away!

Thanks so much!

Found this post which discusses this error in more detail https://www.drupal.org/node/1869988

This post says that using the dev version of jQueryUpdate allows Views to work with jQuery v1.8 (by saying admin pages should use v1.7 and other pages can use v1.8): https://www.drupal.org/node/1965674

I was using jQuery Update v7.x-2.3. Current recommended version is 7.x-2.4. I upgraded to 2.4 and now see the option to have different jquery versions for admin vs standard pages. Setting to v.17 for admin and v1.8 for standard allows Views editing to work.

SolidSnakeGr’s picture

I've faced the same issue for weeks, any list box change on Display Suite triggered an Ajax HTTP Error 200.
I've tried everything related to jquery (disabling, upgrading, downgrading etc.) with no luck.

However it was Devel's Theme developer (devel_themer) 7.x-1.x-dev that was causing the error for me. Disabling it solved my issue and I can now work on Display Suite normally.

Just like Comment #26 said.
Thanks!

Gik000’s picture

I got a similar error that makes certain views backend not usable
Ajax error on view

I also noticed that is not a browser related problem, it is something strange that I was not able to understand.
I tried to Flush caches, rebuild permission, update all modules, disable jquery update, keep it enable and switching all possible versions, using Internet Explorer, Firefox and Chrome, with and without plugins ...
but with no results.

The problem is the same on two different servers (local and production one)

Any idea?

raulmuroc’s picture

Status: Closed (fixed) » Active

No fix at all.

sahoo2k’s picture

Hi, I am getting the following error. Please help.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://admin.indiaenvironmentportal.org.in/taxonomy/autocomplete/tags_au...
StatusText: OK
ResponseText: {"A. K. Susheela":"A. K. Susheela","Ademir Jesus Martins":"Ademir Jesus Martins","Ana Jesus":"Ana Jesus","Assistant Susan Howard":"Assistant Susan Howard","Atsushi Iimi":"Atsushi Iimi","Atsushi Suzuki":"Atsushi Suzuki","Frances G. Sussman":"Frances G. Sussman","Jesus A. Araujo":"Jesus A. Araujo","Jes\u00fas Barreiro-Hurl\u00e9":"Jes\u00fas Barreiro-Hurl\u00e9","Jesus Felipe":"Jesus Felipe"}Password:

forestgardener’s picture

@Gik000 I had the same error as you. Do you happen to have ctools automodal and ctools automodal administration enabled? I disable these and the error went away. (I didn't disable them one at a time, so it may just be ctools automodal administration at fault).

Salif’s picture

Hi,
I'm facing an AJAX error when adding a selection rules (of any type) in panel node variant.
I've try every thing I can do to fin a solution. but no success.
I'm using:
Panels 7.x-3.4
- Colorbox 7.x-2.8
- Colorbox node 7.x-3.4
- With Commerce Kickstart 7.x-2.21 (same issue with 7.x-2.20)

The error occurs when I go to edit node-view / edit variant / selections rule/ ... select a node type colorbox node or any other / click add.
Here is the error message

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://www.savabien.com/en/ctools/context/ajax/access/add/page_manager_task_handler-node_view%2Anode_view_panel_context_2/is_colorbox_node
StatusText: OK
ResponseText: [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"en\/","ajaxPageState":{"theme":"commerce_kickstart_admin","theme_token":"JDiqvLT9Dg98ZHg7W8XQUZWqeQ_T4CGsiyTxpdZUNw8","css":{"misc\/ui\/jquery.ui.core.css":1,"misc\/ui\/jquery.ui.theme.css":1,"modules\/overlay\/overlay-parent.css":1,"profiles\/commerce_kickstart\/modules\/contrib\/colorbox\/styles\/default\/colorbox_style.css":1},"js":{"sites\/all\/modules\/jquery_update\/replace\/ui\/ui\/minified\/jquery.ui.core.min.js":1,"misc\/jquery.ba-bbq.js":1,"modules\/overlay\/overlay-parent.js":1,"sites\/all\/libraries\/colorbox\/jquery.colorbox.js":1,"profiles\/commerce_kickstart\/modules\/contrib\/colorbox\/js\/colorbox.js":1,"profiles\/commerce_kickstart\/modules\/contrib\/colorbox\/styles\/default\/colorbox_style.js":1,"profiles\/commerce_kickstart\/modules\/contrib\/colorbox\/js\/colorbox_load.js":1,"profiles\/commerce_kickstart\/modules\/contrib\/colorbox\/js\/colorbox_inline.js":1}},"colorbox":{"transition":"none","speed":"600","opacity":"0.85","slideshow":false,"slideshowAuto":true,"slideshowSpeed":"2500","slideshowStart":"start slideshow","slideshowStop":"stop slideshow","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"...YUVpUCVawWL8\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u0022Ab5PUD5QM2hdG1koV37-AFL4UbuQ7aJiXU1-rAFvFZE\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022…
Salif’s picture

The culprit for my issue was that the memcache statistics were enabled.
I've solved it by disabling "show memcache statistics".
Go to admin > config > memcache (Configuration -> Memcache)
uncheck "Show memcache statistics at the bottom of each page"

This solution was suggested by erikweeb and comes from here: https://www.drupal.org/node/1367060#comment-7098220

eawheeler’s picture

In relation to posts #43 and #26, I too discovered that my issue was impacted by Devel. Although I don't have Theme Developer installed, I did change Devel's error handler from Krumo backtrace to Standard Drupal, and that resolved my problem. I'm currently running Panels 7.x-3.5

markbannister’s picture

Turning on memcahce cured the error for me. Devel installed but not displaying on admin pages.

meysamm’s picture

#40 tnx for mentioning that, in my case putting jqoury version in >1.8 worked

electrocret’s picture

I was also having this issue. When I examined the error output I noticed the module xhprof was appending the php execution statistics to the end of the response text (outside the last ' ] ' ). Upon disabling xhprof, issue has been resolved. hopefully that tidbit of info helps someone.

thelocaltourist’s picture

I'm using jQuery update with 1.9 as the default. I changed the admin jQuery version to 1.7 and that fixed it.

joelpittet’s picture

1.7 has worked the best for me as well.

Khun’s picture

StatusFileSize
new206.28 KB

Hello,

I have the same error trying to edit either a view or a panel. Its happening in my two sites with drupal commerce since the last update.

I dont know how to solve it and the jquery updates sugestions dont work.

What can I do? Thanks.

extrarumeno’s picture

#56 , Same error ... and no solution :(

abinvarkey’s picture

"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."

I got this suggestion from this disccussion. I am not sure if about that, Please make a try.

kenorb’s picture

nikolas.adhiarta’s picture

i don't believe that the problem not solve until now for more then 5 year

yash_khandelwal’s picture

Hello,

I have the same error. I am using drupal 7. I can't change settings or perform action on view of content type. I change jquery update settings and flush all cache but problem can't solve. Please provide accurate solution for this problem soon.

rosswass’s picture

I just tried #54 and it worked for me. Thank you!

Using
Drupal 7.44
Panels 7.x-3.5
CTools 7.x-1.9
JQUpdate 7.x-2.7

cisnerosd’s picture

I'm having the same problem. I need to update the smallest link and I can't get past the error. Using modules that are all up to date and jquery set at 1.7 and 1.7 google cdn. I have tried several combinations of Jquery versions.

aangel’s picture

Status: Active » Closed (outdated)