FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
189 stars 228 forks source link

Error when switching on TYPO3 debug mode when using v:render.uncache #1756

Closed h-e-l-l-o-w-o-r-l-d closed 2 years ago

h-e-l-l-o-w-o-r-l-d commented 2 years ago

Hi,

I know problems with v:render.uncache have been already reported. But this is a bit different.

I get the following error when I switch on the TYPO3 debug mode in the frontend via typo3_debug_swicth

(1/1) Error Object of class TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext could not be converted to string in /var/www/intranet-ar/public/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php line 147

There are no view helper arguments provided and I even cleared the settings variable to make sure it's not releated to faulty arguments like written in some issues. Still no luck.

Of course only happens on pages where v:render.uncache is present. The pages work as expected with debug mode off.

What can I do?

TYPO3 10.4.23 VHS 6.0.5

Oktopuce commented 2 years ago

Same problem for me with v:render.uncache when I activate the Admin Panel in the Frontend.

Object of class TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext could not be converted to string

TYPO3 10.4.25 VHS 6.0.5

NamelessCoder commented 2 years ago

Almost certainly fixed with https://github.com/FluidTYPO3/vhs/commit/78bdaf50a20329f243cd755a12cb12f61d1ed901 but just in case you still have troubles, please ask for this issue to be reopened!

h-e-l-l-o-w-o-r-l-d commented 2 years ago

Works, thank you!

X-Tender commented 2 years ago

Can I apply this fix on the 6.0.5 Version? I currently cant upgrade the php to 7.4 which is required for the higher versions.

h-e-l-l-o-w-o-r-l-d commented 9 months ago

Hi,

@NamelessCoder can I ask for reopening this? The exactly same error happens again from 7.0.0 onwards and does not happen with 6.1.3.

UncacheViewHelper.php got some refactoring since 7.0.0, so it seems something went wrong here.

TYPO3 11.5.33 VHS 7.0.1 PHP 7.4