Issue Bug Closed

#67595Variable in f:layout name leads to fatal error on second page load

Reinis Zumbergs 06/18/15, 12:10 updated 10/19/17, 21:38

Description

After clearing cache the first page load generates the view, the second page load fails with the error.

Works in Typo3 7.2, doesn’t work in Typo3 7.3.

Template

<f:layout name="{layout}" />

Error message

Call to a member function getOrNull() on a non-object

Error triggered in generated fluid template file

public function getLayoutName(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
 return $currentVariableContainer->getOrNull('layout');
}

Reviews 2