Error: warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /var/www/includes/database.mysqli.inc on line 329.
warning: preg_match() expects parameter 2 to be string, array given in /var/www/sites/all/modules/mail_logger/mail_logger.module on line 294.
Modules:
Mail Logger 6.x-1.1 (same thing happens on 6.x-1.x-dev)
Rules 6.x-1.4
Token 6.x-1.15
I have a rule based on a content type. When it is saved the rule sends an e-mail to several arbitrary email addresses. The e-mails are sent successfully but I keep receiving the errors above. If I disable Mail Logger the errors no longer appear. I believe it is due to when the e-mail addresses are recorded by Mail Logger.
Please let me know what I can do to clear these errors.
Thanks!
Comments
Comment #1
JCB CreditAttribution: JCB commentedI am experiencing the same issue.
Not sure what the cause is.
I am also using rules.
However, my email is not being sent.
Not sure if this is related.
Comment #2
JCB CreditAttribution: JCB commentedok... my bad...
my email is also being sent; but I am also receiving the same error message in my log
Comment #3
gluebox CreditAttribution: gluebox commentedI too was receiving this error. jcback's description gave me the hint of where to look.
I have multiple sites in a shared environment. I am using triggered rules to generate HTML emails. Some sites worked fine with similar rules in place. For my site that generated an error, i was involving a mailing list into the rules. I discovered that within the rule settings HTML Email setup that I was setting both the From: and the To: email to the same address. Using unique addresses for these fields corrected the error.
Drupal community support rocks! Thanks cjback.
*Edit - forgot to mention, I'm on Drupal 6.
Comment #4
danisha CreditAttribution: danisha commentedDid no one got the solution for this issue.. I am experiencing the same error, although the mails are sent. Please someone post a solution here.
Comment #5
FranCarstens CreditAttribution: FranCarstens commented#3 Gave me a hint. I my rules I was sending an HTML email with the from and reply to as the site's default address (but I had typed it out). Removing this information cleared up the error. (Drupal 6)
Comment #6
NancyDru