Whenever I try to use a custom layout, it throws up errors when switching to the custom layout, then it throws up more errors when trying to add content to the custom layout. The add content page is blank below the "Title" field, so there is no way to add content.

Steps to reproduce:

  1. Go to: Structure > Panels > Create New... > Custom Layout > Add Flexible Layout
  2. Give the layout a name, but leave everything else as default
  3. Go to: Structure > Panels, and edit an existing panel page
  4. Try to change the layout of the panel page to the custom one that was just created. This causes the following error messages:

    Notice: Undefined index: items in panels_flexible_panels() (line 255 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 255 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).

  5. Click update and save.
  6. Try to add content to the layout, which produces the following error messages:

    Notice: Undefined index: items in panels_flexible_panels() (line 255 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 255 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Notice: Undefined index: items in panels_flexible_render_css() (line 729 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Warning: Invalid argument supplied for foreach() in panels_flexible_get_css_group() (line 810 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Notice: Undefined index: items in panels_flexible_get_css_group() (line 910 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Warning: Invalid argument supplied for foreach() in panels_flexible_get_css_group() (line 921 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Notice: Undefined index: items in theme_panels_flexible() (line 389 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).
    Warning: Invalid argument supplied for foreach() in panels_flexible_render_items() (line 457 of /Users/tom/Sites/drupaltd/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bradspry’s picture

Version: 7.x-3.x-dev » 6.x-3.9
Component: Drag and Drop display editing » Plugins - layouts

I'm seeing practically the same thing using 6.x-3.9.

Make a new custom layout, leave all the defaults, save.
Create new panel page, choose the new custom layout, foreach() errors appear.

* warning: Invalid argument supplied for foreach() in /sites/all/modules/panels/plugins/layouts/flexible/flexible.inc on line 256.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/panels/plugins/layouts/flexible/flexible.inc on line 798.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/panels/plugins/layouts/flexible/flexible.inc on line 909.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/panels/plugins/layouts/flexible/flexible.inc on line 444.

I believe the issue is in the defaults. When you change the defaults, say add a region and save, no errors.

drupov’s picture

subscribe

FreeFox’s picture

Version: 6.x-3.9 » 7.x-3.x-dev
Component: Plugins - layouts » Code

I seem to have the same problem with the latest 7-dev release too:

Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 255 of /.../all/modules/panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_get_css_group() (line 810 of /.../all/modules/panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_get_css_group() (line 921 of /.../all/modules/panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_render_items() (line 457 of /.../all/modules/panels/plugins/layouts/flexible/flexible.inc).
Notice: Undefined index: items in panels_flexible_panels() (line 255 of /.../all/modules/panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 255 of /.../all/modules/panels/plugins/layouts/flexible/flexible.inc).

Please help

merlinofchaos’s picture

Status: Active » Needs review
FileSize
488 bytes

This patch should fix the issue.

merlinofchaos’s picture

Priority: Major » Normal

Not really major. It has an easy workaround: Change the settings on your new flexible layout. :)

FreeFox’s picture

Thanks alot merlin, indeed, creating a new layout, saving, open again, change something and save again works :)

Thanks
FreeFox

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to D6 and D7.

FreeFox’s picture

Status: Fixed » Reviewed & tested by the community

Merlin, just tested the patch and all issues are gone, works like a charm now ^^

Greetz
Freefox

FreeFox’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

somatics’s picture

Status: Closed (fixed) » Active

Hi,

I have this exact symptom, except the solution in this post did not work.

I installed the latest Dev version of the module, which appears to be the one that includes Merlin's fix from Sept 20. I checked line 258 of the file and it contains the newer code.

However, I am still continuing to get the same error messages any time any flexible layout panel is accessed.

I don't know if I'm following the instructions correctly: I made changes to panel content settings (e.g., a CSS tag and a style setting on several panes), and saved.

I went to basic settings and changed the title and url, and saved. I went to Layout Designer and saved settings.

Is there any other news or insight on this issue?

somatics’s picture

I am *still* getting this error -- it floods my error logs 24/7. Can someone please tell me what do?

I am running Drupal 7.9 and the latest dev of Ctools and Panels. I have opened the offending layout and made a change in the layout designer and saved it. Still get the error message. I don't know if I'm just not understanding what you guys are saying to do to fix it, but I would really appreciate it if you could help.

Thank in advance!

Letharion’s picture

Assigned: Unassigned » merlinofchaos

@merlin Looks like the issue could use your attention.

Letharion’s picture

Title: Custom layouts don't work » Flexible layouts don't work cause php errors.

Clarifying that it's flexible layouts, not a custom.

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

#11 posted getting "the error" but there's a wide variety of errors reported above and #11 isn't the author of any of them. Please specify exactly what error you are receiving.

somatics’s picture

Sorry, @merlinofchaos, for not specifying; here goes: I'm getting the following error when I display a panel page that uses a flexible layout:

Notice: Undefined index: type in panels_flexible_panels() (line 258 of /path-from-server-root-to-drupal-folder/drupal-folder/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).

Letharion’s picture

Assigned: merlinofchaos » Unassigned
somatics’s picture

Status: Postponed (maintainer needs more info) » Active

Does this being transferred away from merlinofchaos to anonymous mean the issue is not going to be addressed?

I provided the info he requested, but I didn't change the status from "postponed (maintainer needs more info)" to "active" until now.

merlinofchaos’s picture

Hm. That error isn't the same as on that was gotten previously; I say this just to emphasize that when posting about bugs, being precise matters a lot. We are unable to guess at what you're seeing.

It's probably a different error. It indicates that the layout contains a section with no 'type' which I've never encountered before.

Can you export your panel with the layout (or layout if this is a reusable layout, it's not clear) so that I can see the definition?

somatics’s picture

I completely agree with you about being precise; I do try to do that, including here, but it appears I overlooked that mine said "type" where the initiating post said "item", or perhaps when I posted I didn't understand this as a defining difference.

Anyway, here's the entire panel page export data:


$page = new stdClass;
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
$page->api_version = 1;
$page->name = 'front_welcome';
$page->task = 'page';
$page->admin_title = 'Front Page';
$page->admin_description = 'Front Page, displaying 4 main section buttons, news, etc.';
$page->path = 'frontpanel';
$page->access = array();
$page->menu = array();
$page->arguments = array();
$page->conf = array(
  'admin_paths' => FALSE,
);
$page->default_handlers = array();
$handler = new stdClass;
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'page_front_welcome_panel_context';
$handler->task = 'page';
$handler->subtask = 'front_welcome';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
  'title' => 'Panel',
  'no_blocks' => FALSE,
  'css_id' => '',
  'css' => '',
  'contexts' => array(),
  'relationships' => array(),
);
$display = new panels_display;
$display->layout = 'flexible';
$display->layout_settings = array(
  'items' => array(
    'canvas' => array(
      'type' => 'row',
      'contains' => 'column',
      'children' => array(
        0 => 26,
      ),
      'parent' => NULL,
    ),
    'column1_' => array(
      'type' => 'region',
      'title' => 'Column1',
      'width' => 119,
      'width_type' => 'px',
      'parent' => '2',
    ),
    'topleft' => array(
      'type' => 'region',
      'title' => 'TopLeft',
      'width' => 59.5,
      'width_type' => 'px',
      'parent' => '2',
    ),
    'topright' => array(
      'type' => 'region',
      'title' => 'TopRight',
      'width' => 59.5,
      'width_type' => 'px',
      'parent' => '2',
    ),
    15 => array(
      'width' => '5.05050505050505',
    ),
    'social_column' => array(
      'width' => '33',
    ),
    26 => array(
      'type' => 'column',
      'width' => 94.949494949494,
      'width_type' => '%',
      'parent' => 'canvas',
      'children' => array(
        0 => 41,
        1 => 47,
        2 => 48,
      ),
    ),
    41 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'welcomeregion_',
      ),
      'parent' => '26',
    ),
    'welcomeregion_' => array(
      'type' => 'region',
      'title' => 'WelcomeRegion',
      'width' => 100,
      'width_type' => '%',
      'parent' => '41',
    ),
    47 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'top_right',
        1 => 'top_right_',
      ),
      'parent' => '26',
      'class' => '',
    ),
    'top_right' => array(
      'type' => 'region',
      'title' => 'Top Left',
      'width' => '50',
      'width_type' => '%',
      'parent' => '47',
      'class' => '',
    ),
    'top_right_' => array(
      'type' => 'region',
      'title' => 'Top Right',
      'width' => '50',
      'width_type' => '%',
      'parent' => '47',
      'class' => '',
    ),
    48 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'bottom_left',
        1 => 'bottom_right',
      ),
      'parent' => '26',
      'class' => '',
    ),
    'bottom_left' => array(
      'type' => 'region',
      'title' => 'Bottom Left',
      'width' => 50,
      'width_type' => '%',
      'parent' => '48',
      'class' => '',
    ),
    'bottom_right' => array(
      'type' => 'region',
      'title' => 'Bottom Right',
      'width' => 50,
      'width_type' => '%',
      'parent' => '48',
      'class' => '',
    ),
  ),
);
$display->panel_settings = array(
  'style' => 'default',
  'style_settings' => array(
    'default' => NULL,
    'column1_' => NULL,
    'topleft' => NULL,
    'topright' => NULL,
    'newsbox' => NULL,
    'topleft___' => NULL,
    'topright___' => NULL,
    'bottomleft__' => NULL,
    'bottomright' => NULL,
    'leftfoot' => NULL,
    'footright_' => NULL,
    'welcomeregion_' => NULL,
    'social_sidebar' => NULL,
    'page_footer' => NULL,
    'social_left' => NULL,
    'social_middle' => NULL,
    'social_right' => NULL,
    'top_right_corner' => NULL,
    'top_left_corner' => NULL,
    'top_right_corner_' => NULL,
    'top_left_corner_' => NULL,
    'top_right' => NULL,
    'top_right_' => NULL,
    'bottom_left' => NULL,
    'bottom_right' => NULL,
  ),
);
$display->cache = array();
$display->title = '';
$display->content = array();
$display->panels = array();
  $pane = new stdClass;
  $pane->pid = 'new-1';
  $pane->panel = 'bottom_left';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => 'Shopping Button Box',
    'title' => '',
    'body' => '<h2 class="title"><a href="/shop">Shopping</a></h2> 
<p class="description"><a href="/shop">Our Personal and Professional sections feature select relevant products, but to dive even deeper and choose from all of our products, enter the entire Somatics Shop.</a></p>',
    'format' => '3',
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array(
    'css_id' => 'hello-shop',
    'css_class' => '',
  );
  $pane->extras = array();
  $pane->position = 0;
  $pane->locks = '';
  $display->content['new-1'] = $pane;
  $display->panels['bottom_left'][0] = 'new-1';
  $pane = new stdClass;
  $pane->pid = 'new-2';
  $pane->panel = 'bottom_right';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => 'Community Button Box',
    'title' => '',
    'body' => '<h2 class="title"><a href="/community">Community</a></h2> 
<p class="description"><a href="/training">Meet & talk to others about somatics &mdash; both profesionals and newbies, read forums and articles, get support, and more.</a></p>',
    'format' => '3',
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array(
    'css_id' => 'hello-community',
    'css_class' => '',
  );
  $pane->extras = array();
  $pane->position = 0;
  $pane->locks = '';
  $display->content['new-2'] = $pane;
  $display->panels['bottom_right'][0] = 'new-2';
  $pane = new stdClass;
  $pane->pid = 'new-3';
  $pane->panel = 'top_right';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => 'Personal Button Box',
    'title' => '',
    'body' => '<h2 class="title"><a href="/about">About Somatics</a></h2> 
<p class="description"><a href="/about">If you are a client or customer of Somatics or want to be be one, or you just want to learn more about somatics, enter here.</a></p>',
    'format' => '3',
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'style' => 'default',
    'settings' => NULL,
  );
  $pane->css = array(
    'css_id' => 'hello-personal',
    'css_class' => 'top-left',
  );
  $pane->extras = array();
  $pane->position = 0;
  $pane->locks = '';
  $display->content['new-3'] = $pane;
  $display->panels['top_right'][0] = 'new-3';
  $pane = new stdClass;
  $pane->pid = 'new-4';
  $pane->panel = 'top_right_';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => 'Professional Button Box',
    'title' => '',
    'body' => '<h2 class="title"><a href="/training">Professional Training</a></h2> 
<p class="description"><a href="/training">Professionals &amp; aspiring professionals in the Somatics fields, enter here to learn about training programs &amp; resources.</a></p>',
    'format' => '3',
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'style' => 'default',
    'settings' => NULL,
  );
  $pane->css = array(
    'css_id' => 'hello-professional',
    'css_class' => '',
  );
  $pane->extras = array();
  $pane->position = 0;
  $pane->locks = '';
  $display->content['new-4'] = $pane;
  $display->panels['top_right_'][0] = 'new-4';
  $pane = new stdClass;
  $pane->pid = 'new-5';
  $pane->panel = 'welcomeregion_';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'body' => '<img src="/sites/default/files/frontimage.png" alt="front page picture" title="Somatics makes life fun!" id="front-image"  />',
    'format' => '3',
    'admin_title' => 'Site Logo Large (new panel)',
    'title' => '<none>',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $pane->locks = '';
  $display->content['new-5'] = $pane;
  $display->panels['welcomeregion_'][0] = 'new-5';
  $pane = new stdClass;
  $pane->pid = 'new-6';
  $pane->panel = 'welcomeregion_';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => 'Welcome Intro Custom Content',
    'title' => '',
    'body' => '<div id="hello-welcome"><p>Somatics is the solution for you for all of your movement needs.  It is gentle easy exercises you can do at home in 5 minutes a day, and hands-on movement education that can rapidly and permanently relieve pain, repair injuries, and improve athletic performance, even if you struggled for years.  <a href="/about/introduction">Read more</a>, <a href="/healthforum">watch a short introductory video</a>, or start exploring with the links below...</p>
<p><strong><em>What can Somatics do for you?</em></strong>  <a href="/about/conditions" title="A few examples of the problems Somatics can help you with?">Click here for just a few examples.</a></p>
<p><span class="attention">Or visit any or all of the four main departments of our website, featured below, to learn more about the aspects of Somatics that interest you...</span></p>',
    'format' => '3',
    'substitute' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 1;
  $pane->locks = '';
  $display->content['new-6'] = $pane;
  $display->panels['welcomeregion_'][1] = 'new-6';
$display->hide_title = PANELS_TITLE_NONE;
$display->title_pane = '0';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;

FYI in case this is meaningful -- this page was not upgraded from from D6 to D7; after we upgraded the whole site from D6 to D7, we actually created this page anew in D7.

merlinofchaos’s picture

Interesting! THis layout is borked a little:

    15 => array(
      'width' => '5.05050505050505',
    ),
    'social_column' => array(
      'width' => '33',
    ),

So, those are incomplete entries in the list of items in the layout.

They shouldn't exist. Other than the type message, they're probably harmless. You can remove this by exporting the handler, removing those lines, and re-importing the handler. Should work pretty easily. You'll possibly have to delete the layout first, so backup your database just in case something goes wrong.

The real question is, how did they get there? Do you happen to remember if something funky happened when adding/editing/removing an item named "social column"?

somatics’s picture

Thanks! I exported the panel code, deleted it, and imported it back. I don't know for sure or not, but it appears the error may be gone for that page! :)

That's the good news. The bad news is that I am still getting the same error on another panel page:

Notice: Undefined index: type in panels_flexible_panels() (line 258 of /path-from-server-root-to-drupal-folder/drupal-folder/sites/all/modules/panels/plugins/layouts/flexible/flexible.inc).

How would I determine what is bad code in that panel, to know what to delete from it like you advised on the other panel page?

somatics’s picture

You asked if something funky happened with the panel. To that end of trying to determine if there's a larger bug, unfortunately, I don't have much: I don't recall there being anything odd that happened when creating the first panel page.

I can tell you it was created new in Drupal 7, after upgrading the whole site from Drupal 6. It was around August 2011, and I was using the latest dev versions of things like Ctools, Panels, & Views.

Regarding the other page I just told you about that is also reporting the same error as the first one was -- that page was one that already existed in the Drupal 6 before upgrade.

somatics’s picture

One more item, which may necessitate a new issue post; however, in case it bears on troubleshooting or solving this thread, in the interest of insight as well as not clogging up the forums with fragments of issues, I'm going to start by reporting it here:

After fixing the code as per your instructions on the first panel I discussed, that first panel is instead now frequently showing the following error:

Notice: Undefined index: pipeline in panels_panel_context_render() (line 284 of /path-from-server-root-to-drupal-folder/drupal-folder/sites/all/modules/panels/plugins/task_handlers/panel_context.inc).

Is this related? And how do I get rid of this one?

merlinofchaos’s picture

Hmm. That missing pipeline is very odd. You can probably fix it by going to the general settings tab, submitting that form and then saving.

The giveaway on what's wrong is that those bits of the array are missing a 'type' keyword. If you look at all of the others, they're each describing a part of the layout. Either a row, column, region or the canvas. Anything without a 'type' is something that was somehow erroneously put in there.

Mario Baron’s picture

I've been getting the same errors so I tried different things. First was to go to panels>>settings and uncheck flexible layout from allowed layouts list. That did not work and it was kind of weird that it wouldn't since I already disabled flexible layout so I dug deeper...
I then disabled display suite module and bingo errors disappeared. Funny thing is that I wasn't using flexible layout at all, with display suite or elsewhere. I was using responsive layout for panel responsive layouts module.

I have the latest dev version of panels which contains the patch from #4 and latest dev version of layout module installed and display suite 2.4, after update to 2.6 errors persist.

This seems to be related to https://drupal.org/node/1732914 but looks like that thread has been dead for the past year

Mario Baron’s picture

After some more digging I found code within ds relating to flexible layout in /ds/includes/ds.registry.inc on line 508

 // Support for panels.
  if (module_exists('panels')) {
    ctools_include('plugins', 'panels');
    $panel_layouts = panels_get_layouts();
    foreach ($panel_layouts as $key => $layout) {
      // The easy ones.
      if (isset($layout['regions'])) {
        $layouts['panels-' . $key] = array(
          'label' => $layout['title'],
          'path' => $layout['path'],
          'module' => 'panels',
          // We need the Panels plugin info array to correctly include the
          // layout and its CSS files later on.
          'panels' => $layout,
          'flexible' => FALSE,
          'regions' => $layout['regions'],
        );
        if (!empty($layout['css'])) {
          $layouts['panels-' . $key]['css'] = TRUE;
        }
      }
      // Flexible panel layouts, ignore the default flexible.
      else {
        if ($layout['name'] != 'flexible') {
          $regions = panels_flexible_panels(array(), array(), $layout);
          $layouts['panels-' . $key] = array(
            'label' => $layout['title'],
            'path' => $layout['path'],
            'module' => 'panels',
            'panels' => $layout,
            'flexible' => TRUE,
            'regions' => $regions,
          );
        }
      }
    }
  }

perhaps this is something merlin could look at as my guess is there is some kind of a communication error with DS here

freality’s picture

I just ran into this issue on a new project. After digging into flexible.inc, I noticed panels_flexible_convert_settings exits early without testing if $settings['items'] is set. So else if (!isset($settings['items'])) at line 136 can never be reached.

This patch simply tests isset($settings['items']) before exiting early.

This patch is built against the 7.x-3.x branch.

meba’s picture

Confirmed patch fixes the issue

Mario Baron’s picture

Confirming patch in #28 fixed the issue for me

  • Commit 6013bd1 on 7.x-3.x, pipelines, 7.x-3.x-i18n, 8.x-3.x by merlinofchaos:
    Issue #1106302: Saved Flexible layouts break if using only defaults.
    
    
Håvard’s picture

After applying patch in #28 i receive following error message:

Notice: Undefined index: rows i panels_flexible_convert_settings() (line 207 av /.../modules/panels/plugins/layouts/flexible/flexible.inc).

criscom’s picture

I can confirm #32. Same error after applying patch #28.

Alauddin’s picture

install of DS 7.x-27 gave me the following errors

Notice: Undefined index: items in panels_flexible_panels() (line 257 of /panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 257 of /panels/plugins/layouts/flexible/flexible.inc).
Notice: Undefined index: items in panels_flexible_panels() (line 257 of /panels/plugins/layouts/flexible/flexible.inc).
Warning: Invalid argument supplied for foreach() in panels_flexible_panels() (line 257 of /panels/plugins/layouts/flexible/flexible.inc).

confirming patch in #28 worked on 7.x-3.4 (not the dev) version.

***sorry jumped the gun too soon, errors persist*******

WebWalker3D’s picture

Confirming #32, same error after applying patch in #28. Any insight?

AlfTheCat’s picture

Please have a look at #4 of this issue: #1732914: DS + Flexible Panels

In my case I was using the layout module, the two patches (even for a later version) to DS and Layout fixed my errors.

Yuri’s picture

patch #28 applied, but not working on dev. I don't use DS

Yuri’s picture

Priority: Normal » Major
drupwash’s picture

Small fix included in patch for 7.x because I'm having same issue.

drupwash’s picture

drupwash’s picture

AaronA’s picture

I'm also having this issue, but drupwash's patch fixed it, after I fixed the patch. Rerolled patch against 7.x-3.x branch.

  • merlinofchaos committed 6013bd1 on 8.x-4.x
    Issue #1106302: Saved Flexible layouts break if using only defaults.
    
    
Koen.Pasman’s picture

Rerolled patch against 7.x-3.x branch.