in2code-de / powermail

This is the official repository of the TYPO3 extension powermail! Powermail is a well-known, editor-friendly, powerful and easy mailform extension for TYPO3
https://in2code.de
88 stars 174 forks source link

No mail on first submit after clearing TYPO3 cache #976

Closed fiedomedia closed 8 months ago

fiedomedia commented 8 months ago

When I clear TYPO3 cache within backend or console the first submit of a powermail form does not send a confirmation mail to the receiver. I get a success message and the submitted values are stored in the database. After a page reload or going back to the form and submitting it a second, third, etc. time the mail is sent as usually.

Tested with

After debugging and digging into the code the bug is caused by this change: https://github.com/in2code-de/powermail/commit/f209418bb00262b8f4b04fd0ec549c71af8b2fe9 When I remove the line the sending of mails works as desired.

markusbraje commented 8 months ago

I can confirm this. The TYPO3 log says "[CRITICAL] request="712f0c9826de4" component="In2code.Powermail.Controller.FormController": Mail could not be sent - ["Section \"main\" does not exist."]"

nilsingwersen commented 8 months ago

This is related to this issue https://github.com/in2code-de/powermail/issues/974

mschwemer commented 8 months ago

Thanks for your report.

It's fixed in version 12.2.0