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?
Comment | File | Size | Author |
---|---|---|---|
Screenshot from 2015-05-04 14:40:01.png | 141.12 KB | squidliberty |
Comments
Comment #1
squidliberty CreditAttribution: squidliberty commentedAs 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.
Comment #2
squidliberty CreditAttribution: squidliberty commentedComment #4
japerryFixed! Thanks for the report. Also re-rolling Beta9 so these features are included for those who're incrementally upgrading.