Problem/Motivation
When I switch to the Form in popup behavior for the field widget I get the 500 Internal Server Error message. I tried it also on a clean install. I used core 10.2.6 and 10.3.1. The Inline form is working fine.
Steps to reproduce
On the field widget choose the "Form in popup" for the "Select behavior". When reloading the node, you get the 500 error.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screenshot 2024-07-12 at 11.59.18.jpeg | 110.7 KB | joco_sp |
| #2 | Screenshot 2024-07-12 at 11.53.47.jpeg | 381.92 KB | joco_sp |
Comments
Comment #2
joco_sp commentedWhen debugging the EditableFieldsFieldFormatter.php on line 230, it looks like it's going into a loop and if I comment out this whole part, the node is shown with the editable field.
I think that the problem is in the return, because it is returning the same field on the same display and therefore it goes into a loop.
'field' => $entity->get($field_name)->view($view_mode),If I change the "Select fallback display mode:" to "teaser" it works.
PS: I think also the conditional states are not working on the field formatter.
Comment #3
joco_sp commentedExample of the working widget. As I mentioned above, I had to change the "Select fallback display mode:" to "teaser".
I'm not sure what would be the best fix for the code. As a temporary solution I am creating a new display view for that mode with the wanted fields and selecting it as a fallback.
Comment #4
gilmord@joco_sp I think this one is fixed here: https://www.drupal.org/project/editablefields/issues/3465743
not really "fixed" but I excluded current display to be fallback option, as it cause a loop and makes no sense, pushed this to dev version of the module
Comment #5
gilmord