Hi

Iam using DRUPAL 5x and ubercart-5.x-1.7.tar, its installed well.

And also i installed the image support modules like

1. Content Construction Kit (CCK) (download CCK 1.10) Only the Content module is needed.
2. Image Field (download ImageField 2.1)
3. Imagecache (download ImageCache 1.7)
4. Thickbox (download Thickbox 1.2)

All the above modules are installed successfully and they are in enabled state.
But the problem is,

"The image for the product in the grid was not displayed. I uploaded the image, while adding the product. At the same time the image displayed in edit product section..But not displayed in the main cart page"

The visible Details in grid are:
1.Product name
2.Amount
3.Add to Cart Button

So kindly clear my problem..ASAP..

Regards
Manikandan.T

Comments

philly1’s picture

Many people are having this problem as am I, and it doesn't just exist with Drupal 5.x but also 6.x

My problem is in /admin/store I see the warning message:

Click here to automatically configure the following items for core image support:

* The Image file field has not been created for products.

(This action is not required and should not be taken if you do not need images or have implemented your own image support.)

When I attempt to automatically configure (which is a link to /admin/store/settings/products/defaults)
It sends me back to /admin/store

I have tried a few suggested work arounds and I have had no joy. Something so simple shouldn't take so much complex configuration when other "lame" shopping carts do this out the box!

This problem exists regardless, whether your using Grid view or not.

Does anyone have a concrete solution for this?

philly1’s picture

running this command in mysql seems to solve this particular issue after years of digging, dont know why this isn't done automatically????

INSERT INTO variable (name, value) VALUES ('uc_image_product', 's:17:"field_image_cache";');

mani8php’s picture

Thanks for your kind reply...

in which page we need to use this query..plz mentioned clearly....

philly1’s picture

This shouldn't be run on any page, but at the mysql command line prompt on your server if you have access. If not, you need to do this using something like PHPMyAdmin or MySQL Query Browser. If you can't get access to or use any of those, ask your host!

Nathan.Ray-1’s picture

You are a lifesaver! how did you manage to find that out?!?

Steve Dossett’s picture

This didn't solve my problem and returned the following message: #1062 - Duplicate entry 'uc_image_product' for key 'PRIMARY'

Any ideas?

roknrod12’s picture

I received the duplicate entry error as well. Anyone found anything else?

Imagecache is working
Image Upload is working
The link to set Image defaults is not working
Images don't display on the product page

Thanks,
rh

Update: Immediately after replying to this post, I went and flushed all caches and my images appeared! So, running the query above and flushing all caches solved my problem! Thanks for the post.

kpbowler’s picture

Hi, I got images working on my 6.x install by deleting the Image field for product and product kit.

Then I went back to the store admin page, and clicked the link in the error message, which re-created the Image fields.

I then went back into my nodes and uploaded the images again (shame, but as the CCK field was deleted, it has to be done), after this, the images appeared in all teh right places.

Hope this helps!

gowsalya N’s picture

I have the same problem and I received teh duplicate entry error as well.
HOw do I flush imgae cache ?

U mean clearing the table ?

jamesbenison’s picture

And this is smiling at me on a new migration from drupal 6.25 to 7.12.

Cheers