7 replies [Last post]
peej's picture
Offline
Joined: 03/19/2009
Juice: 5
Was this information Helpful?

I am trying to get images working. I have these modules installed:

ImageAPI 6.x-1.5
ImageCache 6.x-2.0-beta8
ImageField 6.x-3.0-beta2
Thickbox 6.x-1.2

And the latest version of Ubercart installed 6.x-2.0-beta5

When I go to admin/store
I get this Image Status 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.)

I Click and get these errors:


* user warning: Duplicate entry 'field_image_cache' for key 1 query: INSERT INTO drup_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/noideare/public_html/noidea/includes/common.inc on line 3422.

* user warning: Duplicate entry 'field_image_cache-product' for key 1 query: INSERT INTO drup_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/noideare/public_html/noidea/includes/common.inc on line 3422.

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

With the same Image Status message at the bottom.
When I go to create a product there is no image option.

I've read everything I could find in the Ubercart documentation and can't find a solution. Any help would be appreciated!

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Image support problems

Get the latest dev version of Ubercart from http://drupal.org/project/ubercart. Imagefield's beta broke the code that adds the default image field because it's now using the wrong settings. Delete the image field from the product type and add it again with the link in the status message table.

peej's picture
Offline
Joined: 03/19/2009
Juice: 5
Re: Re: Image support problems

Upgrading to the dev version seems to have worked. I still got the mysql warnings when I ran the status message link but images work now.
Thank you.

chum's picture
Offline
Joined: 02/27/2009
Juice: 151
Lyle, Rather than use the

Lyle,

Rather than use the latest dev version of UberCart, is there a version of ImageCache that will work with Ubercart 6.x-2.0-beta5?

kthull's picture
Offline
Joined: 01/05/2009
Juice: 87
Re: Re: Image support problems

Any suggestions if the latest dev version, removing and readding the image field (and even flushing/readding the imagecache settings) doesn't work either?

drupal 6.10
ubercart 6.x-2.x-dev
CCK 6.x-2.2
filefield 6.x-3.0-beta3
imageapi 6.x-1.5
imagecache 6.x-2.0-beta8
imagefield 6.x-3.0-beta3
(etc)

Sam_RiteTimeDirect's picture
Offline
Joined: 10/20/2008
Juice: 96
What error are you getting

kthull,

Are you getting an error when you try to upload the file, or are you not able to see the image input field?

If you are getting an error, what is it?

Sam

kthull's picture
Offline
Joined: 01/05/2009
Juice: 87
Re: What error are you getting

The little spinning progress icon spins for all eternity and no file is uploaded. No error messages are posted to the screen.

kthull's picture
Offline
Joined: 01/05/2009
Juice: 87
*bump*

*bump*

I've verified in my UC2.x dev version that the patch is, in fact, in place, but still can't get beyond the ceaseless spinning progress icon. When I hit save, sometimes it hangs, sometimes it throws the errors that have been dealt with in other threads suggesting Image API GD2 wasn't enabled, but mine is enabled. Disabled, uninstalled, reinstalled and updated filefield, imagefield, imageapi and imagecache all to the latest, but still no luck.

Any ideas? I was hoping to hit launch this weekend but lost most of the day installing/uninstalling/testing.

Not sure if this an indicator of anything, but I'm also using contemplate and with earlier versions, the field_image_cache was available in the variable list for the teaser/body but now the only image field available is $node->picture, which also doesn't show anything.

-Kevin