in line 90 c:\wamp\www\mysite\sites\all\modules\rules\modules\
when I try to add text in non english on the "Send an order notification e-mail" - drupal commerce, - I get error when I complete the process.
in line 90 c:\wamp\www\mysite\sites\all\modules\rules\modules\
Undefined index: pending in rules_action_mail()
There is a solution for that?
whats wrong?


rszrama’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I doubt this is a bug, but I'll leave it in the queue just in case. Please export the entire Rule and paste it in here.

ntigh52’s picture

Hi Ryan.
I think that this is the bug posted on !
About the rule, - is: "Send an order notification e-mail" that comes with drupal commerce module. (default).

{ "commerce_checkout_order_email" : {
    "LABEL" : "Send an order notification e-mail",
    "PLUGIN" : "reaction rule",
    "WEIGHT" : "4",
    "REQUIRES" : [ "rules", "commerce_checkout" ],
    "ON" : [ "commerce_checkout_complete" ],
    "DO" : [
      { "mail" : {
          "to" : [ "commerce-order:mail" ],
          "subject" : "Order [commerce-order:order-number] at [site:name]",
          "message" : "Thanks for your order [commerce-order:order-number] at [site:name].\n\nIf this is your first order with us, you will receive a separate e-mail with login instructions. You can view your order history with us at any time by logging into our website at:\n\n[site:login-url]\n\nYou can find the status of your current order at:\n\n[commerce-order:customer-url]\n\nPlease contact us if you have any questions about your order.",
          "from" : ""

I cant add / change the text inside the "message" field.
Hope that this issue will fix,

rszrama’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Ok, let's see if it gets answered in the Rules queue before opening a duplicate issue here. I don't know why you'd be getting an undefined index error in that function, but if it isn't a known issue to Rules then you're going to have to trace down which variable in that function is trying to use the non-existent "pending" index or provide a step-by-step tutorial to reproduce the issue on a new install of Commerce Kickstart 1.x.

greenmother’s picture

ntigh52, try to clear language field in action that sending message.

ntigh52’s picture

Thanks a lot.
solve the issue!
Thanks again.

ntigh52’s picture

Status: Closed (duplicate) » Closed (works as designed)
rfay’s picture

I'm seeing this too. Don't see an actual answer here...

It looks to me like this is #1490136: Send mail action assumes i18n is in use and prodcues a non-fatal error in the Rules queue...

kiliweb’s picture

#4 solve the issue.

patoshi’s picture

#4 works.... just emptied this field in rules send email:

if this worked for anyone else, please post below so we can confirm that it works.