Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Exception/Flow/1273753083

From TYPO3Wiki
Jump to: navigation, search
This page belongs to the Flow Team (category Flow)

notice - Note

Login and contribute! If you encountered this exception, please help others
by providing information about how you got
this error. Especially if you have a solution,
please add it to this page!
Package: Flow
Subpackage: Fluid
Versions:
Class: F3\Fluid\Core\Parser\SyntaxTree\AbstractNode
Method: evaluateChildNodes(F3\Fluid\Core\Rendering\RenderingContext)
Author: Sebastian Kurfürst <sebastian@typo3.org>, Bastian Waidelich <bastian@typo3.org>
Message: Cannot cast object of type "..." to string.
Description: You are trying to access an object (e.g. \DateTime) in a fluid template directly, but you can only output strings, or objects implementing the __toString() method.
Possible solutions:  For \DateTime is to use the Fluid#f:format.date viewhelper, for abritary objects you need to implement __toString or write an own viewhelper.

User contributed notes:
Your comment could have

  • Screenshot
  • Link to another Exception or a wiki-page
  • link to a bugtracker-entry, to the API/ PHP-code

notes