Hello there,

Sorry about my non-useful issue title, but I honestly do not know what is going on. When viewing a page an error is logged along the lines of:

Effect image_style not found for media_gallery_large display formatter style of the FileStyles class.

I'm not sure why this is happening, possibly something I've done in a haze of late night deadline meeting. The error is reported for all the nodes present in the gallery. I've attached some screenshots to illustrate the effect this has on the ui. You will notice how the thumbnails are no longer cropped and re-sized and the youtube video that was previously there is not displaying at all, and throwing up an error in colorbox. I am using beta5 with the contributed colorbox patch and have also attached a screenshot of an issue with the size of the description area when using colorbox.

Any help would be greatly appreciated
Cheers

Comments

pazap47’s picture

Wish I could help since I have the same problem but no solution. Anybody with helpful ideas?

Sateqla’s picture

I had the same problem when I used Styles-module version 7.x-2.0-alpha6 or later (I tried with versions alpha7 and alpha8 too).

Then I installed styles module version 7.x-2.0-alpha5, which is mentioned in the Media Gallery module readme file as tested, and it worked! So, you might want to try installing alpha5 version of Styles module, at least it fixed the problem for me.

Seems that changes in later versions of Styles module are not fully compatible with this version of Media Gallery.

pazap47’s picture

Thank you so much it's what I thought, it's the cat who bites the tail effect with updates, but I do realize the hard work and effort that's being put into Drupal 7 by the community we just have to be patient.

camdarley’s picture

Same problem for me, i subscribe !

mrpauldriver’s picture

StatusFileSize
new95.27 KB

Similar problem when linking to YouTube video.

Wide screen video are letterboxed (see screenshot). Yes this happened before but it was possible to resize and crop the thumbnails with image style. This does not appear to working at all.

sylvain lecoy’s picture

StatusFileSize
new121.96 KB

Same problem here. Subscribing

sylvain lecoy’s picture

StatusFileSize
new97.07 KB

Same for the media_gallery block.

SilviuChingaru’s picture

I think the problem is from media gallery thumbnail preset. In order to fix the problem use square_thumbnail instead of media_gallery_thumbnail preset in admin/config/media/file-styles/edit/media_gallery_thumbnail. It's work for me now.

If you don't have square_thumbnail preset in the list of presets create it (or a new one) at admin/config/media/image-styles with Scale and crop [your thumb dim in px]x[your thumb dim in px].

The problem is from media_gallery.module

function media_gallery_styles_default_presets_alter(&$styles) {
  ...
}

But I don't have time for debug right now, I'll make some research later.

das-peter’s picture

Status: Active » Needs review

I think I found the issue in the function media_gallery_styles_default_presets_alter().
It looks like something in the styles module has changed - earlier there was the key image_style, but now it seems to be imageStyle.

Unfortunately I can't provide a patch because atm. I'm not on my Dev-Environment, but luckily the necessary change is easy:

  • Open file media_gallery.module
  • Go to the function media_gallery_styles_default_presets_alter() (line 1449)
  • Replace 'name' => 'image_style', with 'name' => 'imageStyle', - save changes.
  • Flush cache - done.
keha3912’s picture

Status: Needs review » Active

http://drupal.org/files/issues/Screenshot_0_260.png - at me too most
The message #8 and #9 hasn't helped
das-peter - you can make a result screenshot?

das-peter’s picture

@keha3912:
Could you try to reasign the preset media_gallery_thumbnail to the filestyle here: admin/config/media/file-styles/edit/media_gallery_thumbnail ?

This means

  • switch the image preset from media_gallery_thumbnail to e.g. thumbnail and save.
  • Then switch back again to media_gallery_thumbnail and save.

If you've installed the latest styles module and you've changed the code according to #9 it should work.

keha3912’s picture

Has found where an error - admin/config/media/types/manage/image/display/media_gallery_collection_thumbnail - here it is chosen media_gallery_thumbnail
All thanks!

das-peter’s picture

Status: Active » Needs review
StatusFileSize
new586 bytes

Added patch related to #9. I'm still not sure when the behaviour of styles changed - maybe we need a conditional alteration.

ischia’s picture

#13 helped, thank you!

Carlos Miranda Levy’s picture

Patch #13 fixes it :-)
Thanks.

effulgentsia’s picture

Title: I'm not sure what has happened, but something has messed up the image styles! » Media Gallery image styles broken with Styles alpha6 update.
Version: 7.x-1.0-beta5 » 7.x-1.x-dev
Status: Needs review » Fixed

Thanks. Styles usage page still shows quite a few people using alpha5 (possibly because of this problem), so rather than breaking BC for them, I committed a variant of #13 that's compatible with both: http://drupalcode.org/project/media_gallery.git/commitdiff/7cb6108?hp=45...

bib_boy’s picture

Similar issue for me in that my gallery images were set to 'File Style: media-gallery_thumbnail' in the image media type settings but all the images in the gallery were different sizes. It looked horrible.

But I can confirm even using styles module (version alpha8) that both solutions in #13 and the variant at #16 fix this issue!

many thanks.

Tuscan’s picture

Same bug my end. Media gallery beta 5, Styles Alpha 8.
Description:
The gallery thumbnail images are not cropping, causing the titles to get cut off and thumbnails to not inline correctly. Similar to the previous screenshots attached.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.