开发者

Drupal Imagecache not working

I created an Imagecache setting that just resizes to 125px wide. First issue is that the开发者_如何学JAVA preview image is 404.

Then I want to print out an image via

<?php print theme('imagecache', 'imported_image', $node->picture, 'test', 'test',  $attributes);  ?>

'imported_image' being the preset and $node->picture is a correct path. The html prints out ok but the path it's trying load the image from does not exist. In sites/default/files/imagecache there is no folder with the name of the preset. Flushing the preset does nothing. The imagecache folder is writeable by everyone. This is on MAMP.

Anyone know what the issue could be?


Imagecache does not work when friendly url's are off. If this is the case, it can not 'find' the path to its folder in sites/default/files. When I turned them on, the folder with the name of the setting was created ok. The Imagecached images don't appear in here though. I'm putting it down to switching dev from Win to Mac, as a few people suggested on the Drupal forums.

posting last comment as an answer for ease in finding


Try to enable Lighttpd's "url.rewrite-if-not-file" directive I posted it right here:

http://www.warp1337.com/content/solved-lighttpd-drupal-7-imagecache-images-are-broken-errorhandler404

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜