- 🇨🇦Canada sagesolutions
I tested patch #26 on a clean install Drupal 9.5.3 with PHP 8.1.
Before, I was getting the following errors
```
[error] An error occurred while notifying the creation of the id field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.id': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1594 of /var/www/html/drupal/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the created field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.created': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1594 of /var/www/html/drupal/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the uid field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.uid': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1594 of /var/www/html/drupal/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the ip_address field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.ip_address': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1594 of /var/www/html/drupal/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
```
After applying patch #26 The module installed properly with no errors. - 🇺🇸United States AaronBauman Philadelphia
Looks like another duplicate issue, closed on this one.
🐛 Fields cannot be created when installing Closed: duplicate - Merge request !5Issue #3053497: Change install hook to module preinstall hook. → (Merged) created by godotislate
- last update
about 1 year ago 8 pass - last update
about 1 year ago 8 pass - last update
about 1 year ago 3 pass, 3 fail - last update
about 1 year ago 4 pass, 1 fail - last update
about 1 year ago 4 pass, 1 fail +1 for the patch in #26 Couldn't install the module through importing config without the schema.
- 🇺🇸United States inversed
#26 works for me using existing config sync yaml on a fresh install.
-
Berdir →
committed 17e18625 on 8.x-1.x authored by
godotislate →
Issue #3053497 by godotislate, RoSk0, mstef, kleiton_rodrigues, Berdir:...
-
Berdir →
committed 17e18625 on 8.x-1.x authored by
godotislate →
- Status changed to Fixed
6 months ago 11:41am 22 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.
- 🇺🇸United States marvs5
I just installed contact storage 8.x-1.3 (1.3.0) on a site using composer. When I activated it via drush en contact_storage, I received the following error message:
[error] An error occurred while notifying the creation of the id field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.id': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1601 of /web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the created field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.created': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1601 of /web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the uid field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.uid': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1601 of /web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[error] An error occurred while notifying the creation of the ip_address field storage definition: "Exception thrown while performing a schema update. Cannot add field 'contact_message.ip_address': table doesn't exist." in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1601 of /web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
[success] Successfully enabled: contact_storage