Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i installed gutenberg on my preproduction server. Ubuntu 20.04 with varnish and nginx. On a drupal 9.1.0. I installed three versions, 1.11, 2.x-dev and 2.0-beta2. The problem is the same.
Cannot save document or preview it. I have in the dev console, the following message: An invalid form control with name = 'body [0] [value]' is not focusable.
(anonymous) @ gutenberg.js? qm3hu5: 275
dispatch @ jquery.min.js? v = 3.5.1: 2
v.handle @ jquery.min.js? v = 3.5.1: 2
Locally everything is going well.
Comments
Comment #2
henrikakselsen CreditAttribution: henrikakselsen at Frontkom commentedIsn't that the error that comes up in the console when one tries to save the node without adding title? Are you sure you added title?
Comment #3
henrikakselsen CreditAttribution: henrikakselsen at Frontkom commentedComment #4
fhebert CreditAttribution: fhebert commentedYes i'm pretty sure I added the title
Comment #5
henrikakselsen CreditAttribution: henrikakselsen at Frontkom commentedIf title was added, we can't reproduce. Closing. Reopen if it happens again, with more details and steps.
Comment #6
somms CreditAttribution: somms as a volunteer commentedI have got the same error, despite I have set a title or not. I have used Gutenberg previously in the same project without problem, but it is failing now. Probably it is a conflict with other module(s).
I thought it was a conflict with Web Components, but after uninstalling the module the error persists
All the best.
Julio
Comment #7
parth.kukadiya CreditAttribution: parth.kukadiya as a volunteer commentedI facing simillar issue on the Gutenberg editor.
I am using latest version of Gutenberg 8.x-2.1 in the Drupal version 9.2.4
In one of the content types I have marked 'Body' field as required. I have applied Gutenberg on the body field in the same content type. Now when adding a new content and ignoring to add content on the required field Body results in the issue mentioned here.
Please help.
Comment #8
Leksat CreditAttribution: Leksat at Amazee Labs commentedJust got this error on a new content type I created. The solution was to make the Body field optional.
Comment #9
hodba CreditAttribution: hodba as a volunteer commented#8 worked for me. Thanks Leksat!