- Merge request !8Issue #3303007: View mode enable throws an error when display suite is disabled → (Closed) created by mlivan
- 🇳🇿New Zealand jlscott
I have been experiencing this problem when trying to save display settings for various entities.
I have bootstrap and ds installed.
The problem occurs when the display layout is set to "--None--" in the UI. This then comes through to line 367 (function ds_field_ui_layouts_save() ) as a $layout value of "_none", which throws the error when the library value is being set.
Manually setting the value of $layout to "" at that point prevents the error and the display updates correctly. This is what the provided patch is doing.
- 🇮🇳India nagsept3
Tried to reproduce in several ways but issue not repeating
- 🇨🇷Costa Rica maxmendez
The patch #4 fixed my problem.
Please try to use tis steps to reproduce:
- Set a layout to default view mode of a content type and display some field.
- Active a new mode, it will be inherit default view mode settings.
- Go to the new view mode activated.
- Set --None-- as layout and try to save.
- Status changed to Postponed: needs info
12 months ago 10:45pm 23 December 2023 - 🇧🇪Belgium swentel
The thing is, ds_field_ui_layouts_validate() also does that check, so I still have no idea why it is able to crash.
I have a feeling some other module is in the way, but I can't tell for sure. could someone paste the list of modules to see if I can inspect code, because I can't reproduce this with a standard drupal core and DS enabled.
- Status changed to Closed: outdated
9 months ago 10:26am 15 March 2024 - 🇧🇪Belgium swentel
closing for now - doesn't seem that many people have this, and I can't still reproduce.