FluidTYPO3 / vhs

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

v:render.uncache leads to PHP Warning: Undefined array key "controllerExtensionName" #1773

Closed tastensolo closed 11 months ago

tastensolo commented 2 years ago

Hi,

I get the following message with the TYPO3 v11 in PHP 8.1 with v:render.uncache partial="MiniBookmark"/>

PHP Warning: Undefined array key "controllerExtensionName" in /var/www/html/www/web/typo3conf/ext/vhs/Classes/View/UncacheTemplateView.php line 87

Thanks!

NamelessCoder commented 2 years ago

Should be solved already with version 6.1.1

tastensolo commented 2 years ago

Unfortunately that is not the case. VHS 6.1.1 is in use.

kiwi2101 commented 1 year ago

Hi, I get following error message with VHS 6.1.2, PHP 8.0.19 and v:render.uncache

PHP Warning: Undefined array key "extensionName" in /var/www/html/_htdocs/typo3/sysext/extbase/Classes/Mvc/ExtbaseRequestParameters.php line 154

kiwi2101 commented 1 year ago

comment out line 96 in FluidTYPO3\Vhs\View\UncacheTemplateView

$request->setControllerObjectName($conf['controllerContext']['controllerObjectName']);

solves the issue

NamelessCoder commented 11 months ago

Solved in dev-development. VHS 6.1.x will no longer be updated.

andreknieriem commented 10 months ago

But why? We are getting this on v11 LTS with latest vhs availabled. So how should we fix it, if we have a composer based installation and CI chain? This is a really user unfriendly answer

NamelessCoder commented 10 months ago

@andreknieriem You can either use dev-development temporarily as composer constraint for the dependency. Or you can apply a specific patch with composer-patches. Or you can wait for the next VHS version to be released (which will be v7.0).

Same as with any other composer dependency ;)