Bug #78326
closedFatal error: Call to a member function getViewHelper() on a non-object in template cache file
100%
Description
When using nested fluid in <f:layout> in a fluid template, like
<f:layout name="{f:cObject(typoscriptObjectPath: 'lib.layout')}" />
the cache file would get fatal error when parsing the layout name in line 178 in \TYPO3\CMS\Fluid\View\AbstractTemplateView::render(), because $self is not defined in the cache file.
After a few research, adding
\$self = \$this;
before line 98 in \TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler would get the error fixed, and the nexted fluid would be rendered correctly.
Updated by Bill Dagou about 8 years ago
Ya, I'm using v7.6.11 right now.
If so, can it be fixed in v7.6? I mean an easy fix.
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50288
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50289
Updated by Anonymous about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2a6884369759f524760662c7eaf08040d50e06b7.