Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
On clicking save get error "[php5:error] [pid 13771] [client 127.0.0.1:43943] PHP Fatal error: Cannot unset string offsets in /home/drupal/Projects/d8/drupal/core/lib/Drupal/Core/Field/WidgetBase.php on line 346, referer: http://d8.local/admin/structure/pets/add"
Comments
Comment #1
smashwini commentedComment #3
sharique commentedOn clicking save get error "[php5:error] [pid 13771] [client 127.0.0.1:43943] PHP Fatal error: Cannot unset string offsets in /home/drupal/Projects/d8/drupal/core/lib/Drupal/Core/Field/WidgetBase.php on line 346, referer: http://d8.local/admin/structure/pets/add"
Comment #4
sharique commentedThis might be the reason #1869574: Support single valued Entity fields.
Comment #6
sharique commentedTo Do:
1. Machine name field is not working as desired.
2. Mime mail options should be not displayed as module is not preset, currently disabled.
Comment #7
sharique commentedComment #8
rahul.shindeComment #9
jamesliu78Hi, I found the way to fix it, but too many place need to fix, so I just note it.
It should be work, but need to type full form detail.
Comment #10
sharique commentedBundleEntityFormBase is for config entities and PET is content entity, so it does not work with that.
Comment #11
sharique commentedI'm thinking about not to show machine name field in the form for now. Let me know if anybody thinks other way.
Comment #12
sharique commentedHere is patch to hide machine name field and auto populate its value from title.
Comment #14
sharique commentedCreated separate issue for machine name field #2696897: Remove machine name field