The Metatag defaults entity type needs to be installed.

Created on 13 April 2022, almost 3 years ago
Updated 1 April 2025, 7 days ago

Drupal reported an error and metatag is not working properly:

Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Metatag defaults
The Metatag defaults entity type needs to be installed.

GENERAL SYSTEM INFORMATION:

Drupal Version 9.3.9

Web Server:nginx/1.21.4

PHPVersion:7.4.27

Database Version: 10.3.29-MariaDB

πŸ’¬ Support request
Status

Active

Version

1.19

Component

Miscellaneous

Created by

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

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States cruzxalejandro

    Ran into this issue recently. Here's how I was able to replicate the error "Mismatched entity and/or field definitions",

    I unknowingly had an issue with another module that wasn't installed correctly. So, regardless of what module I enabled, I was running into the WSOD, with the exception error.

    Drupal\Core\Extension\Exception\UnknownExtensionException: The module we_megamenu does not exist. in Drupal\Core\Extension\ExtensionList->getPathname() (line 519 of core/lib/Drupal/Core/Extension/ExtensionList.php).

    I believe when enabling Metatag module, and encountering an interruption like mentioned above, is what causes the install error.

    To fix:

    • I used composer to uninstall metatag.
    • Took care of the error with the above module.
    • Cleared cache and reinstalled metatag with composer, and enabled through GUI.

    Once I did the following, Metatag was acting as expected, with default configs ready and the error message gone.

Production build 0.71.5 2024