Thumbnails are not created for subfolders.

"mass importing" files from sites/default/files/images make the images available for "handling" (inserting, editing deleting etc) by Drupal/Media module.

But thumbnails are not created for these files when browsing them as an editor. The images work in every other respect. Once inserted they show up fine in any media style. Also clicking on them to edit them in the content:files tab works brilliantly.

As a test I moved one of the images to sites/default/files and reimported and the thumbnail appears like expected.

The location of the file is known to Media, but the if the file is outside the "default" public files location of admin/config/media/file-system the thumbnail isn't rendered. Is there a way around this?

Comments

Dave Reid’s picture

Do you use the private file system by default? Is the sites/default/files/images directory a symlink?

leanderl’s picture

Hi David! We met briefly in Munich on the friday morning when I offered to help. Though I wound up in the coders lounge writing tests...

No, I use the public file system not the private. But this site is a "legacy" site upgraded from Drupal 6 with a lot of images from the previous (D6) version, so they are kind of hard to move from the existing path without breaking references to them elsewhere.

The images that have "broken" thumbnails are in a subfolder called images (sites/default/files/images) within the default public files folder (sites/default/files). They were imported to be "recognized" (browsable, searchable) by Drupal (Media) through the "import files" option on "admin/content/file".

Apart from the thumbnails everything works brilliantly. You can find them by name, tag etc and insert them into nodes. So Media has no trouble handling them apart from the thumbnails. It seems to me Media (File entity) only looks for the original image in the default location (which is sites/default/files in my configuration)

G42’s picture

Issue summary: View changes

I encountered a similar problem and searching Media issues brought me here, however at least in my case the problem is with the Media Browser Plus module. If you have MBP installed then this thread is probably more useful: https://www.drupal.org/project/media_browser_plus/issues/2158869

Chris Matthews’s picture

Status: Active » Closed (outdated)

Recent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.

Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.

As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.

Thanks,

Media team