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.
I've tried uninstalling and reinstalling and each time I try to install 7.x-2.0 beta I get this message:
Fatal error: Call to undefined function commerce_coupon_conditions_component_name() in /home/username/public_html/sites/all/modules/contrib/commerce_coupon/commerce_coupon.rules_defaults.inc on line 64
Comments
Comment #1
dtisom CreditAttribution: dtisom commentedI receive a similar error as dgdrupler with 7.x-2.0-beta2 and have uninstalled and reinstalled as well.
Fatal error: Call to undefined function commerce_coupon_type_create() in /mnt/sites/all/modules/commerce_coupon/commerce_coupon_ui.module on line 89
Comment #2
dpolant CreditAttribution: dpolant commentedThese are two separate issues:
@dtsom - coupons 2.x does not have a "commerce_coupon_ui" module, so you should turn it off.
@dgdrupler - I could not reproduce this on 2.x-beta2. Out of curiosity, are you installing via drush or the UI?
Comment #3
dpolant CreditAttribution: dpolant commentedClosing due to inactivity.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI was trying to install commerce_coupon_fixed_amount and commerce_coupon_userpoints which both use commerce_coupon 1.x
Comment #5
unqunq CreditAttribution: unqunq commentedI can confirm that I got this today as well. I installed a new D7 version using drush I pulled down all the commerce modules needed. WhenI got to Coupon I got this:
I guess that call in the install file is not needed anymore?
EDIT: I realised this is for the fixed amount module. Same error shows up for commerce_coupon_pct.
Comment #6
ninag CreditAttribution: ninag commentedHi I just got this same error message using version "commerce_coupon-7.x-2.0-beta4".
"Fatal error: Call to undefined function commerce_coupon_type_create() in /home/thegro26/public_html/sites/all/modules/commerce_coupon/commerce_coupon_ui.module on line 89"
I'm a complete novice to all this stuff. And it has locked me out of the site, i can't seem to get to anything except the cpanel via the hosting.
How do i fix this? Help would be greatly appreciated!
Thanks,
Comment #7
unqunq CreditAttribution: unqunq commented@ninag try deleting the module files. If you get more errors try disabling the module in your database. Read through this issue to get an idea on how to do it: https://www.drupal.org/node/1413302
Comment #8
ninag CreditAttribution: ninag commentedIf i delete the entire "commerce_coupon" module folder from modules folder in the cpanel? i get anohter error:
"Fatal error: require_once(): Failed opening required '/home/thegro26/public_html/sites/all/modules/commerce_coupon/includes/commerce_coupon.controller.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thegro26/public_html/includes/bootstrap.inc on line 3186"
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commenteduse drush rr
http://drupal.org/project/registry_rebuild