Project

General

Profile

Actions

Bug #78326

closed

Fatal error: Call to a member function getViewHelper() on a non-object in template cache file

Added by Bill Dagou over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2016-10-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Claus Due over 7 years ago

Only an issue on 7.6, resolved on 8.0+.

Actions #2

Updated by Bill Dagou over 7 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.

Actions #3

Updated by Gerrit Code Review over 7 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

Actions #4

Updated by Gerrit Code Review over 7 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

Actions #5

Updated by Anonymous over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF