- 🇧🇪Belgium johanvdr
To bypass the warnings as mentioned above this happened most probably due to settings that are moved.
Warning: Undefined array key "disable_css" in template_preprocess_ds_entity_view() (regel 461 van /var/www/html/web/modules/contrib/ds/ds.module)
Patch added.
- 🇫🇷France Chris64 France
Patch ds-bypass-disable-css-warnings-3330759-3.patch → applied, and errors got,
Warning: Undefined array key "disable_css" in _ds_field_ui_table_layouts() (line 795 of modules/contrib/ds/includes/field_ui.inc). _ds_field_ui_table_layouts('user', 'user', 'full', Array, Object) (Line: 51) ds_field_ui_fields_layouts(Array, Object) (Line: 241) ds_form_entity_view_display_edit_form_alter(Array, Object, 'entity_view_display_edit_form') (Line: 562) Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'entity_view_display_edit_form') (Line: 840) Drupal\Core\Form\FormBuilder->prepareForm('entity_view_display_edit_form', Array, Object) (Line: 284) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Warning: Undefined array key "entity_classes" in _ds_field_ui_table_layouts() (line 796 of modules/contrib/ds/includes/field_ui.inc). _ds_field_ui_table_layouts('user', 'user', 'full', Array, Object) (Line: 51) ds_field_ui_fields_layouts(Array, Object) (Line: 241) ds_form_entity_view_display_edit_form_alter(Array, Object, 'entity_view_display_edit_form') (Line: 562) Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'entity_view_display_edit_form') (Line: 840) Drupal\Core\Form\FormBuilder->prepareForm('entity_view_display_edit_form', Array, Object) (Line: 284) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Status changed to Needs review
over 1 year ago 4:20pm 22 September 2023 - last update
over 1 year ago 30 pass - 🇫🇷France Chris64 France
if (isset($build['#ds_configuration']['layout']['disable_css'])) {
givesTRUE
if$build['#ds_configuration']['layout']['disable_css']
exists and sets toFALSE
. May be patch 3 is needed after patch 2 because of this.Therefore what about these changes?,
- if ($build['#ds_configuration']['layout']['disable_css']) { + if ($build['#ds_configuration']['layout']['disable_css'] ?? FALSE) {
- $layout['disable_css'] = $layout_configuration['disable_css']; + $layout['disable_css'] = $layout_configuration['disable_css'] ?? FALSE;
- $layout['entity_classes'] = $layout_configuration['entity_classes']; + $layout['entity_classes'] = $layout_configuration['entity_classes'] ?? [];
- 🇧🇪Belgium swentel
committed with a few changes. probably came from a (really?) old version where those two settings didn't exist yet, which is possible.
- Status changed to Fixed
about 1 year ago 11:21pm 23 December 2023 - 🇫🇷France Chris64 France
Available since 3.17. This version solves our problem #4 🐛 Ds disable css feature warnings because of structural changes. Fixed . Thank you.