powermail icon indicating copy to clipboard operation
powermail copied to clipboard

Error on form submission with powermail exactly 12.3.2

Open rupasix opened this issue 1 year ago • 11 comments

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. image

How to reproduce: Install powermail, Create form+page+textfield mail+submit, Create plugin with sender and thanks configured. Submit form in frontend

rupasix avatar May 10 '24 10:05 rupasix

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.

MKupi avatar May 12 '24 16:05 MKupi

we got that issue too today with exact this version.

BokuNoMaxi avatar May 13 '24 12:05 BokuNoMaxi

We too, exact same version. Proposed fix by @Runik51ua gives the same error.

abvdveen avatar May 13 '24 19:05 abvdveen

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.

tntrpsw avatar May 14 '24 09:05 tntrpsw

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.

Teisi avatar May 14 '24 11:05 Teisi

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.

fishgit avatar May 14 '24 14:05 fishgit

Confirmed here too, 12.3.1 works. 12.3.2 throws the error.

wrock avatar May 14 '24 15:05 wrock

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?

vnc-jboe avatar May 14 '24 21:05 vnc-jboe

Thx @Runik51ua for the PR.

The fix will be included in the next release.

mschwemer avatar May 21 '24 08:05 mschwemer

same here, downgrade on 12.3.1 works.

ingeniumdesign avatar May 21 '24 08:05 ingeniumdesign

@mschwemer when is the next release planned?

dennismetz avatar May 22 '24 12:05 dennismetz

same here, downgrade on 12.3.1 works.

linawolf avatar May 28 '24 12:05 linawolf

Same situation, works after downgrade to 12.3.1

w010 avatar May 29 '24 04:05 w010

True.

kszymukowicz avatar May 31 '24 12:05 kszymukowicz

Same, works after downgrade to 12.3.1

MohsinQK avatar Jun 03 '24 08:06 MohsinQK

Fixed in 12.3.4

Thanks for your patience.

mschwemer avatar Jun 03 '24 09:06 mschwemer