Damned, that was a long search to find out why imagecache was not working on my hosting server! I wrote watchdogs and drupal_set_message everywhere in the imagecache.module file but never found out why it wasn't working...

Until I saw that I got 'file not found' errors in my apache error-logs, only then I suspected nothing was wrong with imagecache itself but probably some rewrite_mod problem. After that it still toke me some time to find out that there's another .htaccess file in the 'files' subdirectory. That one was the cause: it was an older version with 'RewriteEngine off' in it... Deleting that file and letting drupal recreate it was enough to make the whole imagecache system work.

Maybe it could be a good idea to have imagecache.install check the .htaccess version and eventually delete it to have drupal recreate it or have this problem discribed in the README file of the module.

Comments

Deciphered’s picture

You, my friend, are a bloody champion.

I've spent more than enough time trying to track down the cause of this problem and you finally solved it for me.
Thank you so much.

Sivert Almvik’s picture

You, my friend, are a bloody champion.
I've spent more than enough time trying to track down the cause of this problem and you finally solved it for me.
Thank you so much.

I couldn't find any words to express what I feel right now, so I steal the ones from the chap above.

Thanks!

dopry’s picture

Status: Active » Fixed
cialog’s picture

you made my day !

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

planetology’s picture

I suspect my problem is the same, because imagecache isn't creating the directories under the 'files' directories that I see on my local testing system. But deleting .htaccess under the 'files' directory didn't work for me; it was never recreated by Drupal. Is there anything else I need to do (like uninstall and reinstall imagecache)?

alexmoreno’s picture

same problem, i can´t find the way to make this working... Imagecache is not creating the directories and presets

panji’s picture

Version: 5.x-1.3 » 6.x-2.0-beta1

same problem here :( , i can´t find the way to make this working too... Imagecache is not creating the directories and presets :(

alexmoreno’s picture

i found the problem. I was using a template for this type of content. You must use the correct varibles. Simply disable the template for this content type and try it.

fictionindustries’s picture

This solved my problem:

http://drupal.org/node/224913

creativelabel’s picture

Deleting the .htaccess file solved my problem. Thanks.