I want to enable the media module for an existing site that was migrated from D6 more than a year ago, but unless I remove and reupload existing images, media doesn't recognize the image. With the media browser the ability to view the image library won't appear until after I remove the exist image also. I have search but have found nothing that relates to the issue I'm having. Thank you.

CommentFileSizeAuthor
Screenshot from 2017-05-24 15-34-21.jpg176.15 KBcouloir007
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

couloir007 created an issue. See original summary.

joseph.olstad’s picture

looks like a configuration issue;
try /admin/structure/file-types/manage/image/file-display

make sure your image styles are configured correctly

joseph.olstad’s picture

Status: Active » Postponed (maintainer needs more info)
joseph.olstad’s picture

This option should be checked:
Format the file as an image. The image can be displayed using an image style and can optionally be linked to the image file itself or its
parent content.

also, check your file entity permissions , permissions for view file, create file, etc
review your media configuration and image or file entity type configuration.

couloir007’s picture

Looks like if I edit the image and save it, it fixes it. It must be the file itself, not a node with the image field.

joseph.olstad’s picture

write a simple script that loads and saves the file entities (all of them one at a time in a foreach loop), run it with drush like this:
drush scr couloir007_script.php

couloir007’s picture

Will do, Thanks!

joseph.olstad’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

The script solution should do the job in this case.

Thanks.