Fixed
Project:
Gutenberg
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2026 at 13:19 UTC
Updated:
10 Oct 2026 at 14:17 UTC
Jump to comment: Most recent
Since Drupal 11.3, core no longer adds a body field to new content types (node_add_body_field() is deprecated, see the change record). When Gutenberg is enabled on such a content type, the node add form crashes:
InvalidArgumentException: Field is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() ... gutenberg_form_node_form_alter()
UtilsController::getEntityTextFields() returns no field, and gutenberg_form_node_form_alter() calls $node->get($text_fields[0]). The same thing happens if the text field of a Gutenberg content type is deleted.
_gutenberg_is_gutenberg_enabled(), with a new GutenbergContentTypeManager::hasTextField()), so its node form falls back to the default form.A warning on the Manage Gutenberg tab (and after adding a content type) when the content type has no formatted text field.
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
Comment #4
marcofernandes commented