Problem/Motivation

On Drupal 11.4, the node manage form display white screens. The issue is:

Fatal error: Declaration of Drupal\form_mode_manager\Form\FormModeManagerDisplayEditForm::submitForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\field_ui\Form\EntityFormDisplayEditForm::submitForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state): void in /var/www/html/web/modules/form_mode_manager/src/Form/FormModeManagerDisplayEditForm.php on line 83

Steps to reproduce

Create a content type. Navigate to the Entity form display edit form for the entity type.

Proposed resolution

Add void to the return type for FormModeManagerDisplayEditForm::submitForm

CommentFileSizeAuthor
#7 3608797-mr27-7.patch1.19 KBweseze
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

miwayha created an issue. See original summary.

miwayha’s picture

Status: Active » Needs review
yfiervil’s picture

Status: Needs review » Reviewed & tested by the community
johnatas’s picture

Hey,

MR !27 tested successfully on Drupal 11.4.1 with Form mode manager 3.1.0.

RTBC++

rgristroph’s picture

I have also tested this on Drupal 11.4.1 with form mode manager 3.1.0 , and it appears to fix the issues I had. Thanks for this work ! I also vote for RTBC.

weseze’s picture

StatusFileSize
new1.19 KB

Static patch based on MR27 for use in composer patches workflow.

papagrande’s picture

I also ran into this and can confirm the patch works on Drupal 11.4.6.

RTBC++.