I've installed imagecache. I have enabled and working clear urls but imagecache doesn't work.

My code is
print theme_imagecache("thumb", $item["node"]->field_image_1[0]["filepath"])

the php code generate this html code:

<img src="http://www.antiquariamalda.com/files/imagecache/thumb/files/00002.jpg">

I have a the presset namespace called "thumb" with an scale action.

Is this a bug or i miss something?

Comments

lenart’s picture

I have exactly the same problem. I believe we're missing something. I think it would help if the README was written a bit more in details.

dopry’s picture

What happens when you try to load the src url in the browser?

carlitus’s picture

What happens when you try to load the src url in the browser?

It shows the home page.

dopry’s picture

You probably need to comment out the RewriteEngine Off and change Options None to Options +FollowSymlinks in the .htaccess file in your drupal files directory.

carlitus’s picture

I allready have a "Options +FollowSymLinks" (i think this is the Drupal default).

Ummm, a RewriteEngine Off? I need clean url's.

lenart’s picture

Dopry is right. You have to edit the .htaccess file in /files directory. Mine looked like this and I believe it worked.

# ** Originaly set by Drupal 
# SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
# Options None
# <IfModule mod_rewrite.c>
#   RewriteEngine off
# </IfModule>

# Modified for use with imagecache.module
Options +FollowSymlinks
carlitus’s picture

Status: Active » Closed (fixed)

Perfect!. The problem was i didn't know i needed to change the .htaccess in files directory.

Lot of thanks to all.