Closed (fixed)
Project:
Panels
Version:
6.x-2.0-alpha3
Component:
Panel pages
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2009 at 18:41 UTC
Updated:
8 Sep 2009 at 16:34 UTC
Exporting a simple layout and trying to re-import it results in the following error
warning: Invalid argument supplied for foreach() in ****/sites/all/modules/panels/includes/plugins.inc on line 612.
The panel page that has been created has no content or layout settings.
This may well be something being worked on but I thought I should point it out just in case.
Thanks
Gregg
Comments
Comment #1
wlx20005 commentedHi I get the same question. and insert 3 Lines code in \sites\all\modules\panels\panels_page\panels_page.write.inc, It works!
Comment #2
smithn.nc commentedJust tested this out, it worked beautifully, and beats rebuilding a complex panel page from scratch every time. Thanks!
Comment #3
jruberto commentedTested this as well, works great. Thank you!
If you can, kindly roll this into a patch so that it hits the next release. Thanks again!
Comment #4
smithn.nc commentedIt appears I spoke a little too soon. If you've got a panel that has several displays (I'm using one per taxonomy argument to the panel), you can't export this panel page and import it correctly. None of the displays hold their data correctly if you do.
Comment #5
scottrigby@wlx20005: thanks -- #1 works for me
@smithn.nc: Do you mean several views displays? I imported a panel with multiple views displays after this adjustment, and all works for me. but maybe that's not what you mean?
Comment #6
smithn.nc commented@scottrigby: I am referring to Panels with additional displays for each argument coming in. For instance, I created a Panel that has two arguments, and has a different content display depending on the number of augments it receives.
When I export and then import that Panel, the newly imported Panel page does not reliably save changes. Sometimes it will remember things I change in the display, other times I can save the content display, come back and everything will be like it was when I imported, or sometimes missing altogether. It doesn't have anything to do with using more than one view in a display. Thanks.
Comment #7
merlinofchaos commentedNo longer relevant.