I'm using the latest devs of ctools, panels, and panelizer 3.x-dev. When I try to use IPE to change a layout on a panelized node I get the following types of error messages when I try this on different pages. Here is what some of them look like:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /panels/ajax/ipe/set_layout/panelizer%3Anode%3A192%3Apage_manager/elmer
StatusText: OK
ResponseText: Notice: Undefined property: panels_display::$skip_cache in ajax_set_layout() (line 361 of /Users/glenn/websites/7c9d097f-0bc1-457d-8314-1d9e37f102bf/profiles/cmf/modules/contrib/panels/panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php).

or

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /panels/ajax/ipe/set_layout/panelizer%3Anode%3A213%3Apage_manager/elmer_flipped
StatusText: OK
ResponseText: 
Notice:  Undefined property: panels_display::$skip_cache in /Users/glenn/websites/7c9d097f-0bc1-457d-8314-1d9e37f102bf/profiles/cmf/modules/contrib/panels/panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php on line 361
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"cmfzen","theme_token":"wleRgR8qxpnTUoPbDCuh9YNx69C1fpxqH1UPx5u9lqo"},"CToolsModal":{"loadingText":"Loading...","closeText":"Close Window","closeImage":"\u003Cimg typeof=\u0022foaf:Image\u0022 src=\u0022http:\/\/mansfield:8082\/profiles\/cmf\/modules\/contrib\/ctools\/images\/icon-close-window.png\u0022 alt=\u0022Close window\u0022 title=\u0022Close window\u0022 \/\u003E","throbber":"\u003Cimg typeof=\u0022foaf:Image\u0022 src=\u0022http:\/\/mansfield:8082\/profiles\/cmf\/modules\/contrib\/ctools\/images\/throbber.gif\u0022 alt=\u0022Loading\u0022 title=\u0022Loading...\u0022 \/\u003E"},"PanelsIPECacheKeys":["panelizer-node-213-page-manager"]},"merge":true},{"command":"insert","method":"replaceWith","selector":"#panels-ipe-display-panelizer-node-213-page-manager","data":"\u003Cdiv id=\u0027panels-ipe-display-panelizer-node-213-page-manager\u0027 class=\u0027panels-ipe-display-container\u0027\u003E\u003Clink type=\u0022text\/css\u0022 rel=\u0022stylesheet\u0022...\u003Cdiv class=\u0022panels-ipe-placeholder panels-ipe-on panels-ipe-portlet-marker panels-ipe-portlet-static\u0022\u003E\u003Cdiv class=\u0022panels-ipe-placeholder-content\u0022\u003E\u003Ch3\u003EBottom\u003C\/h3\u003E\u003C\/div\u003E\u003Cdiv class=\u0022panels-ipe-newblock panels-ipe-on\u0022\u003E\u003Cul class=\u0022panels-ipe-linkbar inline\u0022\u003E\u003Cli class=\u0022style first\u0022\u003E\u003Ca href=\u0022\/panels\/ajax\/ipe\/style-type\/panelizer%3Anode%3A213%3Apage_manager\/region\/bottom\u0022 class=\u0022ctools-use-modal panels-ipe-hide-bar style\u0022 title=\u0022Region style\u0022\u003E\u003Cspan\u003ERegion style\u003C\/span\u003E\u003C\/a\u003E\u003C\/li\u003E\n\u003Cli class=\u0022add-pane last\u0022\u003E\u003Ca href=\u0022\/panels\/ajax\/ipe\/select-content\/panelizer%3Anode%3A213%3Apage_manager\/bottom\u0022 class=\u0022ctools-use-modal add panels-ipe-hide-bar\u0022 title=\u0022Add new pane\u0022\u003E\u003Cspan\u003EAdd new pane\u003C\/span\u003E\u003C\/a\u003E\u003C\/li\u003E\n\u003C\/ul\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/div\u003E                    \u003C\/div\u003E\n                                  \u003C\/div\u003E\u003C!-- \/.elmer_flipped --\u003E\n            \u003C\/div\u003E\u003C!-- \/#content --\u003E\n        \u003C\/div\u003E\u003C!--\/.l-shell--\u003E\n    \u003C\/div\u003E\u003C!--\/.l-limiter--\u003E\n\u003C\/div\u003E\u003C!--\/.l-root-main--\u003E\n\u003C\/div\u003E","settings":null},{"command":"modal_dismiss"}]

This happens when I click the save button inside of Change Layout modal popup. If I refresh the page then I can see that layout did in fact change. This happens on panelized nodes and regular Panel pages that have IPE enabled. Note: I can change the layout without an errors with the standard panels editor.

Any ideas on what could be causing this?

Let me know if you need any more information.

Comments

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new771 bytes

A notice error is causing the JSON output to be garbled and fail because your site is set to display errors directly. You should probably disable that setting, since it can cause other problems for you. I believe that's a setting in your php.ini.

The attached patch should fix it.

gmclelland’s picture

Thank you, it did get rid of the ajax error.

This might be another separate issue, but what is strange is that after choosing a different layout, the preview in the modal dialog shows the new layout but the panes aren't draggable. I thought it shows you a preview where you could drag the panes into different columns before hitting save in the dialog?

Thanks again for the quick response.

gmclelland’s picture

Project: Panelizer (obsolete) » Panels
Status: Needs review » Reviewed & tested by the community

Since this patch is against the Panels module I'm going to change this issue to the proper queue.

merlinofchaos’s picture

You might have something crashing javascript. Check your javascript console.

gmclelland’s picture

StatusFileSize
new70.13 KB

No errors are appearing in the console. I attached a screenshot of the modal dialog's contents.

merlinofchaos’s picture

Well, Javascript is *definitely* not firing. Maybe it's theme related? Can you try that in a stock theme?

gmclelland’s picture

Yep, it's theme related. It works fine in Bartik. If I had to guess, I'd say it's almost like it's not loading the additional needed javascript.

Well I'll keep looking into it my theme. Thank you for your help.

gmclelland’s picture

Figured it out. It was some code in my template.php that was doing js_alter to move the scripts to the bottom of the page.

The patch in #1 is good to go.

gmclelland’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

liza’s picture

popping in to say that i had that patch applied and i was still having this problem --and it was EVERYWHERE within panels and panopoly. i finally have narrowed it down to having the DEVEL krumo backtrace error handler on while working with with IPE.