Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on form submission with powermail exactly 12.3.2 #1024

Closed
rupasix opened this issue May 10, 2024 · 16 comments
Closed

Error on form submission with powermail exactly 12.3.2 #1024

rupasix opened this issue May 10, 2024 · 16 comments
Labels

Comments

@rupasix
Copy link

rupasix commented May 10, 2024

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

@MKupi
Copy link

MKupi commented May 12, 2024

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.

@BokuNoMaxi
Copy link

we got that issue too today with exact this version.

@abvdveen
Copy link

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

@tntrpsw
Copy link

tntrpsw commented May 14, 2024

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.

@Teisi
Copy link

Teisi commented May 14, 2024

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.

@fishgit
Copy link

fishgit commented May 14, 2024

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.

@wrock
Copy link

wrock commented May 14, 2024

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

@vnc-jboe
Copy link

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?

@mschwemer
Copy link
Collaborator

Thx @Runik51ua for the PR.

The fix will be included in the next release.

@ingeniumdesign
Copy link

same here, downgrade on 12.3.1 works.

@mschwemer mschwemer added the v12 label May 21, 2024
@dennismetz
Copy link

@mschwemer when is the next release planned?

@linawolf
Copy link

same here, downgrade on 12.3.1 works.

@w010
Copy link

w010 commented May 29, 2024

Same situation, works after downgrade to 12.3.1

@kszymukowicz
Copy link

True.

@MohsinQK
Copy link

MohsinQK commented Jun 3, 2024

Same, works after downgrade to 12.3.1

@mschwemer
Copy link
Collaborator

Fixed in 12.3.4

Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.