File entity is not compatible with Configuration Management

Created on 18 July 2017, almost 7 years ago
Updated 13 February 2023, over 1 year ago

Updated Drupal core and modules today. Checked Status Report and came across the error:

"Mismatched entity and/or field definitions" on File 'type' field: The File type field needs to be installed...

Eventually fixed the issue by updating the module to the 8.x-2.x-dev version and following various steps in the issue described at https://www.drupal.org/node/2758043

Now when I visit /admin/content/ I get a WSOD, and I'm getting the following message in the error log:

AH01071: Got error 'PHP message: Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: "Route "entity.file.collection" does not exist." at /core/lib/Drupal/Core/Routing/RouteProvider.php line 190\n'

Google didn't reveal any exact matches for this error. Searching the codebase for "entity.file.collection" found matches in 3 files, all belonging to the file_entity module, so I assume the problem exists with this module.

Please excuse me, I'm a Drupal veteran, but very new to D8.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇿New Zealand scott.whittaker

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.

  • 🇮🇳India magendiran

    Thanks @Mahmoud Helmy,

    Your #20 patch works for me, Along with I modified the content of the web/modules/contrib/file_entity/file_entity.install file.

    Comment the following lines (113-114):

    $definition = $update_manager->getFieldStorageDefinition('type', 'file');
    $update_manager->uninstallFieldStorageDefinition($definition);

    and uninstall the module.

  • 🇺🇸United States rsbecker

    Following this thread I finally was able to uninstall file_entity, which I only installed on a new D9 site because it was installed on the D7 site from which I migrate. But even after manually removing all entries in the config and key_values table for field_file, on the System Status report I am still getting an error -- "The node.field_file field needs to be uninstalled." I've run cr and updated the database, but no joy.

    Any suggestions about where to look for a fix?

Production build 0.69.0 2024