imagecache and .htaccess in files directory

trogie - September 23, 2007 - 14:39
Project:ImageCache
Version:6.x-2.0-beta1
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

Deciphered - September 26, 2007 - 04:32

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

Sivert Almvik - October 23, 2007 - 21:45

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!

#3

dopry - December 6, 2007 - 16:28
Status:active» fixed

#4

stefan_sick - December 9, 2007 - 20:30

you made my day !

#5

Anonymous - December 23, 2007 - 20:33
Status:fixed» closed

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

#6

planetology - September 27, 2008 - 21:56

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

urwen - October 1, 2008 - 10:11

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

#8

panji - October 9, 2008 - 13:46
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 :(

#9

urwen - November 4, 2008 - 17:45

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.

 
 

Drupal is a registered trademark of Dries Buytaert.