Imagecache MUST be enabled first so hardcoded presets all over ubercart code work properly

hanoii - July 3, 2009 - 15:44
Project:Ubercart
Version:6.x-2.0-rc3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

While investigating an issue (main product image not appearing on cart view), I found that, after properly setting the image field in the content type ubercart's settings the image was still broken because a 'cart' imagecache preset was being used but did not exist. I then noticed that all the presets are created on the specific hook_enable() functions of each module, so I disable/reenable them and got the presets again.

I have been following discussions about the aim of Ubercart 6.x not to have a dependency on any other third party modules, but when a module like imagecache is so heavily used, and with hardcoded presets, I would re-consider add it as a dependency. Function uc_product_get_picture() does nothing if imagecache does not exist. Even more, as the order of enabling them is important, at least there should be an entry somewhere along the README or project page where this is somehow more clear.

Looking forward to hearing some opinions, is ubercart.org a better place for this?

#1

TR - July 4, 2009 - 21:22

Did you set up image support using the link on the store status page that does everything automatically for you? Or did you manually add CCK image fields to your product content type? If you use the link, all the presets get created for you, even after the other Ubercart modules are enabled.

#2

rszrama - August 20, 2009 - 19:38

#3

giorgio79 - August 21, 2009 - 06:29
Status:active» fixed

Had a similar issue, namely no imagecache presets were created.

Went to admin/store

where it was signalling that presets are missing, and it autoreated them for me, after clickin Ok. :)

#4

System Message - September 4, 2009 - 06:30
Status:fixed» closed

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

#5

shunting - September 29, 2009 - 17:10

Where this text appears:

Product image support has been automatically configured by Ubercart.

It would sure be nice to have a link to where to go to change the configuration.

 
 

Drupal is a registered trademark of Dries Buytaert.