[TYPO3-german] YAG - nach Update von YAG und pt_extbase Fehler in Single View

Arthur Koncar arthur.koncar at artkon.com
Wed Nov 2 00:52:38 CET 2011


Hallo,

in einer Kundeninstallation (Apache/2.2.8 (Ubuntu); PHP/5.2.4-2ubuntu5.17 mit Suhosin-Patch; mod_perl/2.0.3 Perl/v5.8.8; TYPO3 v4.5.5; extbase v1.3.1-devel; fluid v1.3.0) wird YAG für einen Bildserver eingesetzt.

Nach einem Update von YAG auf v 1.3.3 , pt_extbase auf v1.0.1 und pt_extlist auf v0.4.0 stellt YAG keine Einzelbilder mehr dar. Stattdessen erhält man im Frontend die Fehlermeldung:
"Oops, an error occured! Cannot cast object of type "DateTime" to string."

Das Protokoll im Backend meint dazu:
"Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1273753083: Cannot cast object of type "DateTime" to string. | Tx_Fluid_Core_Parser_Exception thrown in file /var/www/typo3_src-4.5.5/typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php in line 57"

Dieser Fehler trat erstmalig nach der Installation der Updates auf.

Im Wiki finde ich unter der Adresse http://wiki.typo3.org/Exception1273753083 Folgendes:
"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."

Sorry, aber das sagt mir gar nichts. Meine Fragen:

1. Wie lässt sich der Fehler eliminieren, ohne dass ich in die Standard Viewer von YAG eingreifen muss (die mit dem nächsten Update ja wieder überschrieben würden)?
2. Und wenn es schon Eingriffe geben muss, was muss ich tun? 

Vielen Dank für die Unterstützung und beste Grüße!

Arthur Konèar




More information about the TYPO3-german mailing list