Project

General

Profile

Actions

Bug #67595

closed

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

Added by Reinis Zumbergs almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2015-06-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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');
}


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #67544: FLUIDTEMPLATE fatal error when cachedClosed2015-06-17

Actions
Actions

Also available in: Atom PDF