Hallo liebe Leute,
ich bräuchte bei folgender Sache einmal Rat & Hilfe:
Bei der Verwendung von tt_news (Vers. 2.5.2) und mbl_newsevent (Vers. 2.4.1) möchte ich, dass die Marker ###EVENT_FROM_DATE### ###EVENT_TO_DATE### nicht ausgegeben werden, wenn die Felder leer sind (Termin auf Anfrage).
Da die Felder in der DB mit einer 0 gefüllt werden, erscheint ansonsten das berüchtigte Datum 01.01.1970.
Mit folgendem Typoscript gelingt dies auch:
plugin.tt_news.mbl_newsevent {
date_stdWrap.ifEmpty.wrap = |
}
Allerdings beschwert sich die dann die Datei "class.tslib_content.php" und wirft im Fehler-Protokoll sehr oft diese Fehlermeldung aus:
Core: Error handler (FE): PHP Warning: strftime() expects parameter 2 to be long, string given in /html/typo3_src-4.5.15/typo3/sysext/cms/tslib/class.tslib_content.php line 2571
Die entsprechende line 2571 ist in dieser Funktion (class.tslib_content.php):
2571: $content = ($conf['strftime.']['GMT'] ? gmstrftime($conf['strftime'], $content) : strftime($conf['strftime'], $content));
/**
* strftime
* Will return a formatted date based on configuration given according to PHP strftime/gmstrftime properties
* Will return gmstrftime when the property GMT returns true
*
* @param string Input value undergoing processing in this function.
* @param array stdWrap properties for strftime.
* @return string The processed input value
*/
public function stdWrap_strftime($content = '', $conf = array()) {
$content = ($conf['strftime.']['GMT'] ? gmstrftime($conf['strftime'], $content) : strftime($conf['strftime'], $content));
$tmp_charset = $conf['strftime.']['charset'] ? $conf['strftime.']['charset'] : $GLOBALS['TSFE']->localeCharset;
if ($tmp_charset) {
$content = $GLOBALS['TSFE']->csConv($content, $tmp_charset);
}
return $content;
}
Ich nehme an, dass eine Ausgabe im "strftime" Format erwartet wird und deshalb die Fehlermeldung kommt.
Kann jemand helfen?
Danke und viele Grüße
Thorben :o)