After adding images to a new gallery using media gallery beta3, the thumbnails do not display a miniature of the actual image. I only see a generic "image" placeholder, however, if I click the edit media button, in the list of images I have added, I can see proper thumbnails of the actual images I uploaded.

Using media-beta3, styles-alpha-4, multiform-beta1

Best regards,
Ao

CommentFileSizeAuthor
#46 drupal.png68.61 KBsweatstar
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Aonoa’s picture

The images also appear in the library with actual thumbnails of the picture itself, but still only some default image icons are used in the actual gallery as representations of the images. I have tried the latest media gallery head version as well, same problem and this makes for a very unusable gallery.

Youtube video's are only displayed using some video icon instead of a thumbnail of the actual video, and in the library the youtube video is only displayed with it's name (media: youtube-alpha4, media: internet-sources-beta3)

Best regards,
Ao

jerrac’s picture

I have pretty much the same problems as Ao. Though I haven't tested the internet sources stuff. Uploading the file works. But it doesn't show any thumbnails, or regular sized views in the gallery. You have to download or look in the library to actually see it. The placeholder graphic is used in the galleries.

Fresh download of media gallery beta 3.
Styles 7.x-2.0-alpha4
Media 7.x-1.x-dev 2011-Jan-15
Multiform 7.x-1.0-beta1 2010-Oct-25
Drupal 7.0

Enable it, and I get these notices:

Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_thumbnail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_lightbox in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Notice: Undefined index: media_gallery_detail in field_info_max_weight() (line 797 of mypath/modules/field/field.info.inc).
Liakoni’s picture

Same problem happens to me too.

Vasu’s picture

+1

nakedeyez’s picture

Same problem here..

radoeka’s picture

+1

embloo’s picture

+1 anxious to see this work, have read a few threads on Media Gallery Issues.

so close! and frustrating, because in effect, it's a very similar set up, with the same modules (article here), as are live on Drupal Gardens, working in perfect conjunction and quite effectively. (with the addition of the plupload integration module for multiple uploads). Gardens, however is now on Drupal 7 Alpha 6, is it perhaps something in Alpha 6 or in cck (7.x-2.x-dev)?

nakedeyez’s picture

Wow.. picture view (link) is very nice.. i have the same, but only with the (image-x-generic.png) view. damn i love to see this work....

Aonoa’s picture

Still getting this after changing to styles-alpha5 instead of alpha4.

Best regards,
Ao

sea4’s picture

+1 Same here.

NPC’s picture

Same here, subscribing.

Perhaps this is to do with imagecache somehow? The default gallery thumbnail style that it creates is an enormous 400x400px image, but that's not the size of the placeholder graphic that I see instead of images...

RobKoberg’s picture

This problem occurs because the code calls theme_file_link to provide the HTML for the media_gallery teaser image. You can see some illustrative debug logging out put below. Following the code, you go from drupal_render to theme_file_link to theme_file_icon to file_icon_url to file_icon_path. This (file_icon_path) tries to find the most appropriate mime related icon to display. After the code drills down to theming the file field, using the $elements['#theme']: file_link, the theme_file_link function will *ONLY* provide the file's associated mime-related icon image along with a text link to the actual image, *NOT* an img element for the image we want. So, if this is coming in automatically from drupal, I think we want to provide a custom function in place of $elements['#theme']: file_link, such as theme_media_gallery_file_link. Does that make sense? If so, what would be the best way to replace the theme_file_link? Does this help to narrow it down?

06:03:53 drupal_render - $elements['#theme']: media_gallery_collection
06:03:53 drupal_render - $elements['#theme']: node
06:03:53 drupal_render - $elements['#theme']:
06:03:53 drupal_render - $elements['#theme']:
06:03:53 drupal_render - $elements['#theme']: media_gallery_teaser
06:03:53 drupal_render - $elements['#theme']: media_gallery_file_field_inline
06:03:53 drupal_render - $elements['#theme']: field
06:03:53 drupal_render - $elements['#theme']: file_link
06:03:53 theme_file_link - $file: stdClass Object
(
[fid] => 61
[display] => 1
[description] =>
[uid] => 0
[filename] => act_comics_0.gif
[uri] => public://exhibit/art/image/act_comics_0.gif
[filemime] => image/gif
[filesize] => 13266
[status] => 1
[timestamp] => 1295370412
[type] => image
[rdf_mapping] => Array
(
)

)

06:03:53 theme_file_link - $icon_directory:
06:03:53 file_create_url - $uri arg in: public://exhibit/art/image/act_comics_0.gif
06:03:53 file_create_url - $uri after drupal_alter: public://exhibit/art/image/act_comics_0.gif
06:03:53 file_create_url - $scheme: public
06:03:53 file_create_url - $wrapper: DrupalPublicStreamWrapper Object
(
[context] =>
[handle] =>
[uri:protected] => public://exhibit/art/image/act_comics_0.gif
)

06:03:53 theme_file_link - $url: http://d7.windsandwater.com/sites/default/files/exhibit/art/image/act_co...
06:03:53 theme_file_link - $icon:

RobKoberg’s picture

And now I will escape the last line of the log output, because it tried the render the img element:

06:03:53 theme_file_link - $icon: [img class="file-icon" alt="" title="image/jpeg" src="/modules/file/icons/image-x-generic.png" /]

NPC’s picture

Okay, I've solved display of images and thumbs for me.

Go to /admin/config/media/types/manage/image/display (this is for "image", but you may need to verify other media types) of your site, and click through all of the display modes, making sure that instead of "Generic file" you have a fitting image size style set. For me it was all set to "File", whilst checking on my test drupalgardens site I can see that they are all set to something. After I've changed it - it now works!

I hope this helps.

Oddly, though, the size presets selectable here are not the same that I see in the sites image styles list - for example, styles "media_gallery_thumbnail" and "media_gallery_large" aren't available for some reason.

I would appreciate help if someone could point me to where these file styles are configured - I am really happy it works now, but I'd like a little more control :)

Aonoa’s picture

Well done!

Following the tips of #14 works for me.

However, when using the default administration theme; Seven, the Home » Administration » Configuration » Media » Media Types » Image media type settings links clutter together with the Default Link Preview Small Large Original Gallery thumbnail Gallery lightbox Gallery detail Block thumbnail Collection thumbnail links, making navigation rather difficult. Changing to another theme seems to solve this, but it should be fixed properly, I guess a new issue could be created for that, if one does not already exist.

Best regards,
Ao

RobKoberg’s picture

I was also just able to fix this in a different way. In Structure > Content Types > Gallery >> Manage Display >>> Teaser, I changed the format to Preview and the first image file shows as expected.

RobKoberg’s picture

Yep use #14 (for all display modes). Don't listen to me at #16.

NPC’s picture

Ao, they have the same problem with cluttered links on the drupalgardens site, so may be that will get fixed soon (I am using Omega theme, so this doesn't happen for me).

I am glad the solution helped you!

Aonoa’s picture

@NPC:

Alright, sounds good. Thank you. Have you looked at youtube video's? Mine won't display even if I try something akin to what you wrote in #14. I'll do more testing..

Best regards,
Ao

Aonoa’s picture

Title: Media Gallery not displaying images and image thumbnails properly » Media Gallery not displaying images and image thumbnails or youtube video properly
NPC’s picture

@Ao, no, I haven't tried YouTube, have no such requirement to the site I am working on now, sorry.

Aonoa’s picture

Checking the video settings at:

Home » Administration » Configuration » Media » Media Types

I enabled "YouTube streams", which sadly did not help. As for "Match type", it is set to "other" and I cannot change it. It will bump back to "other" each time I try to save it as "any" or "all".

Best regards,
Ao

embloo’s picture

Version: 7.x-1.0-beta4 » 7.x-1.0-beta3
Status: Closed (fixed) » Active

YES! "/admin/config/media/types/manage/image/display" (per #14 & #22) needed a look at! i can confirm that this now appears to work VERY well on my site. have a look. lemme know if something sticks. i will continue to fiddle and push it a little, and report back any [new] issues. One thing, on enabling the Media Gallery module, i did get an error, so disabled it, then enabled it again, and it was clear.

these were the final versions of the related modules i used (i applied NO patches yet, and used a fresh D7 install with no additional theme): **please note, these were the first 'working versions' of these modules that i was able to make work on my site, there have since been updates. (i have removed the modules' reference links, to prevent confusion. as far as i understand, the very latest versions of these are working.)

colorbox-7.x-1.0-beta1.tar.gz
styles-7.x-2.0-alpha5.tar.gz
multiform-7.x-1.0-beta1.tar.gz
media-7.x-1.0-beta3.tar.gz
media_gallery-7.x-1.0-beta3.tar.gz

update: April 13 '11: all working perfectly including plupload. a more complete blog on this is: here.

Aonoa’s picture

Going from Media-beta3 to Media-head helps some for the YouTube content, now it's actually possible to watch the video in the lightbox window, however, there are no thumbnails to speak of. The only thing I see is the text "Watch video" and the name of the video below it.

In the media library, the YouTube thumbnails seem empty except for the name, but there are links like this one: http://example.com/sites/default/files/styles/square_thumbnail/public/media-youtube/PD5bzHauVvo.jpg With dimensions at 0px x 0px (scaled to 100px x 0px).

Best regards,
Ao

NPC’s picture

For me the gallery thumb is stretching to the full width of the content area on the standard frontpage and in the node-based views I create - instead of a neat small "square_thumbnail" image that I see on the actual Media Gallery page. Does anyone else have the same?

I'd like to make my views display the same size of thumbnails that the gallery page is showing.

Aonoa’s picture

How come youtube thumbnails works on my drupalgardens 7.0 site, but they are not working when using the same modules on a local vanilla 7.0 install? I can't seem to figure out why it won't work on my local site. All I get is as explained earlier, an empty rectangle containing the text "Watch video" and the on-hover title of the youtube film.

I can watch the film in a colorbox if I actually click the titlename link, but without the thumbnails the gallery is rather ugly.

Best regards,
Ao

Aonoa’s picture

My logs show messages like this one:

Unable to generate the derived image located at public://styles/media_gallery_thumbnail/public/media-youtube/HdraYDIRBkk.jpg.

Does anyone know how to rectify this?

Best regards,
Ao

Aonoa’s picture

Status: Active » Fixed

I discovered why it was not working, a php upgrade on the system had set "allow_url_fopen" to "Off" in php.ini. Having it set to "On" makes the youtube thumbnails appear.

Setting this issue to fixed. :-)

Best regards,
Ao

Fenwick’s picture

I had the same issue as #25; patch over here: http://drupal.org/node/1047970

David_Rothstein’s picture

For those experiencing the original bug here (images being replaced with a generic placeholder image instead), this is not fixed.

It actually seems to be a duplicate of #1020922: Images aren't displayed and are instead replaced by a generic file icon (when used with the Styles 7.x-2.x branch). Please try the patch I just posted there to see if it helps.

Status: Fixed » Closed (fixed)

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

ephman’s picture

hi,

i can confirm that #23 embloo solution did the trick well.

eph

Wishy’s picture

How do you give permission to users to upload photos, or is this just strictly for administrator?

JacobSingh’s picture

I think they just need the "Add media" permission.

Wishy’s picture

I tried everything, I can't get other users to post pics, only administrator.

anthonyR’s picture

Thanks for the great help in #14.

NPC’s picture

@anthonyR, I am glad to be able to help!

oxide23’s picture

Version: 7.x-1.0-beta3 » 7.x-1.0-beta4

I can upload images and it appears to succeed, however, no images or thumbnails are displayed anywhere. Solution #14 had no effect. I can upload the same images and they never appear.

From what I can see, the files get "uploaded" to sites/default/private

Thumbnails get copied to sites/default/private/styles/square_thumbnail/private

However, in sites/default/private there seems to be an .htaccess file:

more .htaccess
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Deny from all
Options None
Options +FollowSymLinks

which would seem to be stopping anyone from looking at the files.
Could this be causing the problem?

Also, I don't know if this is relevant, but this shows up on my error.log in /var/log/apache2:

Thu Apr 07 18:13:10 2011] [error] [client 128.128.65.3] File does not exist: /var/www/media-gallery, referer: http://mudguts.whoi.edu/?q=node/5

Should the files be copied there instead of sites/default/private ?

That can't be good either.

Thanks for any ideas.

jaymex’s picture

This is the thing (embloo's post 23) that worked for me - just like the man said fresh install and install the modules in the order he said. Thanks and to the other posts as well. D7 is tremendous and getting this set of media modules to work has been my only real problem so far.

jaymex’s picture

see post 23 - and visit the site you get more info and you can see it working.

riju.aikkal’s picture

Version: 7.x-1.0-beta3 » 7.x-1.0-beta4
Status: Active » Closed (fixed)
Issue tags: +Media Gallery not displaying uploaded files

Hi, I tried, media gallery using following module in windows as well as fedora 14 system.

colorbox-7.x-1.0-beta4.tar
media_gallery-7.x-1.0-beta5.tar
media-7.x-1.0-beta4.tar
multiform-7.x-1.0-beta1.tar
plupload-7.x-1.0-beta3.tar
styles-7.x-2.0-alpha8.tar

after uploading the image, it does not showing any thumbnails or images in gallery but all the files are stored in sites/defualt/files

i tried to solve the issue as mentioned in earlier post

http://drupal.org/node/1020922

but it also couldnt help me..

please let me know your suggestion to solve this issue.

PePiToO’s picture

I got the same problem here.
No thumbnails or images when view gallery, but uploaded pics are listed in the library.
Post #23 didn't solve anything.

David_Rothstein’s picture

colorbox-7.x-1.0-beta4.tar
media_gallery-7.x-1.0-beta5.tar
media-7.x-1.0-beta4.tar
multiform-7.x-1.0-beta1.tar
plupload-7.x-1.0-beta3.tar
styles-7.x-2.0-alpha8.tar

As stated in the README.txt, Media Gallery 7.x-1.0-beta5 is tested to work with Styles 7.x-2.0-alpha5.

If you're trying to run it with some other version of the Styles module, it shouldn't be a surprise if it breaks; these modules are all undergoing major development changes.

Spinland’s picture

The read me for Media Gallery Beta 6 doesn't mention Styles at all, is it still necessary? I can only find Styles alpha 8 on their page now, so if it is, and 8 breaks this, what can we do?

I have the same issue as above in that plupload breaks this so that the media_gallery files are never created after upload.

desiman’s picture

I had the same problem and was fixed with #14 comments, just with minor changes. below were the steps that were performed.

In Admin - Configuration - Media - Image Styles, I have to override all types to take the default setting and then save it.

This fixed for me.

sweatstar’s picture

FileSize
68.61 KB

Hi,

I've tried many attempts to tweak using #14 but I do not really understand how it really works.

I've attempted to uploaded images or submit from the library but my galleries keeps having this "No Images Yet" problem.

Please help.

Using Drupal 7.2

rhawkins’s picture

#45 worked for me. I had to override the image styles to see the other image styles in the view I was creating (unformatted w/fields, then had a video field for which I wanted a thumbnail to appear).

Also, the path changed that's mentioned above. It is now /admin/config/media/file-types . I am a bit confused as to the difference between my site's default image styles (thumbnail, medium, large, square_thumbnail) and the different items listed under, for example, file types >> video (default, link, preview, small, large, original).

nolimit966’s picture

I have this exact same issue.
I have uploaded images to the gallery and the thumbnails used to show. But now when i upload i get no thumbnail.
The image uploads fine but there is a broken link for the thumb.
Can anyone help me fix this as it for customers website which relies on a portfolio.
Thank you

batigolix’s picture

Regarding #14:

The path didnt work for me.

It was:
/admin/config/media/file-types/manage/image/file-display

Not:
/admin/config/media/types/manage/image/display

Apart from that: bloody great fix that saved me tons of time!