notice: Undefined property: stdClass::$mimemail_textonly in /*****/*****/public_html/sites/all/modules/mimemail/mimemail.module on line 152.

The above notice is shown in user profiles with the 6.x-dev release dated Feb 8

CommentFileSizeAuthor
#5 mimemail.module.patch510 bytesjoelstein
#3 mimemail.module.patch545 bytesjoelstein

Comments

jerdavis’s picture

Status: Active » Postponed (maintainer needs more info)

I'm unable to reproduce, what modules do you have in use?

Jer

vm’s picture

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

Oddly enough, I can't reproduce now that I've turned error reporting back on. closing issue until such time I can reproduce myself. My apologies.

joelstein’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new545 bytes

It's very easy to reproduce. Edit a user which has not been saved since you installed MimeMail. They won't have that setting attached to their user account.

The attached patch fixes this.

sgabe’s picture

I think we can set the default value to 0 here, irrespectively of the value of the mimemail_textonly variable.

joelstein’s picture

StatusFileSize
new510 bytes

Sounds good to me.

sgabe’s picture

Title: notice: Undefined property: stdClass::$mimemail_textonly » Set starter default value for plain text user reference
Status: Needs review » Fixed

Committed to 6.x-1.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.