This might be a support request, I'm not sure. I'm using 2.10, and have 'Generate thumbnails' set to off, although previously I had it set to on. Since changing that setting I've cleared the cache and also run cron.

In both cases, my Twitter media items are missing a thumbnail in the media library view, and this seems to cause a layout issue which means the media item name is almost completely hidden too:

The Twitter media library item is missing a thumbnail and visible label

Is this the expected behaviour or does it look like I've done something wrong? I would imagine that we could use a generic placeholder thumbnail if one hasn't been generated.

Comments

Phil Wolstenholme created an issue. See original summary.

Phil Wolstenholme’s picture

StatusFileSize
new36.4 KB

Hmm, I've reinstalled my site from config (with 'Generate thumbnails' set to false) and now it seems a fallback thumbnail is used:

Now a thumbnail is shown

I'm happy to close the ticket and will do in a few days but would also be interested to hear why the thumbnail might not have been showing up earlier.

Phil Wolstenholme’s picture

Category: Bug report » Support request
Priority: Normal » Minor

Changing issue type and priority as the issue went away when reinstalling my site

Phil Wolstenholme’s picture

Category: Support request » Bug report

Re-changing the status as I can reproduce the error by enabling the generate thumbnails setting and running cron.

This is the markup of a Twitter item in the media library, it looks like the SVG thumbnnail is missing?

<div class="media-library-item__preview js-media-library-item-preview js-click-to-select-trigger"><div data-quickedit-field-id="media/1/thumbnail/en/media_library" class="field field--name-thumbnail field--type-image field--label-hidden field__item"></div></div>

It looks like Drupal is trying to use an image style on the image, is there some config I need to do to exclude the Twitter thumbnails from this?

Could not apply Medium (220×220) image style to public://twitter-thumbnails/1175025447207428097.svg because the style does not support it.

damienmckenna’s picture

Version: 8.x-2.1 » 8.x-2.x-dev
Priority: Minor » Normal
volkerk’s picture

Status: Active » Needs review
StatusFileSize
new697 bytes
volkerk’s picture

After second thought this might not be related, moved patch to #3107673: Media default thumbnail is missing

volkerk’s picture

Status: Needs review » Active
raofei’s picture

most of the case is somthing wrong with your server configuration. if you set some directory visiting forbiden in your server. you can comment it. and the thumbnails will recreate by cron.