- π¨π΄Colombia camilo.escobar
Patch in #37 π BaseFieldOverride fails to take into account ContentEntityInterface::bundleFieldDefinitions() when invoking onFieldDefinitionUpdate() Needs work worked for me.
I was getting the error below when saving the configuration in the Content Traslation page (/admin/config/regional/content-language). It generated override files for fields of one of the entities provided by the Recurring Events β module.
Then, after exporting the configuration and trying to import it in another environment, I got this:TypeError: Argument 2 passed to Drupal\Core\Entity\ContentEntityStorageBase::onFieldDefinitionUpdate() must implement interface Drupal\Core\Field\FieldDefinitionInterface, null given, called in /app/web/core/lib/Drupal/Core/Field/Entity/Base FieldOverride.php
Thanks for looking into this and providing the patch.
- last update
over 1 year ago 30,357 pass, 1 fail - last update
over 1 year ago 30,368 pass - π¬π§United Kingdom robcarr Perthshire, Scotland
The patch at #37 has helped me on D9.5
I'd been trying to uninstall modules and getting lots WSOD/errors:
TypeError: Drupal\Core\Entity\ContentEntityStorageBase::onFieldDefinitionUpdate(): Argument #1 ($field_definition) must be of type Drupal\Core\Field\FieldDefinitionInterface, null given, called in web/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php on line 222 in Drupal\Core\Entity\ContentEntityStorageBase->onFieldDefinitionUpdate() (line 546 of web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php)
- π¨π¦Canada smulvih2 Canada π
#37 also worked for me on D9.5.8. Was getting the same error as #68.
- πͺπΈSpain pcambra Asturies
Just stating that in my 9.5.10 install #37 didn't work but #39 did
- last update
about 1 year ago Patch Failed to Apply - last update
about 1 year ago 29,678 pass - last update
about 1 year ago 29,678 pass - πΊπΈUnited States alfattal Minnesota
Patch in #71 worked for me. I'm on Drupal 10.1.6, PHP 8.1.
- last update
11 months ago Build Successful - last update
10 months ago Custom Commands Failed - πΊπΈUnited States euk
The patch in #71 π BaseFieldOverride fails to take into account ContentEntityInterface::bundleFieldDefinitions() when invoking onFieldDefinitionUpdate() Needs work still fails. This time with the following error:
Error: Call to a member function getSettings() on null in /var/www/web/core/lib/Drupal/Core/Field/FieldConfigBase.php on line 376 #0 /var/www/web/core/lib/Drupal/Core/Field/FieldConfigBase.php(289): Drupal\Core\Field\FieldConfigBase->getSettings()
This happens on config import, and seems to be related to translations somehow (probably not the cause but one of the triggers for this issue), as the only update affecting the current build was enabling translation...