Notice: Undefined index: in commerce_discount_default_rules_configuration() (line 26 of /home/xxxxx/domains/xxxxx.xx/public_html/sites/all/modules/commerce_discount/commerce_discount.rules_defaults.inc).
I've deleted all undefined tokens from rules and the message still apppear after run cron.
The problem also occur in Drupal 7.17
I did a fallback to Drupal 7.17 > I had a backup of the dB and the files and after run cron the error also appears.
Line 26 of commerce_discount/commerce_discount.rules_defaults.inc is somthing about de $offer_type:
$type = $types[$discount->type];
$wrapper = entity_metadata_wrapper('commerce_discount', $discount->name);
$offer_type = $offer_types[$wrapper->commerce_discount_offer->getBundle()];
$rule
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | scrsconti.jpg | 84.24 KB | chirale |
Comments
Comment #1
VanessaM commentedI have drupal 7.21 installed and I am also getting this error when attempting to create a discount
Comment #2
chirale commentedSame here with Drupal 7.22. It seems it is displayed one error message per discount.
Comment #3
lsolesen commentedGuessing that this is a duplicate of #1875524: Fixed Amount / Percentage Fields not shown when adding a discount. Could you all try the patch in that issue - and if it solves it close this issue as a duplicate?
Comment #4
bojanz commentedYes, this is a duplicate.
Comment #4.0
bojanz commentedupdate: error not only in drupal 7.18 als in drupal 7.17