powermail icon indicating copy to clipboard operation
powermail copied to clipboard

The cObject Viewhelpers not working in RTE with TYPO3 12.4

Open t3touch opened this issue 1 year ago • 4 comments

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))

t3touch avatar Mar 08 '24 09:03 t3touch

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

lisardo2 avatar Mar 16 '24 15:03 lisardo2

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

adudtkowski avatar Apr 15 '24 11:04 adudtkowski

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.

mkoch1707 avatar Jun 10 '24 11:06 mkoch1707