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

Flash messages not displayed if a redirect is configured in powermail plugin #1108

Open
sypets opened this issue Aug 26, 2024 · 0 comments
Open

Comments

@sypets
Copy link
Contributor

sypets commented Aug 26, 2024

Maybe this is not a bug, but this is not something I was not aware of before and it has caused problems in cases where there were errors but these were not displayed.

Perhaps its at least possible to document it.

Reproduce

  1. Create a working powermail form and include it in a plugin
  2. Configure the plugin correctly
  3. In the powermail plugin flexform, Configure a redirect page (tab "Submit Page": "Redirect to any other Page after submit". Use a page where there is not a powermail plugin

image

  1. In the FE fill out the form causing an error (e.g. with a wrong email-address)

Now, we should see the flashmessages, but we do not because we have been redirected to a page without a powermail plugin. If we then switch back to the form, we see the flash messages.

Versions

  • TYPO3: 12.4.18
  • powermail: 12.3.5

I am using a slightly patched powermail version, so the flash messages generally works (just not in this case), see also

Possible solution

I tested the following and they seem to solve the problem:

  • add a powermail plugin with an empty form on the redirect target page
  • OR in your sitepage, always show the flash messages by adding this to your main template:

<f:flashMessages queueIdentifier="extbase.flashmessages.tx_powermail_pi1"/>

I don't know what would be the best solution for powermail, perhaps it is possible to add this to the documentation, create another plugin just to show the flash messages or someone has a better idea.

Impact / severity of problem

Though we have a high throughput of powermail forms being used and it generally works great, the cases where it does not are quite time-consuming and problematic. In general, I would prefer it if the user gets a good error message and can either try again or report this. If no error is displayed, I am afraid, some problems might go undetected.

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

No branches or pull requests

1 participant