Error on form submission with powermail exactly 12.3.2
Typo3 - 12.4.4 Powermail: 12.3.2 PHP: Tested 8.2 and 8.3 Typo3 test instance without additional configurations - all is default.
Version 12.3.2 breaks form submission. It worked with 12.3.1
Exception while property mapping at property path "": It is not allowed to map property "answers". You need to use $propertyMappingConfiguration->allowProperties('answers') to enable mapping of this property.
How to reproduce: Install powermail, Create form+page+textfield mail+submit, Create plugin with sender and thanks configured. Submit form in frontend
I can confirm this issue after an update from TYPO3 9 to 12 and in this context with an update to powermail 12.3.2. After downgrading to powermail 12.3.1 form submission succeeded.
we got that issue too today with exact this version.
We too, exact same version. Proposed fix by @Runik51ua gives the same error.
I can reproduce the error using TYPO3 12.4.14 and powermail 12.3.2:
Exception while property mapping at property path "": It is not allowed to map property "answers". You need to use $propertyMappingConfiguration->allowProperties('answers') to enable mapping of this property.
Now i have this issue too. TYPO3 12.4.14 powermail 12.3.2
Nothing special: extensions installed -> created plugin on a page -> create a form with fields "email" and "send". Filled out receiver.name and receiver.email and receiver.subject in the plugin settings. All other options are default.
With powermail 12.3.1 this works fine.
Confirmed here. Downgrading to 12.3.1 works.
Another issue is: With 12.3.2 and redirect to answer page option set the error message does not appear but no email is sent. Downgrade to 12.3.1 solves this, too.
Confirmed here too, 12.3.1 works. 12.3.2 throws the error.
The error occured after updating from 12.3.1 to 12.3.2
The new function initializeCheckCreateAction calls the function reformatParamsForAction in the FormController at line 217. At this point the function reformatParamsForAction does not work correctly and misses to set the propertyMappingConfiguration correctly.
By removing this call in an XClass of FormController, powermail throws no error.
Is the reformatParamsForAction function call really needed?
Thx @Runik51ua for the PR.
The fix will be included in the next release.
same here, downgrade on 12.3.1 works.
@mschwemer when is the next release planned?
same here, downgrade on 12.3.1 works.
Same situation, works after downgrade to 12.3.1
True.
Same, works after downgrade to 12.3.1
Fixed in 12.3.4
Thanks for your patience.