Bug #36306
Attachment fails with trunk version 2.7.0 producing fatal error in div2007
| Status: | Resolved | Start date: | 2012-04-18 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Stanislas Rolland | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Has patch: | No | |||
| Votes: | 0 |
Description
Setup: Typo3 v. 4.5.14, tx_srfeuserregister trunk version 2.7.0 rev. 60855, div2007 v. 0.8.2
Conditions: Registration needs to be confirmed by user and reviewed by admin
TS constants are set:
plugin.tx_srfeuserregister_pi1.enableEmailConfirmation = 1
plugin.tx_srfeuserregister_pi1.enableAdminReview = 1
If TS constants are set:
plugin.tx_srfeuserregister_pi1.enableEmailAttachment = 1
plugin.tx_srfeuserregister_pi1.file.attachmentFile = fileadmin/tos.pdf
frontend rendering reproducable fails when calling the URL delivered in the mail to the user asking for confirmation.
The following PHP error appears:
Fatal error: Call to undefined method t3lib_htmlmail::attach() in /.../typo3conf/ext/div2007/class.tx_div2007_email.php on line 189
Regards
Heiko Hänsge
Associated revisions
Fix bug #36306: Attachment fails with trunk version 2.7.0 producing fatal error in div2007
Fix bug #36306: Attachment fails with trunk version 2.7.0 producing fatal error in div2007
History
Updated by Franz Holzinger about 1 year ago
- Assignee set to Franz Holzinger
- % Done changed from 0 to 100
Fixed in div2007 version 0.9.0.
Updated by Heiko Haensge about 1 year ago
- Assignee deleted (
Franz Holzinger) - % Done changed from 100 to 0
That's a quick fix! Thanks, Franz.
Updated by Stanislas Rolland about 1 year ago
If $GLOBALS['TYPO3_CONF_VARS']['MAIL']['substituteOldMailAPI'] is set in the Install tool, the new mail API should be used and this error should not happen.
However, tx_srfeuserregister_email refers to undeclared global variables.
Updated by Stanislas Rolland about 1 year ago
Stanislas Rolland wrote:
If $GLOBALS['TYPO3_CONF_VARS']['MAIL']['substituteOldMailAPI'] is set in the Install tool, the new mail API should be used and this error should not happen.
However, tx_srfeuserregister_email refers to undeclared global variables.
Now fixed in SVN trunk.
Updated by Stanislas Rolland about 1 year ago
- Status changed from New to Resolved
- Assignee set to Stanislas Rolland
Updated by Heiko Haensge about 1 year ago
just checked using rev. 60915 and $GLOBALS['TYPO3_CONF_VARS']['MAIL']['substituteOldMailAPI']=1
Attachments are sent properly now.
Frontend rendering without any errors.
Issue resolved. Thanks!