You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is a conflict between powermailcaptcha and powermail_cleaner because they both XCLASS FormController.
Short term solution could be to add a "conflicts" in composer.json for this.
I had other extensions too where more than one extension tries to XCLASS. It is possible to solve this, but it is messy.
Perhaps there is another way to provide the behaviour without having to XCLASS? That would be the preferable solution in my opinion. FormController already sends an event. Ideal would also be if extensions which provide a captcha solution would not have to XCLASS.
Reproduce
Install powermail, powermail_cleaner und powermailcaptcha (composer require traw/powermailcaptcha ...)
Create a minimal working form
Fill out form and send
An Exception is thrown:
(1/1) Error
Call to undefined method TRAW\Powermailcaptcha\Controller\FormController::getContentObject()
in /var/www/t3intro12/vendor/in2code/powermail_cleaner/Classes/EventListener/FormControllerCreateActionBeforeRenderViewEventListener.php line 25
/** @var Mail $mail */
$mail = $event->getMail();
$hash = $event->getHash();
$mail->setPlugin($controller->getContentObject()->data['uid']);
$mail->setDeletionTimestamp($this->calculateDeletionTimeStamp($controller));
$event->setMail($mail);
VErsions
To verify issue, I used a "clean" installation with minimal configuration:
TYPO3 12.4.8
PHP 8.2
powermail 12.4.2
powermail_cleaner 5.2.0
powermailcaptcha 2.1.1
With following static includes:
The text was updated successfully, but these errors were encountered:
In that case, you could argue, it is the problem of traw/powermailcaptcha and not powermail_cleaner or powermail.
(Probably the extension author could use the event, which already exists. I will check).
However, I still think the multiple XCLASSes are probably not the best solution (especially since both extensions are from the same vendor). powermail_cleaner XClASSes 4.
I think there is a conflict between powermailcaptcha and powermail_cleaner because they both XCLASS FormController.
Short term solution could be to add a "conflicts" in composer.json for this.
I had other extensions too where more than one extension tries to XCLASS. It is possible to solve this, but it is messy.
Perhaps there is another way to provide the behaviour without having to XCLASS? That would be the preferable solution in my opinion. FormController already sends an event. Ideal would also be if extensions which provide a captcha solution would not have to XCLASS.
Reproduce
composer require traw/powermailcaptcha ...
)VErsions
To verify issue, I used a "clean" installation with minimal configuration:
With following static includes:
The text was updated successfully, but these errors were encountered: