Table 'media' doesn't exist

Created on 15 February 2020, almost 5 years ago
Updated 29 July 2024, 5 months ago
🐛 Bug report
Status

Closed: duplicate

Version

9.5

Component
Media 

Last updated about 14 hours ago

Created by

🇮🇳India khacreation

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

  • 🇳🇿New Zealand quietone

    The original report doesn't have steps to reproduce. However, later examples do and it seemed that this is not specific to the media module. I did some searching and found similar reports in the extension system. The closest match to this is 🐛 Improperly deployed *missing* entity table breaks module uninstall Needs work . Therefor, I am closing this as a duplicate of that one.

    The good news is that there is a patch over there.

  • 🇬🇧United Kingdom Alina Basarabeanu

    Re-running the media install fixed the issue for me.
    ddev drush php:eval "Drupal::entityDefinitionUpdateManager()->installEntityType(Drupal::entityTypeManager()->getDefinition('media'))"

  • 🇧🇷Brazil tmendesilva

    #12 Works for me, tanks @phenaproxima

  • 🇫🇷France MajorMoha

    #12 worked for me, but it was throwing an exception when I executed it using drush php:eval.
    instead I added the code to a php file and called it rebuildmedia.php and placed at website root level, then I executed it as following:

    drush php:srcipt rebuildmedia.php

Production build 0.71.5 2024