While upgrading to Beta 9, I encountered the following fatal error:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://cod.localhost/update.php?op=selection&token=5POEIO0_5J8tRnBODolKTl324sjBnF5qLPmWDY1t5sY&id=549&op=do StatusText: OK ResponseText: Fatal error: Cannot redeclare commerce_order_compare_order_amount_build() (previously declared in /home/libertie/public_html/cod/profiles/cod/modules/contrib/commerce_discount/commerce_discount.rules.inc:318) in /home/libertie/public_html/cod/profiles/cod/modules/contrib/inline_conditions/inline_conditions.rules.inc on line 206

I was able to work around this error by wrapping numerous functions from commerce_discount/commerce_discount.rules.inc in conditional statements (eg "if (!function_exists('commerce_order_compare_order_amount_build')) { }"). However, discounts and coupons are no longer working on my site. When attempting to redeem a coupon, I get "Unable to redeem coupon". I've already checked and the permissions are correct. Any ideas?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

squidliberty’s picture

As described at https://www.drupal.org/node/2480279, the solution is to upgrade inline_conditions to the latest dev release. This should be rolled into COD.

squidliberty’s picture

Status: Active » Needs review

  • japerry committed 107ac60 on 7.x-1.x
    Issue #2482831 by squidliberty: update inline_conditions module to fix...
japerry’s picture

Status: Needs review » Fixed

Fixed! Thanks for the report. Also re-rolling Beta9 so these features are included for those who're incrementally upgrading.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.