- Issue created by @ulaire
Certain modules (like Domain for instance) automatically add fields upon content type creation, leading to an error when this module wants to add it again.
The website encountered an unexpected error. Try again later.Drupal\Core\Entity\EntityStorageException: 'field_config' entity with ID 'node.[node-type].field_domain_access' already exists. in Drupal\Core\Entity\EntityStorageBase->doPreSave() (line 519 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Install this module next to the domain module (including the domain_access submodule).
Add an extra check during cloning to see if a field already exist.
Active
4.0
Code