I am working from a fresh Drupal installation 6.9 and I am trying to get Ubercart up and running. Everything works fine except the image field. Here are the error messages:
In the Product Content Type, I see this:
"Image (field_image_cache) is an inactive image field that uses a Image widget."
When I try to run the image fix in the Ubercart status message area, I get this:
* user warning: Duplicate entry 'field_image_cache' for key 1 query: INSERT INTO content_node_field (field_name, type, global_settings, required, multiple, db_storage, module, db_columns, active, locked) VALUES ('field_image_cache', 'image', 'a:3:{s:10:\"list_field\";s:0:\"\";s:12:\"list_default\";s:1:\"0\";s:17:\"description_field\";s:0:\"\";}', 0, 1, 0, 'filefield', 'a:3:{s:3:\"fid\";a:2:{s:4:\"type\";s:3:\"int\";s:8:\"not null\";b:0;}s:4:\"list\";a:3:{s:4:\"type\";s:3:\"int\";s:4:\"size\";s:4:\"tiny\";s:8:\"not null\";b:0;}s:4:\"data\";a:2:{s:4:\"type\";s:4:\"text\";s:9:\"serialize\";b:1;}}', 0, 0) in /home/ryldealz/public_html/includes/common.inc on line 3425.
* user warning: Duplicate entry 'field_image_cache-product_kit' for key 1 query: INSERT INTO content_node_field_instance (field_name, type_name, weight, label, widget_type, widget_settings, display_settings, description, widget_module, widget_active) VALUES ('field_image_cache', 'product_kit', -2, 'Image', 'imagefield_widget', 'a:11:{s:15:\"file_extensions\";s:20:\"gif jpg jpeg png bmp\";s:9:\"file_path\";N;s:21:\"max_filesize_per_file\";N;s:21:\"max_filesize_per_node\";N;s:12:\"file_widgets\";N;s:14:\"max_resolution\";N;s:14:\"min_resolution\";N;s:3:\"alt\";N;s:10:\"custom_alt\";s:1:\"1\";s:5:\"title\";N;s:12:\"custom_title\";s:1:\"1\";}', 'a:4:{s:5:\"label\";a:1:{s:6:\"format\";s:6:\"hidden\";}s:6:\"teaser\";a:1:{s:6:\"format\";s:6:\"hidden\";}s:4:\"full\";a:1:{s:6:\"format\";s:6:\"hidden\";}i:4;a:1:{s:6:\"format\";s:6:\"hidden\";}}', '', 'imagefield', 1) in /home/ryldealz/public_html/includes/common.inc on line 3425.
* user warning: Duplicate entry 'field_image_cache' for key 1 query: INSERT INTO content_node_field (field_name, type, global_settings, required, multiple, db_storage, module, db_columns, active, locked) VALUES ('field_image_cache', 'image', 'a:3:{s:10:\"list_field\";s:0:\"\";s:12:\"list_default\";s:1:\"0\";s:17:\"description_field\";s:0:\"\";}', 0, 1, 0, 'filefield', 'a:3:{s:3:\"fid\";a:2:{s:4:\"type\";s:3:\"int\";s:8:\"not null\";b:0;}s:4:\"list\";a:3:{s:4:\"type\";s:3:\"int\";s:4:\"size\";s:4:\"tiny\";s:8:\"not null\";b:0;}s:4:\"data\";a:2:{s:4:\"type\";s:4:\"text\";s:9:\"serialize\";b:1;}}', 0, 0) in /home/ryldealz/public_html/includes/common.inc on line 3425.
* user warning: Duplicate entry 'field_image_cache-product' for key 1 query: INSERT INTO content_node_field_instance (field_name, type_name, weight, label, widget_type, widget_settings, display_settings, description, widget_module, widget_active) VALUES ('field_image_cache', 'product', -2, 'Image', 'imagefield_widget', 'a:11:{s:15:\"file_extensions\";s:20:\"gif jpg jpeg png bmp\";s:9:\"file_path\";N;s:21:\"max_filesize_per_file\";N;s:21:\"max_filesize_per_node\";N;s:12:\"file_widgets\";N;s:14:\"max_resolution\";N;s:14:\"min_resolution\";N;s:3:\"alt\";N;s:10:\"custom_alt\";s:1:\"1\";s:5:\"title\";N;s:12:\"custom_title\";s:1:\"1\";}', 'a:4:{s:5:\"label\";a:1:{s:6:\"format\";s:6:\"hidden\";}s:6:\"teaser\";a:1:{s:6:\"format\";s:6:\"hidden\";}s:4:\"full\";a:1:{s:6:\"format\";s:6:\"hidden\";}i:4;a:1:{s:6:\"format\";s:6:\"hidden\";}}', '', 'imagefield', 1) in /home/ryldealz/public_html/includes/common.inc on line 3425.
Does anyone know what I might be doing wrong? It is not an Ubercart issue apparently, but something to do with the Imagefield module or one of the related modules.
Comments
hi
I have one the same thing and its working .
In my opinion you should use Drupal 5 version because with Drupal 6 you will find beta version for ubercart and can you tell me which O/S are you using ?
_
Don't downgrade and use d5-- it will soon be end-of-life.
As for the error, a quick search found a similar issue -- looks like it might be an incompatibility with image module. Are you also using the image module? If so, try disabling/uninstalling it.
Image Issue in Ubercart
I'm having the exact same problem and nothing is fixing it....
Anybody???
I'm having this exact same problem. Did anybody get the error figured out or at least find another way to post images with your product?
Same problem in the Administer - Content Type - Product
I get the same problem in the Administer - Content Type - Product with the following messages:
This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
Image (field_image_cache) is an inactive image field that uses a imagefield_widget widget.
_
You guys may want to post over at the ubercart issue queue or ubercart.org. They're a pretty responsive group....
GO HERE TO FIX YOUR PROBLEM
Hey guys,
I had the exact same problem and was able to fix it by applying the patch found here: http://drupal.org/node/404352