Hi,

I am using NG 6.x-3.0 alpha2, and the images in the gallery are shown as a thin gray bar, as attached.

Any ideas?

Thanks.

CommentFileSizeAuthor
gallery.jpg308.44 KBforedoc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dddave’s picture

Clean urls enabled?

Did you double check the permissions? Not only for the content types but also for the fields and imagecache presets?

foredoc’s picture

I am with site admin account. Should not be a permission problem, right?

scroogie’s picture

No, not in that case. But dave is right, did you check clean urls? Node Gallery uses imagefield and imagecache, so its most probably not a problem in node gallery. If you look at the HTML code of the page you can see the URL of the image. Please try to visit that URL directly.

foredoc’s picture

I am using clean url, and when I try to visit the URL of the image in the HTML code, only see a white screen.

Thanks.

foredoc’s picture

In the URL, it is looking for the image in:

sites/all/files/imagecache/node-gallery-thumbnail

folder,

However, there is no "node-gallery-thumbnail" folder under "imagecache".

Any ideas why?

Thanks.

scroogie’s picture

Yes, imagecache does not work. Perhaps this can help: http://drupal.org/node/224913

foredoc’s picture

It is wired, the link in the URL points to:

sites/all/files/imagecache/node-gallery-thumbnail/a.jpg

However, the actual location of this file is:

sites/all/files/a.jpg.

Frustrating...

scroogie’s picture

This is normal foredoc! Its the way imagecache works. It uses Apache's mod_rewrite to get the file request, parses the name of the preset out of the path (node-gallery-thumbnail) and then creates the thumbnail in that path. Please read the page that I linked in the former post, it explains all this and how you can troubleshoot that. For example, check the .htaccess, etc.

foredoc’s picture

Problem fixed by enable ImageAPI GD2 module, as suggested by:

http://drupal.org/node/280144#comment-1594528

Any idea why could this happen?

Thanks.

scroogie’s picture

Status: Active » Fixed

imagecache requires at least one of the ImageAPI implementations to be enabled, but the module system should have noticed that. Perhaps ImageAPI Imagemagick was enabled but didn't work? I'm happy you solved the problem, though.

Status: Fixed » Closed (fixed)

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

wyocrook’s picture

Enabling GD2 solved it for me as well. What a relief!