Score:-2

After I upgraded the site, some admin pages get a "Field storage definition for 'uuid' could not be found." error

ng flag

Upgrading Drupal 8 to Drupal 9 went smooth and without any issues, but now when I visit admin/reports/status or admin/modules/uninstall, I get this exception.

Drupal\Core\Field\FieldException: Field storage definition for 'uuid' could not be found. in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->getEntitySchema() (line 968 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).

Searching for the error gives a few results of the same issue, but without solution. I've ran database updates (nothing pending), cleared caches, and tried to disable various contributed modules without success.

cn flag
Pasting in the text of an error is always more helpful than a screenshot unless it is a UI error.
Score:0
cn flag

I've ran database updates (nothing pending), cleared caches and tried disabling a various contrib modules without success.

A systematic approach would be to find out the entity type and with this information the module which is causing the error.

Change the code line throwing the exception to include the entity type ID:

(line 968 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php):

throw new FieldException("Field storage definition for '$field_name' in '$entity_type_id' could not be found.");

If you can restore the entity data you can remove (preferable before you update to Drupal 9) and reinstall the module. If this is not an option you have to check the issue queue for a fix in the update routines.

quantumized avatar
ng flag
Thank you. I was able to track down the issue. The previous admin had installed some core test modules (enity_test) that were corrupt. Forcing removing the module resolved the issue.
4uk4 avatar
cn flag
My answer is more about the error message in general. This is more suitable for DA because those who search for this error message might have the problem with a different module.
Score:-1
ng flag

I was able to track down the issue. The previous admin had installed some core test modules (enity_test) that were corrupt. Forcing removing the module resolved the issue.

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.