Bug #24279

ContentObject is not passed to View in FLUIDTEMPLATE

Added by Martin Helmich almost 9 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-02
Due date:
% Done:

0%

TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In the FLUIDTEMPLATE cObject, no instance of the tslib_cObj class is passed to the created view. This renders most of the Fluid ViewHelpers that you might want to use (e.g. the ImageViewHelper, or maybe some of the *LinkViewHelpers) useless, causing them to abort with fatal errors:

"Fatal error: Call to a member function getImgResource() on a non-object in /path/to/typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php on line 107"

The attached patch fixes the problem. However, I am not sure whether my solution is good style. This issue affects both the "cms" and "fluid" system extensions; I hope this is the right place for it.

(issue imported from #M16654)

fluidtemplate_cobj.diff View (2.18 KB) Administrator Admin, 2010-12-02 21:02

History

#1 Updated by Christian Kuhn over 6 years ago

  • Category deleted (Communication)
  • Status changed from New to Resolved
  • Target version deleted (0)

imho, this was solved for core 4.5 with #11520

#2 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF