Error while field storage definition

Created on 8 May 2019, over 5 years ago
Updated 12 August 2024, 4 months ago

I'm duplicating the linked issue because I can't reopen it. It is still here with the latest beta.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇹🇷Turkey durum

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦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

  • 🇺🇸United States hyperlogos

    Patch #26 works here

  • 🇧🇷Brazil kleiton_rodrigues Americana/SP

    Patch #26 RTBC +1

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update about 1 year ago
    8 pass
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update about 1 year ago
    8 pass
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    3 pass, 3 fail
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update about 1 year ago
    4 pass, 1 fail
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    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.

  • 🇪🇨Ecuador andres.torres

    +1 for #26, Working on Drupal 10.2.6 fresh install.

  • 🇺🇸United States inversed

    #26 works for me using existing config sync yaml on a fresh install.

  • Pipeline finished with Skipped
    6 months ago
    #205489
  • 🇨🇭Switzerland berdir Switzerland

    Rebased and merged.

  • Status changed to Fixed 6 months ago
  • 🇨🇭Switzerland berdir Switzerland
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • 🇮🇹Italy kopeboy Milan

    In which release can we find this?

  • 🇺🇸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

Production build 0.71.5 2024