I enabled the Media module, set up an image media type, and added a media field to a content type. However, when I click to add a file but got the error "Oops, something went wrong. Check your browser's developer console for more details."
I looked and saw the following message:
Drupal\Core\Database\DatabaseExceptionWrapper: Exception in Media library[media_library]: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'woldtree.media_field_data' doesn't exist: SELECT "media"."mid" AS "media_mid", "media_field_data"."created" AS "media_field_data_created", "media_field_data"."name" AS "media_field_data_name", "media_field_data"."mid" AS "mid" FROM "media_field_data" "media_field_data" INNER JOIN "media" "media" ON media_field_data.mid = media.mid WHERE ("media_field_data"."bundle" = :db_condition_placeholder_0) AND (("media_field_data"."status" = :db_condition_placeholder_1) AND ("media_field_data"."default_langcode" = :db_condition_placeholder_2)) ORDER BY "media_field_data_created" DESC LIMIT 25 OFFSET 0; Array ( [:db_condition_placeholder_0] => image [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => 1 ) in main() (line 19 of /var/www/html/alexismundi.com/index.php).
Is anyone able to provide some help?
Thanks!
Stephen
Comments
Somehow the base table is
Somehow the base table is missing from the database. Try uninstalling and re-installing the Media module.
Contact me to contract me for D7 -> D10/11 migrations.
Thanks!
That seems to have done the trick!