Score:0

How to solve "Mismatched entity and/or field definitions", specifically, "The URL alias field needs to be installed"?

cn flag

After migrating from 7.89 to 9.3.12 this warning appears:

ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were detected in the entity type and field definitions. File The URL alias field needs to be installed.

How do I solve this?

id flag
Note: Also asked at https://www.drupal.org/project/drupal/issues/3279976, which I closed because this is actually a better place for support.
id flag
Please post complete steps to reproduce this situation.
cn flag
go into new site and the error above is listed in Configuration.....the links to audio files which worked fine in 7.89 are not populated in 9.3.12....you can usually click on the link and it plays the audio file.....
id flag
That is not steps to reproduce.
cn flag
It came up after the upgrade....no way to reproduce it short of doing another upgrade....
Score:1
cn flag

This issue can only happen if you have two modules installed at the same time. Pathauto and File Entity. It is rare that you need File Entity in Drupal 9 because we have now Media entities. You are probably still using it because you've used it in Drupal 7. But it is very rare that you need the field "URL alias" in the File entity. See https://www.drupal.org/project/file_entity/issues/2655844#comment-14212446

So try out this patch to remove this field:

https://www.drupal.org/project/file_entity/issues/2655844#comment-14213753

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.