Closed (cannot reproduce)
Project:
Ubercart Discount Coupons
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2012 at 21:37 UTC
Updated:
28 Mar 2018 at 22:09 UTC
Jump to comment: Most recent
Comments
Comment #1
longwavePlease follow the steps at http://drupal.org/node/158043 which will either lead you directly to the problem or at least show you an error message, which you can paste here if you need further help.
Comment #2
longwaveThis can be fixed by following the above steps, if you need more help please reopen.
Comment #3
oregonwebsiteservices commentedMany thanks for that very helpful reference. This is the error message:
Fatal error: Call to undefined function theme_uc_cart_block_content() in /home/sunsisters/public_html/sites/all/modules/uc_coupon/uc_coupon.module on line 1710
Where is that function supposed to be defined?
Comment #4
tr commentedComment #5
ParisLiakos commentedSame here with drupal 7.15 and latest stable version of ubercart
Quick fix:
Add this line before returning in
uc_coupon_theme_uc_cart_block_content()function in uc_coupon.module.module_load_include('inc', 'uc_cart', 'uc_cart.theme');Comment #6
wodenx commentedThe above patch shouldn't be necessary if you clear your theme registry.
Comment #7
ParisLiakos commentedi cleared it twice:/
Comment #8
wodenx commentedhm - very odd - something must be calling 'uc_coupon_theme_uc_cart_block_content()' directly -- i.e. without passing through theme(...), which handles including that file. can you put a debug-backtrace in there where you put the module_load_include() to find out how that's happening? alternatively, if "theme(...)" is being called, i guess it's possible that some other module is altering the theme registry -- try adding the following to theme.inc before line 1046
to verify that the file is listed.
Comment #9
ParisLiakos commentedsure i ll let you know, i wanted to debug further but there is a problem with ssh server, i ll need to wait till monday
Comment #10
wodenx commentedThanks!
Comment #11
tr commented