Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
User error: "bundle" is an invalid render array key
is displayed when you add a content type.
See the following https://www.drupal.org/node/1283892 issue.
Turns out that
$form['bundle'] = $bundle_id[$form_id];
Is not a valid form element.
See my attached patch.
Comment | File | Size | Author |
---|---|---|---|
#5 | render-api-fails-because-of-invalid-form-element-2832040-5.patch | 3.96 KB | artis |
#2 | render-api-fails-because-of-invalid-form-element-2832040-2-D8.patch | 4.01 KB | tresti88 |
Comments
Comment #2
tresti88Comment #3
Paul_Gregory CreditAttribution: Paul_Gregory at Access commentedWe were having the same problem. Patch in #2 worked for us.
Comment #4
defconjuan CreditAttribution: defconjuan commentedConfirming that the patch in #2 works for us as well.
Comment #5
artis CreditAttribution: artis at Texas Creative commentedReroll the patch against current dev-2.x
Comment #6
artis CreditAttribution: artis at Texas Creative commentedThis seems like a good fix and has 4 or us at least who are using it successfully.
Comment #7
vidorado CreditAttribution: vidorado at Biko2 commentedThe patch in #5 works OK
Comment #8
PhilYHi,
Patch #5 seems to be working good for me using Drupal 8.7.7 and Unique Field 8.x-2.x-dev updated 2 Jul 2017
Thanks
Comment #9
superlolo95 CreditAttribution: superlolo95 commented+1 for patch #5