Gregor-Agnes / newsletter_subscribe

TYPO3-extension: Subscribe and unsubscribe to tt_address, generate static Link to unsubscribe (to use in Newsletter), automatically delete unconfirmed subscribers
https://extensions.typo3.org/extension/newsletter_subscribe
GNU General Public License v3.0
2 stars 5 forks source link

After confirm via email link: PHP Warning: compact(): Undefined variable $alreadySubscribed #88

Closed fischhase closed 1 week ago

fischhase commented 3 months ago

Typo3 12.4.15 newsletter_subscribe 6.1.1

Hi Gregor, after clicking the confirmation link in the subscription mail I got the error PHP Warning: compact(): Undefined variable $alreadySubscribed in /usr/www/.../typo3conf/ext/newsletter_subscribe/Classes/Controller/SubscribeController.php line 507

I added in line 467: $alreadySubscribed = false;

Now it works.

Thanks Martin

fhamelin commented 3 weeks ago

I have the same problem, everything works fine except the confirmation link.

@fischhase Maybe you could submit a pull request for the fix you proposed? If you don't have time I could provide one myself to speed things up.

Thanks

Gregor-Agnes commented 1 week ago

Should be fixed with 481276b2c6234020066094ad969a28dfd333772e