10 replies [Last post]
Insurrectus's picture
Offline
Spreading the word - Ubercart for president.
Joined: 08/22/2007
Juice: 364
Was this information Helpful?

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?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Imagecache Not Creating the View Cart Image

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.

Insurrectus's picture
Offline
Spreading the word - Ubercart for president.
Joined: 08/22/2007
Juice: 364
Re: Re: Imagecache Not Creating the View Cart Image

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.PNG 9.3 KB
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Imagecache Not Creating the View Cart Image

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.

Insurrectus's picture
Offline
Spreading the word - Ubercart for president.
Joined: 08/22/2007
Juice: 364
Re: Re: Re: Re: Imagecache Not Creating the View Cart Image

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.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Re: Re: Imagecache Not Creating the View Cart Image

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.

Insurrectus's picture
Offline
Spreading the word - Ubercart for president.
Joined: 08/22/2007
Juice: 364
Re: Re: Re: Re: Re: Re: Imagecache Not Creating the View Cart Im

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

Lyle, thanks for all your input.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Funky. Guess I need to add

Funky.

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

Miso's picture
Offline
Joined: 08/10/2007
Juice: 134
Re: Funky. Guess I need to add

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

Insurrectus's picture
Offline
Spreading the word - Ubercart for president.
Joined: 08/22/2007
Juice: 364
Re: Re: Funky. Guess I need to add

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

avolve's picture
Offline
Joined: 09/14/2007
Juice: 47
Re: Imagecache Not Creating the View Cart Image

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