I get this error when updating a workflow status.
warning: Invalid argument supplied for foreach() in webform_confirm_email.module on line 29.
Drupal reports page said "Successfully sent email to me@society.fr" but i didn't receive anything.
Erratum: I receive emails
I also get a notice of type "DEBUG CONFIRM EM" and with message "email type:"
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_confirm_email_updated20120503.zip | 12.31 KB | cocoggu |
Comments
Comment #1
cocoggu commentedAfter some research, I find it was not because of workflow but because i send mail during workflow process.
So on line 29, foreach loop was trying to access to webform['emails'] which didn't exist in this case.
So I test if this table was setted at the beginning of the
webform_confirm_email_mail_alterfunctionHere is the new beginning of the function:
...and it works like a charm.
Comment #2
matthias_mo commentedplease get the latest git version, the code has changed quite drastically since.
Comment #2.0
matthias_mo commentedErratum about emails reception