Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | 844690-uc_hotel-remove-uc_product-dependency.patch | 2.55 KB | mrfelton |
#2 | 844690-uc_hotel-remove-uc_product-dependency.patch | 2 KB | mrfelton |
Comments
Comment #1
mrfelton CreditAttribution: mrfelton commentedBasically 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.
Comment #2
mrfelton CreditAttribution: mrfelton commentedSince 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.
Comment #3
mrfelton CreditAttribution: mrfelton commentedActually, here is a slightly better one
Comment #4
larowlanCheers