bihor / fp_newsletter

TYPO3 plugin for newsletter subscription and unsubscription. Used table: tt_address. A log is written.
https://extensions.typo3.org/extension/fp_newsletter/
GNU General Public License v3.0
6 stars 18 forks source link

Fatal error with cachable form action #74

Closed seirerman closed 1 year ago

seirerman commented 1 year ago

I get an error in the frontend if I try to register a mail adress with the recently implemented cachable form plugin:

TYPO3\CMS\Extbase\Mvc\Exception\InvalidActionNameException
The action "create" (controller "Fixpunkt\FpNewsletter\Controller\LogController") is not allowed by this plugin / module. Please check TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php / TYPO3\CMS\Extbase\Utility\ExtensionUtility::configureModule() in your ext_tables.php. 

If I set the same plugin back to the default value ("Newsletter: subscribe (and unsubscribe"), subscribing (and unsubscribing) works fine again. This happens with fp_newsletter 4.0.3 on TYPO3 10.4.36 an 11.5.24. I didn't set or change any of the other values in the plugin. They are all set through my own typoscript config.

seirerman commented 1 year ago

Found the "error": I used to set subscribeUid to the same page as the plugin for "Newsletter: subscribe (and unsubscribe)". This worked, because it actually uses the actions for new, create and verify.

But the cachable form plugin has to point to a different page containing the default plugin. So after placing the default plugin on a new page and letting the form plugin point to it, subscribing works.

That info was somewhat hidden in the manual and I didn't catch it at first.