Hi guys I am having this error when working with Display suite

any time that I choose a layout to display my nodes

Notice: Undefined index: ds_layouts in _ds_field_ui_table_layouts_preview() (line 1940 of C:\wamp\www\gameswapuk\sites\all\modules\ds\includes\ds.field_ui.inc).

this is the log message

Type php

Date Saturday, August 1, 2015 - 18:05

Location http://localhost/gameswapuk/system/ajax

Referrer http://localhost/gameswapuk/admin/structure/types/manage/ps4-games/displ...

Message Notice: Undefined index: ds_layouts in _ds_field_ui_table_layouts_preview() (line 1940 of C:\wamp\www\gameswapuk\sites\all\modules\ds\includes\ds.field_ui.inc).

Severity notice

this error is only when working and doing some changes with display suite module, is on line 1940 and 1939

is this going to cause me problems in the future, please keep in mind that i am new to Drupal and PHP, can this be fixed?, thanks

Comments

nevets’s picture

What version of PHP is your site using?

raydelhgm’s picture

Hi Nevest my PHP is 5.3.13

this is how line 1939 and 1940 look like

}

if (isset($form_state['values']) && $disable_css !== $form_state['values']['additional_settings']['ds_layouts']['preview']['info']['settings']['disable_css']) {
$disable_css = $form_state['values']['additional_settings']['ds_layouts']['preview']['info']['settings']['disable_css'];
}

I dont know where is the undefined index there, could you point where and how to fix it, thanks

Jaypan’s picture

https://www.drupal.org/node/644164

You can move the thread by editing the original post and choosing 'Post Installation' as the forum.

Thank you.

chy_nc’s picture

I am having the exact same problem and it seemed to happen after an update I believe but of which module/s I am not sure.

I have tried disabling the module/s and clearing the DB tables that all started with "ds_" but when I start rebuilding my displays I get the error again.

I assumed it was a corrupt DB setting as I am running multi-site using seperate databases. My two sites share all the Drupal modules. The first site I built is working fine.

The second site is using the same set of modules but I keep getting the Undefined Index error.

Any solution?

It seems like maybe I may have missed a table when starting over.

These are the tables I cleared:

ds_fields
ds_field_settings
ds_layout_settings
ds_vd
ds_view_modes

I completely removed these tables as they were empty and it sounded like there was a change in the module at some point that made these obsolete:

field_data_field_cvm_cvm
field_revision_field_cvm_cvm

zeezhao’s picture

Better to check the ds issue queue.

There is a related issue there that appears fixed. See: https://www.drupal.org/node/2530358