vhs icon indicating copy to clipboard operation
vhs copied to clipboard

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

Open tastensolo opened this issue 3 years ago • 4 comments
trafficstars

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!

tastensolo avatar May 10 '22 14:05 tastensolo

Should be solved already with version 6.1.1

NamelessCoder avatar May 10 '22 14:05 NamelessCoder

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

tastensolo avatar May 11 '22 08:05 tastensolo

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 avatar Jul 13 '22 08:07 kiwi2101

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

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

solves the issue

kiwi2101 avatar Jul 19 '22 07:07 kiwi2101

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

NamelessCoder avatar Jul 22 '23 14:07 NamelessCoder

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

andreknieriem avatar Sep 06 '23 08:09 andreknieriem

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

NamelessCoder avatar Sep 06 '23 09:09 NamelessCoder