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.

Comments

joco_sp created an issue. See original summary.

joco_sp’s picture

StatusFileSize
new381.92 KB

When 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.

// Popup version.
if ($this->getSetting('behaviour') === 'popup') {}

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.

joco_sp’s picture

StatusFileSize
new110.7 KB

Example 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.

gilmord’s picture

@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

gilmord’s picture

Status: Active » Fixed
Issue tags: +LutskGCW25

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.