3 replies [Last post]
kenetik's picture
Offline
Joined: 04/02/2009
Juice: 3
Was this information Helpful?

I am on a fresh install of Drupal 6.10 and Ubercart 2.x, every time I have tried to get images to work for products I get the same error.

I am going to my store administration and reading the status messages.

Quote:

Images 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.)

So I "click here" and each time I get the following error:

Quote:

Store administration

* 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 /usr/www/virtual/kenetik/www.crazybeerpong.com/includes/common.inc on line 3422.
* 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:12:{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: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\";s:13:\"default_image\";N;s:17:\"use_default_image\";N;}', '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 /usr/www/virtual/kenetik/www.crazybeerpong.com/includes/common.inc on line 3422.

* Created field Image.
* Default image support configured for Ubercart products using CCK and ImageCache.

Then I refresh and it still shows the same status message.

Please help!

PreviewAttachmentSize
userwarning.jpguserwarning.jpg319.29 KB
PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Error when trying to setup images for Ubercart 2.x

Have you figured this out yet? I've been dealing with the same issue for 3 days now. There are quite a few threads out here dealing with the same error, which is apparently a bug in the current Ubercart 2.0 beta5 release. Nothing I've tried has worked.

TwistedLincoln's picture
Offline
Joined: 04/06/2008
Juice: 128
Re: Re: Error when trying to setup images for Ubercart 2.x

I had a similar problem (couldn't activate image support), but without the error message. It just acted like it worked but it didn't.

I solved it by using the latest development snapshot instead of beta5. I was then able to install image support properly. If you aren't comfortable using the development version on your live site, replacing the files with those from beta5 works fine if done so after you install image support (that way the appropriate tables are created in the database).

---------------------------
Twisted Lincoln, Inc.
www.twistedlincoln.com/shop

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: Error when trying to setup images for Ubercart 2.x

Known bug with beta5. A quick search will reveal this and lead you to the solution:

http://www.ubercart.org/search/apachesolr_search/%22Duplicate+entry+%27f...

<tr>.