Hello,

i've got some errors while installation of the Contract Storage module.
Furthermore the SMTP Authentication Support module stopped working after the installation of Contract Storage.

An error occurred while notifying the creation of the created field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1456 of xxx/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

An error occurred while notifying the creation of the uid field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1456 of xxx/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

An error occurred while notifying the creation of the ip_address field storage definition: "!message" in Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException() (line 1456 of xxx/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

After that i tried to uninstall the Module, because I try to avoid errors.

But than i got that:

Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.

Contactmessage
•The Message-ID field needs to be uninstalled.

This is something like this, but not the same I guess.

so what do you think. :)

Information about my System:
Drupal 8.1.7

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stylaone created an issue. See original summary.

Bambell’s picture

Priority: Normal » Major
Status: Active » Needs review
FileSize
1.81 KB
14.34 KB

I couldn't reproduce the exact same error, but I got the following in status report after enabling Contact Storage on a fresh Drupal installation :

Status report page.

Changed the function update a bit to get rid of that error.

Bumping to higher priority.

Berdir’s picture

Status: Needs review » Needs work

we forgot them on install correct, but we can't share code like that in update functions. We might chang those methods again, and then everyone needs to be updated update and each update function needs to make the exact change that it is supposed to.

Has to be duplicated, unfortunately.

Bambell’s picture

Status: Needs work » Needs review
FileSize
1.03 KB
2.47 KB

Here's a patch, if I understood correctly ..?

andypost’s picture

+++ b/contact_storage.install
@@ -83,3 +83,17 @@ function contact_storage_update_8003() {
\ No newline at end of file

minor

Berdir’s picture

Status: Needs review » Needs work

No, we have the update function already. your change to the install hook was correct, just don't touch the update function.

Bambell’s picture

Status: Needs work » Needs review
FileSize
724 bytes
1.58 KB

Here we go (I think?).

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

I think so too :)

larowlan’s picture

Status: Reviewed & tested by the community » Fixed

thanks!

  • larowlan committed dcb33a4 on 8.x-1.x authored by Bambell
    Issue #2784741 by Bambell, Berdir, andypost: Error while field storage...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

durum’s picture

Version: 8.x-1.0-beta6 » 8.x-1.0-beta8

This is still happening in latest beta.

durum’s picture

Version: 8.x-1.0-beta8 » 8.x-1.0-beta10

Hey guys, it's still happening with fields below:

ip_address
uid
id
created

rominronin’s picture

This issue still exists (should probably re-open it, and close https://www.drupal.org/project/contact_storage/issues/3053497).