imagecache does not create files on local test system

dsp1 - November 3, 2009 - 04:22
Project:ImageCache
Version:6.x-2.0-beta10
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I have installed imagecache on my production system and it works fine.
I could not get it working on my local test system.
I really need to get imagecache to work on my local system so I can do testing.

After uploading an image and saving a node drupal shows an error where the image should be.
"Error loading image: http://localhost/~xx/drupal/sites/default/files/imagecache/full/images/big.jpg"

Imagecache folder is totally empty. I tried to manually add the matching presets but they get wiped and the folder is empty again.

file system is set to sites/default/files

Any help would be greatly appreciated.

Status report shows:
Drupal 6.14
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
PHP 5.2.9
PHP memory limit 128M

#1

dsp1 - November 4, 2009 - 04:17
Version:6.x-2.0-beta9» 6.x-2.0-beta10
Component:Code» Documentation
Status:active» fixed

I got this fixed. I will post a documentation suggestion later.

#2

swappedsr - November 4, 2009 - 17:38

I have the exact same problem. The folders/images are not being created in imagecache where the source says the images should be. How did you fix this?

Thanks for the help.

Bob

#3

dsp1 - November 4, 2009 - 20:18
Status:fixed» needs review

Local install of imagecache

Rewrite must be working for imagecache to work.

go to the admin/settings/clean-urls to make sure rewrite is working.
once you can enable Clean URLs you know rewrite is working.
no need to turn on Clean URLs to get imagecache working, but you might want to enable Clean URLs since most production systems would use it.

go to the drupal root .htaccess (on a OS X you will need to show invisible files)
uncomment RewriteBase (ie remove the #)
and make it like RewriteBase /~useracct/drupal (if your local drupal install is in /Users/useracct/Sites/drupal/)

go to your files .htaccess ( /drupal/files or /drupal/site/default/files):
should only have:
Options None
Options +FollowSymLinks
(if it is a fresh drupal 6 install it should not need to be changed)

edit your httpd.conf:
(on OS X Leopard /private/etc/apache2/httpd.conf)
change from AllowOverride None to AllowOverride All
edit your useracct.conf
(on OS X Leopard /etc/apache2/users/useracct.conf)
change from AllowOverride None to AllowOverride All

Goto Clean URLs and you should be able to enable it now. Then edit one of your presets and the sample image should display.

#4

swappedsr - November 4, 2009 - 23:19

I have clean urls working, I have had this install of drupal 6.13 for a few months now, so it isn't a new install, just a new install of uber.

#5

BiggerBang - November 15, 2009 - 23:43

A similar solution to above, but doesn't need a change to your root .htaccess. Worked for me after HOURS of faffing with permissions, settings, all sorts...

http://drupal.org/node/536596

 
 

Drupal is a registered trademark of Dries Buytaert.