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
PHP Warning: Undefined array key "powermail_cleaner_enabled" in /var/www/site-uol12/vendor/in2code/powermail_cleaner/Classes/Controller/FormController.php line 23
Reproduce
Install powermail
setup a simple working form
install powermail_cleaner
Do not aktivate powermail_cleaner TypoScript static include
Load the form in the FE
Now the mentioned exception occurs.
in /var/www/site-uol12/vendor/in2code/powermail_cleaner/Classes/Controller/FormController.php line 23
if ((empty($this->settings['powermailCleaner']) || $this->settings['powermailCleaner']['deletionBehavior']==='') && ((int)$this->settings['powermail_cleaner_enabled'] === 1)) {
Should use ((int)($this->settings['powermail_cleaner_enabled'] ?? 0)) === 1
In the docs, there is an option described to not include the TypoScript static include:
https://github.com/in2code-de/powermail_cleaner/blob/v12/Documentation/Configuration/General.rst
However, when I do that, I get an exception:
Reproduce
Now the mentioned exception occurs.
in /var/www/site-uol12/vendor/in2code/powermail_cleaner/Classes/Controller/FormController.php line 23
if ((empty($this->settings['powermailCleaner']) || $this->settings['powermailCleaner']['deletionBehavior']==='') && ((int)$this->settings['powermail_cleaner_enabled'] === 1)) {
Should use
((int)($this->settings['powermail_cleaner_enabled'] ?? 0)) === 1
workaround
Activate static include, but disable:
plugin.tx_powermail.settings.setup.powermail_cleaner_enabled = 0
versions
The text was updated successfully, but these errors were encountered: