Step-by-step process:

1. About 3 months ago, I installed Display Suite, Panels and CTools on my Drupal installtion. I created a custom layout in Panels (flexible layout with multpiple regions) and used this to display the fields of a content type (Layout for main page -> Panels -> Custom layout). This content type is a 'profile type' generated by the Profile2 module.
Everything worked fine thanks to display suite.

2. Yesterday, I updated my drupal installation. Drupal core 7.8 to 7.12, an update for panels and an update for Display Suite to the latest version. I ran the database update script.

3. Problem 1: Not all fields are displayed in the regions from my custom layout. Only the region called 'Center' will show the field wich were added. The other regions stay blank, although they have content assigned to it.

4. Working fine: The standard Panel layouts like 'three column 25/50/25 stacked' works fine.

5. I have an error message saying: "Notice: Undefined index: panels in ds_entity_variables() (line 817 from .../sites/all/modules/ds/ds.module)."

Additional info:
- I use the Field UI, not the Panels editor for the control of the displays.
- Everything is properly installed

What is your advice?

Thank you.

Comments

tim.plunkett’s picture

Version: 7.x-1.4 » 7.x-2.x-dev

This seems to be broken for all panels layouts from "manage display".

From http://drupalcode.org/project/ds.git/blob/refs/heads/7.x-2.x:/ds.module#...

// In case this is a panels layout, add the variable to the $content variable.
if (isset($layout['module']) && $layout['module'] == 'panels') {
  $vars['content'][$region_name] = $vars[$region_name];
  unset($vars[$region_name]);
}

This is where the notices come from, nothing is assigned to $vars[$region_name].

gooddesignusa’s picture

I'm also running into this issue. I came across this issue when I was just messing around with the new DS.
I think I found another issue that is related to this issue. If you goto the manage display tab. Change the layout to any setting under display suite. Save. Than change it to a panel layout and hit save. It brings you to a new page that reads 'No valid configuration found.'
If you go back to the manage display page and change it to None. Save. Than change it to panel display it triggers the errors reported above.

gooddesignusa’s picture

I found out if you enable "Use the Panels editor on the 'Manage Display' screen" under the extra settings @ /admin/structure/ds/list/extras it seems to work without throwing errors.

swentel’s picture

Status: Active » Closed (won't fix)

Panel view modes support is discontinued and the code will be gone in the 7.x-2.x of Display Suite. From now on you can use the 7.x-3.x branch of Panelizer now that #1361530: Allow default Panel/layout per view mode is committed.