admin/modules:
Image enabled.

admin/store/settings/products:
Lightbox2 is selected as product image widget.

admin/reports/status :
Module and theme update status Up to date
GD library PNG support 2.0
GD library rotate and desaturate effects 2.0

Warning:
Images -> Click here to automatically configure the following items for core image support:
The Image file field has not been created for products.

When I click on the link I am redirected to admin/store/settings/products/defaults. The page display errror: “The website encountered an unexpected error. Please try again later.”

admin/reports/dblog :
Notice: Undefined index: field_image_cache in uc_product_uc_store_status() (line 990 of /sites/all/modules/ubercart/uc_product/uc_product.module).

FieldException: Attempt to create an instance of a field field_image_cache that doesn't exist or is currently inactive. in field_create_instance() (line 453 of /modules/field/field.crud.inc).

I am crawling through settings, hope will figure something out.
Any help is welcome.

Comments

longwave’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

This is not strictly an Ubercart issue, images are handled by other modules outside of Ubercart's control.

Did you follow all the instructions at http://drupal.org/node/1144136 when upgrading?

ronline’s picture

Status: Postponed (maintainer needs more info) » Needs review

@thx for feedback longwave.

Agree about the images. The field_image_cache was an additional field created for product preview.
Yes I have followed the upgrading instruction but the field apparently “got lost” during upgrades.

Here's how I've fixed my issue.
I've added a new field “field_image_cache” type “Image” through admin/structure/types/manage/product/fields. It doesn't bring the images back but take care of the warnings. I've set the widget to “Media file selector”, now I will have to edit all products and re-attach the existing images.

longwave’s picture

Status: Needs review » Fixed

I guess this is fixed then, though we don't know what the real issue was. If you still have a backup of your database from before the upgrade, you might want to try again, and post in the CCK issue queue if you are still having trouble, as that module is responsible for field migration.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ocamp’s picture

I was getting this error. CCK migrate fixed it http://drupal.org/node/1144136

philsward’s picture

Issue summary: View changes

The problem is from left over D6 variables.

To remove the errors:

1) Create a backup of your database
2) Download and install variable_debug
3) Go to the Variable Debug report /admin/reports/variable-debug
4) Search for and "remove" the following variables:

uc_image_
uc_image_product
uc_image_product_kit

This will remove the errors.

5) Disable, uninstall and delete Variable Debug
6) Done

"If" you are using an image field other than what UC creates (uc_product_image) then you will notice at the bottom of the store status page a warning stating: The Image file field has not been created for products.. You can safely ignore this.