When a user subscribes, an error is thrown to watchdog:

Warning: implode() [function.implode]: Invalid arguments passed in DefaultMailSystem->format() (line 24 of /home/content/23/7424523/html/modules/system/system.mail.inc).

Mail is sent with a subject line, but no body (empty message).

This error occurs when the array lm_paypal is trying to implode holds no values (but it should as its configured to send a message body)

CommentFileSizeAuthor
#1 lm_paypal_mail.diff387 bytestanickl

Comments

tanickl’s picture

StatusFileSize
new387 bytes

DefaultMailSystem->format() expects the message body to be an array. Currently, the message body is given as a string. Here is a patch that fixes the issue.

tanickl’s picture

Status: Active » Needs review
L-four’s picture

Status: Needs review » Closed (fixed)

This looks good, i'll have to make a simple test for emails
Commited!

john franklin’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Patch (to be ported)

Another one that I think needs to be backported.

buzzman’s picture

looks like the same patch can easily apply to 6.x-2.x-dev branch ... or is there something else ?