imagecache and .htaccess in files directory
| Project: | ImageCache |
| Version: | 6.x-2.0-beta1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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.

#1
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.
#2
I couldn't find any words to express what I feel right now, so I steal the ones from the chap above.
Thanks!
#3
#4
you made my day !
#5
Automatically closed -- issue fixed for two weeks with no activity.
#6
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)?
#7
same problem, i can´t find the way to make this working... Imagecache is not creating the directories and presets
#8
same problem here :( , i can´t find the way to make this working too... Imagecache is not creating the directories and presets :(
#9
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.