Ecodev / newsletter

TYPO3 extension to send newsletter
https://extensions.typo3.org/extension/newsletter/
25 stars 26 forks source link

Error when sending newsletter from command line - UriBuilder.php / Uncaught TYPO3 Exception rtrim() #167

Closed matthiaswe closed 5 years ago

matthiaswe commented 5 years ago

Running send newsletter command with scheduler on command line throws an exception, while running scheduler from backend works fine:

/usr/bin/php ./html/typo3/sysext/core/bin/typo3 scheduler:run

Uncaught TYPO3 Exception rtrim() expects parameter 1 to be string, boolean given thrown in file ./typo3/typo3_src-8.7.19/typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php in line 181

Issue seems to be missing http get context in cli mode. Solution is to create a proper context if not running from frontend.

Environment: