Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kedramon/8cff92552b2a6cbb9f9abf15a0f3f52a to your computer and use it in GitHub Desktop.
Save kedramon/8cff92552b2a6cbb9f9abf15a0f3f52a to your computer and use it in GitHub Desktop.
[Drupal] How to solve "Mismatched entity and/or field definitions"

If you see in the Status Report error section with fields marked as mismatched this is what you can try to do.

drush entup command was removed starting from some version, so thes method is not relevant anymore.

Given Drupal Core 9.3.3, I attempted the following process which finally resolved the errors without the drush command.

Spot where from comes the field itself, could be Paragraph, Block, Node, or other Entity.

From the administrative menu, navigate to Manage Fields and edit the field, open tab Field settings and simply click "Save".

In some cases, the field contained no data, in other case I received the warning that data was present. After saving, and returning to Status Report, the errors were resolved.

It seems as though saving through the GUI syncs up the changes in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment