18 replies [Last post]
PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Was this information Helpful?

I broke something and my product images are no longer showing with the product. They upload ok and can be seen in Edit mode, but not View mode. I'm using Imagecache and Thickbox. Presets that I have are cart, product, product_full, product_list, uc_category, uc_thumbnail. Thanks in advance for any suggestions.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Product Images No Longer Showing

I forgot to mention that I can still see the images on the previous products that were set up a few days ago, but the images are no longer appearing on the new products being set up.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Product Images No Longer Showing

Still waiting... Does anyone have any suggestions to help me out?

manatwo's picture
Offline
Joined: 02/19/2008
Juice: 235
Re: Re: Product Images No Longer Showing

Any errors in watchdog? Any changes to your theme?

Homskillit's picture
Offline
Joined: 06/21/2009
Juice: 62
Re: Re: Re: Product Images No Longer Showing

works now

Dano
Tribal Tattoos @ www.DanoTats.com

adamo's picture
Offline
Getting busy with the Ubercode.
Joined: 02/17/2009
Juice: 229
Re: Product Images No Longer Showing

@PatW: Sounds like a problem with imagecache. I had a similar problem. See my blog post about it for details: http://adamo.org/web-stuff/drupal/images-missing-drupal-ubercart/. Basically you need to make sure the files and directories the imagecache module is creating are getting created with the appropriate permissions. In my case, changing the umask for PHP solved the problem permanently.

artatac's picture
Offline
Joined: 06/11/2009
Juice: 79
Re: Re: Product Images No Longer Showing

I have a similar problem with Drupal 6 and Ubercart 2.> I downloaded the latest versions of the two and used the uberdrupal profile installation all worked fine. In an effort to document the steps needed. I tried it again and no thumbnails in the catalogue (but working in the product area because I created my own image cache thumbnail and main presets. But no uc_thumbnail preset and others are there. My question is what automated process creates these and what are the requitements to be in place to ensure this step does not fail.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Re: Product Images No Longer Showing

Thank you Adamo! The permissions on my default/files/imagecache was 755. I changed it to 775 and everything is working again. I deleted a bunch of products on 6/22 and flushed my imagecache presets afterwards, so that must have been the culprit. I'm not sure I'm entirely understanding the "Flush" process, but at least it's working again. Smiling

adamo's picture
Offline
Getting busy with the Ubercode.
Joined: 02/17/2009
Juice: 229
Re: Re: Re: Product Images No Longer Showing

That will correct the problem for any imagecache folders that have already been created. However you will probably find that the next time imagecache has to create a folder or file, it will get created wither 755 for permissions. If that happens, your umask for Apache/PHP is probably set to 002. It needs to be set to 022 in order for new files and directories to be created with 775 for permissions. Where you change the umask setting depends on your Apache/PHP configuration. I believe mod_php will use whatever is set for the umask in Apache's config. For suPHP the umask is set in it's own config file: suphp.conf.

Flushing the imagecache just deletes all of your cached images. Each cached image will be recreated the next time a page is loaded that displays that particular image via imagecache.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Re: Re: Re: Product Images No Longer Showing

I moved my test site to a live site at a different web host provider and now I'm back to images not showing again for my products. I just don't understand why this Imagecache has to be so complicated. There are many posts from people experiencing similar problems and there seems to be so many variables to try to get it to work correctly.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Re: Re: Re: Re: Product Images No Longer Showing

Voila! They're working again, but after trying different things off and on all day long, I have no clue why.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Hello I just noticed that I

Hello

I just noticed that I have 2 entries for GD library appearing on my Status report:
GD library bundled (2.0.34 compatible)
GD library bundled (2.0.34 compatible)

In admin-build-modules there's only one ImageAPI GD2 module appearing in Image Cache. I'm only finding one copy of the imageapi and imagecache modules in my sites/all/modules directory.

Could this be causing my intermittent problems? How do I fix it?

Fasttracks0's picture
Offline
Joined: 07/11/2009
Juice: 9
PatW wrote: Voila! They're
PatW wrote:

Voila! They're working again, but after trying different things off and on all day long, I have no clue why.

I'd love to know what fixed your problem... I'm unable to get any images to show up in the product list; however, the product images shows when you view the product... I've recently migrated this website from Drupal 5 and Ubercart to Drupal 6 and Ubercart 2... The website is down while i work these issues...

If I can't solve the problem soon I'm going to revert back to Drupal 5 and Ubercart!!!

I've done whats been mentioned above by all and have had zero success... Any IDEAS? Also I upgraded all ImageCache related modules to the DEV rel with no avail!!!

Fasttracks0's picture
Offline
Joined: 07/11/2009
Juice: 9
UPDATE: After two days of

UPDATE:

After two days of searching I found a thread with a hard to read post that fixed my PROBLEM!!!! YAY!!!!

Original post: From http://www.ubercart.org/forum/support/9612/catalog_images_not_appearing_...

nakedruner96 wrote:

I am having the exact same problem with no luck for the past 3 weeks. Bumping this thread hoping someone has an answer.

Edit: I Finally got it working.. I deleted the Image field from the product in content management-> content types -> manage fields I then went back to the auto config in store administration and reran it. It authenticated fine and all is well. I hope this works for you as I had the exact same issue you describe.

---------------------
Long short....
Go to Content management-> content types -> fields -> Product -> (REMOVE) "Image field_image_cache"
Then go to Store Administration (main no sub folders) scroll down locate under IMAGES "automatically configured by Ubercart" click it and enjoy the images!

This fixed my problem... Peace...

artscientific's picture
Offline
Joined: 05/20/2008
Juice: 19
Also try...

An easier fix to try first if you have lots of products (worked for us when upgrading from 5 to 6 and ubercart) is to go to Go to Content management-> content types -> fields -> Product -> and just check the Path under Image, ours had an extra /files which caused new images to be placed in files/files.

GL,
-Peter

splash112@drupal.org's picture
Offline
Joined: 04/01/2008
Juice: 413
@Fasttracks0 Worked for me!

@Fasttracks0
Worked for me! Thanks!

Not even needed to upload all images again. Just make sure you have the database backed up...

sistegraf's picture
Offline
Joined: 11/21/2008
Juice: 33
What worked for me

After upgrading from Drupal 5 to 6.14 and Ubertcart 1 to 2.0-rc7 no images where showing in product list or product page.

After reading this post what I did was:

1. Go to Administer/Content Types
2. For each product type you have, go to edit and then click in Ubercart Product Settings
3. There is a selection box under "Product image field:" with an "image" option. Select that and then save content type.
4. That was it, the images displayed the same as in the previous 5/1 version.

Hope this helps you as I was going to revert back to the old configuration.

Jason Brain's picture
Offline
Joined: 10/20/2009
Juice: 2
Re: What worked for me

sistegraf's response worked perfect for me.

Thank you.

partyman's picture
Offline
Joined: 10/18/2008
Juice: 23
Fastrack, you're a genius!

Fastreack, your answer solved hours of aggrevation on my part when I updated from Drupal 5 to 6!! This should be included on the Ubercart 2.0 upgrade guide.