Fatal error: Call to undefined function uc_product_add_default_image_field() in .../uc_hotel/hotel_room_type/hotel_room_type.install on line 104

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Basically I wanted to enable only the hotel_room_type module so that I could start creating room nodes, but without actually installing Ubercart yet. There are no dependencies listed in hotel_room_type.info, yet hotel_room_type.module and hotel_room_type.install both call functions from uc_product. So, either uc_product needs to be listed as a dependency, or callls to those functions need to be wrapped in a function_exists() call.

mrfelton’s picture

Status: Active » Needs review
FileSize
2 KB

Since it looks like the only thing that uc_product is required for is to enable the product image field (which I don't want to use anyway), I created a patch that removed the dependency.

mrfelton’s picture

Actually, here is a slightly better one

larowlan’s picture

Cheers