powermail
powermail copied to clipboard
The cObject Viewhelpers not working in RTE with TYPO3 12.4
If I add an inline VH in an RTE field these error occours:
(1/1) TypeError TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::getContentObjectRenderer(): Argument #1 ($request) must be of type Psr\Http\Message\ServerRequestInterface, null given, called in /var/www/html/vendor/typo3/cms-fluid/Classes/ViewHelpers/CObjectViewHelper.php on line 130
at TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper::renderStatic(array('data' => null, 'typoscriptObjectPath' => 'lib.test', 'currentValueKey' => null, 'table' => ''), object(Closure), object(TYPO3\CMS\Fluid\Core\Rendering\RenderingContext))
Same problem here: https://stackoverflow.com/questions/78168005/typoscriptobjectpath-throws-error-in-powermail-12 the error is only thrown in the frontend output not in the mail templates. See: https://github.com/in2code-de/powermail/blob/a6e5d927d74ba2454821484b57601958a53cbb72/Classes/Utility/TemplateUtility.php#L98
Seems to be caused in TYPO3 v12 by "Breaking: #98377 - Fluid StandaloneView does not create an Extbase Request anymore"
I had the same problem when using f:cObject in the RTE for sender mail content (powermail 12.3.1, TYPO3 12.4.14).
This patch helped in my usecase: powermail-fix-cObject-viewhelper-in-rte.patch
I had the same problem when using f:cObject in the RTE for sender mail content (powermail 12.3.1, TYPO3 12.4.14).
This patch helped in my usecase: powermail-fix-cObject-viewhelper-in-rte.patch
Thanks, this worked also for me.