The problem occures on panel content editing page, if I bring up any modal window. Window show up correctly but when I hit the "save" button instead of dismissing the modal window I just get a bunch of JSON data. The settings seems to have saved, hitting back button, than refresh on browser shows the new settings.
This happens for (almost?) every modal window, i tried these: CSS settings, cache settings, pane main settings.
I tried with very differend panel panes and on different panels, same result.
Environment:
Drupal 7.15
Panels 7.x-3.3
Ubuntu 10.04 (LAMP related packages from repository)
I use memcache, but same happens without it.
Comments
Comment #1
tommy kaneko commentedI get the same behaviour. I am using the Garland theme, and I still get the same.
The error message on the console in the browser says:
Resource interpreted as Document but transferred with MIME type application/json: "http://mydomain.com/panels/ajax/editor/cache-method/panel_context%3Auser...".
I have also picked up an "uncaught error" which is down to a Facebook js file in the modal window before I press "cancel" on it. Do you have js errors in the modal window too?
Comment #2
tommy kaneko commentedI can confirm again that it was the Facebook js file, "all.js" that was messing with the js in Panels. I had to disable the FB modules and make my changes in Panels.
Comment #3
edgarpe commentedYes, I can confirm that facebook's javascript causes the problem. I'm using a firefox extension named "blocksite". The problem disappears If I block all facebook domains with it. It simply means the JS files are not loaded by the browser.
Though, I don't know if this is a panels bug, a drupal for facebook bug, or something else.
Comment #4
edgarpe commentedOh, and yes, I had JS errors in console when I opend the modal and made changes in it.
Comment #5
edgarpe commentedIt looks like Drupal for Facebook was causing it. This patch solves it:
http://drupal.org/node/1791986#comment-6519754
The patch is included in fb-7.x-3.3-beta4
Comment #6
gmclelland commentedClosing based on the feedback from #5
Comment #7
WMarkus commentedToday after an upate run I have this behaviour, too.
Comment #8
SlayJay commentedexperiencing the same issue. NOT using facebook.js
Using very minimal setup:
Nginx
Organic Groups
Entity API
Views
Ctools
Display Suite
Views
Comment #9
SlayJay commentedComment #10
gmclelland commentedIf you use the wysiwyg module, make sure you use the latest 2.x-dev. I think I had similar problems and upgrading that module fixed it.
Comment #11
SlayJay commentedI was able to track this down to an issue with the D7 twig theme engine, sorry for the confusion.
Comment #12
Zombocom123 commentedHi, i'm experiencing a similar issue. I am editing an already existing site and If i click on certain links (i suppose those that generate modals) Instead i see some JSON output. On the console i have this error:
Error: Syntax error, unrecognized expression: <div id="ctools-modal"> <div class="ctools-modal-content"> <div class="modal-header"> <a class="close" href="#">Close Window<img typeof="foaf:Image" src="http://localhost/sites/all/modules/ctools/images/icon-close-window.png" alt="Close Window" title="Close Window" /> </a> <span id="modal-title" class="modal-title"> </span> </div> <div id="modal-content" class="modal-content"> </div> </div> </div>I am using Drupal 7.22, Jquery 1.9.1, Panels 7.x-3.4 and Chaos Tools 7.x-1.4. There's a lot more modules installed, If needed i'll provide a list
EDIT: I have solved by switching to Jquery 1.7 on administrative pages only through Jquery update
Comment #13
vladimir-m commentedHi @valepu,
In ctools modal template I do something like this:
html = $('<div></div>').append(html);It's ugly but works :)
Cheers!
Comment #14
dstorozhukThanks, @valepu. You save my time!
Comment #15
BOGUƎ commentedYeah, in a dire for a solution on this one too here, it's been happening for a while on a various projects. Definitely feels like a jQuery-related issue: switching back to v1.7 from v1.9 allows to use Panels.