CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #26846

adminMailComment throws exception

Added by Felix Nagel about 2 years ago. Updated over 1 year ago.

Status:New Start date:2011-05-17
Priority:Must have Due date:
Assignee:Dmitry Dulepov % Done:

0%

Category:Bug
Target version:1.1.2 Estimated time:0.25 hour
Votes: 1 (View)

Description

With v1.1.1 there was a change in file pi1\widgets\blogList\class.singleFunctions.php in function adminMailComment:

'From: ' . $this->conf['adminsCommentsEmail']

to

'From: ' . $this->conf['adminsCommentsEmailFrom']

but the config adminsCommentsEmailFrom is never set. Thats why swiftmailer throws an error.

History

Updated by Michael Lykke over 1 year ago

Felix Nagel wrote:

With v1.1.1 there was a change in file pi1\widgets\blogList\class.singleFunctions.php in function adminMailComment:

[...]

to

[...]

but the config adminsCommentsEmailFrom is never set. Thats why swiftmailer throws an error.

In the t3blog/pi1/widgets/blogList/setup.txt we have lines 28 to 33:

        # send email notification about received blog comments to admin ?
        mailReceivedCommentsToAdmin = 1
        adminsCommentsEmail = {$plugin.tx_t3blog_pi1.blogList.adminsCommentsEmail}
        adminsCommentMailTemplate = EXT:t3blog/pi1/widgets/blogList/adminemail.txt
        approved = 1
        catLinkDivider = {$plugin.tx_t3blog_pi1.blogList.catLinkDivider}

I changed this to

        # send email notification about received blog comments to admin ?
        mailReceivedCommentsToAdmin = 1
        adminsCommentsEmail = {$plugin.tx_t3blog_pi1.blogList.adminsCommentsEmail}
        adminsCommentsEmailFrom = {$plugin.tx_t3blog_pi1.blogList.adminsCommentsEmailFrom}
        adminsCommentMailTemplate = EXT:t3blog/pi1/widgets/blogList/adminemail.txt
        approved = 1
        catLinkDivider = {$plugin.tx_t3blog_pi1.blogList.catLinkDivider}

This seems to have fixed the error. Can anyone please confirm?

Updated by Felix Nagel over 1 year ago

Confirmed, but adminsCommentsEmail is the old configuration value. We should make sure its backward compatible.

Also available in: Atom PDF