500 Internal Server Error when using Form in popup mode

Created on 12 July 2024, 4 months ago

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.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇸🇮Slovenia joco_sp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joco_sp
  • 🇸🇮Slovenia joco_sp

    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. If I change this to "teaser" it works. Now just the "Edit" link is displayed twice when I save the form in the popup.

  • 🇸🇮Slovenia joco_sp

    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.

Production build 0.71.5 2024