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

dtisom’s picture

I 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

dpolant’s picture

These 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?

dpolant’s picture

Status: Active » Closed (cannot reproduce)

Closing due to inactivity.

SocialNicheGuru’s picture

I was trying to install commerce_coupon_fixed_amount and commerce_coupon_userpoints which both use commerce_coupon 1.x

unqunq’s picture

I 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:

drush en commerce_coupon_fixed_amount -y
commerce_coupon_fixed_amount was not found.                                                                                                   [warning]
The following projects provide some or all of the extensions not found:                                                                       [ok]
commerce_coupon_fixed_amount
Would you like to download them? (y/n): y
Project commerce_coupon_fixed_amount (7.x-1.0-beta7) downloaded to                                                                            [success]
.../sites/all/modules/commerce_coupon_fixed_amount.
The following extensions will be enabled: commerce_coupon_fixed_amount
Do you really want to continue? (y/n): y
Drush command terminated abnormally due to an unrecoverable error.                                                                            [error]
Error: Call to undefined function commerce_coupon_type_create() in
.../sites/all/modules/commerce_coupon_fixed_amount/commerce_coupon_fixed_amount.install, line 18

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.

ninag’s picture

Hi 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,

unqunq’s picture

@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

ninag’s picture

If 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"

SocialNicheGuru’s picture