Imagecache Not Creating the View Cart Image

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

I have my site up and running, www.hugamonkey.com. But have just discovered that on my live host the imagecache module will not create the thumbnail for the View Cart page. On my local machine the imagecache module creates the View Cart thumbnail when the View Cart page is loaded, but on the live host it does not.

I have verified that the directory permissions are set to 775, just like the product, product, category & thumbnail.

Any ideas?

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Is cart listed as a preset in the imagecache settings? This would cause the original image to be displayed in the cart page (I think so, anyway). This can happen if you enable the product module before the cart module, and it's something I need to fix.

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

Yes the cart preset is listed. I've tried flushing the images with no success. Presently the Cart View page does not show any images. It works on my local machine server, XAMPP, apache, PHP5, MySQL.

Thanks for your help.

AttachmentSize
cart.PNG9.3 KB
Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Is there anything in the page source where the images should be? I don't suppose you've done anything funny with TAPIr or the theme of the cart, have you? Just seems funny that only one imagecache call would stop working and not all of them.

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

I just tested and all of the presets have stopped working Sad

Cart theme has not been changed other than CSS changes in my master theme file.

There is an image placeholder calling for the file. If I create the thumbnail manually and FTP it then everything works fine.

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Which user or group owns the imagecache folder and subfolders? If it's not the apache daemon, then imagecache can't do its job. It seems to me that the folders belong to root when they are first made, or maybe they get the permissions data from the files directory. I can't really remember what I've seen, and it's probably system-specific anyway.

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

Problem was the "files/tmp" directory permissions. They were set to 755 instead of 777. Working now.

Lyle, thanks for all your input.

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Funky.

Guess I need to add that to my Imagecache troubleshooting checklist.

Posts: 67
Joined: 08/10/2007

I didn't even notice the /files/tmp folder at all... was it supposed to be there in the first place?

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

Yes. The tmp directory is essentially a staging area for several modules.

Posts: 15
Joined: 09/14/2007

I moved my current project to a live site and have this issue (works on the MAMP install),

I have changed the permissions for the imagecache directory and also with thumbnail and thumbnail/files directories to 777 (from 755). I changed the thumbnail* permissions to test this specifically. My imagecache presets still do not resolve after flushing (are not created) for any presets.

I am a little stuck...

Paralleling Miso, i see no files/tmp folder (on the live server and MAMP)

Tips anyone??

EDIT
I found out the solution to my problem here - http://drupal.org/node/89841#comment-208987

My tmp directory was /Applications/MAMP/tmp/php based on my importing the dbase from a local MAMP install

I assume an error would have been listed in the logs if i had looked...

Have posted here in case others have similar troubles Eye-wink