Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I enable display suite (within a clean sparks distribution), I get the following error:
Notice: Undefined index: items in panels_flexible_panels() (line 257 of ../profiles/spark/modules/contrib/panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 257 of ../profiles/spark/modules/contrib/panels/plugins/layouts/flexible/flexible.inc).
I am not sure where to place this issue but disabling Layout does remove the warnings.
might this relate in some way to the (solved) panels problem described in this issue?:
http://drupal.org/node/1106302
Comment | File | Size | Author |
---|---|---|---|
#6 | ds-2.10-support_responsive_panels_of_layout-6.patch | 2.15 KB | greenSkin |
#4 | layout-1.0-compatibility_with_display_suite.patch | 596 bytes | breeze_man |
Comments
Comment #1
autopoietic CreditAttribution: autopoietic commentedFurther testing:
Comment #2
Gábor HojtsyThis sounds strange, because we don't use the flexible layout plugin from panels.
Comment #3
hexabinaerThanks for this hint, I've been searching for hours now.
Tested this way (using simplytest.me - great helper!)
1. installed spark + display suite
2. logfile: looks fine
3. enabled display suite
4. logile: 4 notices, 4 warnings
Notice: Undefined index: items in panels_flexible_panels() (line 257 of /home/seb915089fa41c33/www/profiles/spark/modules/contrib/panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 257 of /home/seb915089fa41c33/www/profiles/spark/modules/contrib/panels/plugins/layouts/flexible/flexible.inc).
Maybe this issue should rather be placed in spark's issue queue?
Comment #4
breeze_man CreditAttribution: breeze_man commentedApply the two patches to make layout module compatible with display suite.
layout-1.0-compatibility_with_display_suite.patch is for layout module, ds-2.6-support_responsive_panels_of_layout.patch is for ds module.
Comment #5
AlfTheCat CreditAttribution: AlfTheCat commentedThank you, patches of #4 fixed the errors for me.
Comment #6
greenSkin CreditAttribution: greenSkin commentedHere's an updated patch for Display Suite against version 2.10.
This patch also reorders the $content array so regions render in the proper order. Previously, if a region's key matched the field name (e.g., "body" field), it's content would not necessarily render in the proper order within the responsive layout. I'm not sure this is the best place or best way of doing this, but it works.
What are the best steps to get both of these patches absorbed into their respective modules? I would presume an issue should be opened under Display Suite with it's patch.
Comment #7
Manuel P.V. CreditAttribution: Manuel P.V. commentedHi! Thanks for the patchs! but don't work in my installation. Also the errors are a little different:
The errors refer to this code snippet:
Suggestions?
Comment #8
piusmnwilson CreditAttribution: piusmnwilson as a volunteer commentedI uninstalled my layouts module and the problem vanished....Well am a bit new to drupal, been doing simple edits for the company i work for but recently i decided to start working on my own web projects thus as of now i am working with the Andromeda them....any further help would come highly appreciated...thanks
Comment #9
dedicated_hobby_coder CreditAttribution: dedicated_hobby_coder commentedHave a look here, solved my issues
https://www.drupal.org/node/1106302#comment-11229873