[TYPO3-german] TYPO3 4. loginnews
Joachim Streit
jstreit at ditnetwork.de
Wed Mar 7 11:55:25 CET 2007
Hallo Liste,
hat jemand von euch schon loginnews bei der Version 4.1 hin bekommen?
Fatal error: Call to a member function on a non-object in
/usr/typo3_src-4.1/t3lib/class.t3lib_page.php on line 975
dieser code hagel Fehlermeldungen wenn ich ihn in einem ext_tabels.php
einbaue:
if (!t3lib_div::_GET('loginRefresh')) {
if (t3lib_extMgm::isloaded('tt_news')) {
require_once(PATH_t3lib.'class.t3lib_page.php');
$lConf = unserialize($TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY]);
$table2 = 'tt_news';
$enableFields = t3lib_pageSelect::enableFields($table2);
$pid = intval($lConf['login_news_pid']);
$limit = intval($lConf['login_news_limit']);
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $table2,
'pid='.$pid.' '.$enableFields, '', 'crdate DESC', $limit);
if ($GLOBALS['TYPO3_DB']->sql_num_rows($res)) {
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'][] = Array (
'date' => strftime ('%e. %B %Y', $row['datetime']),
'header' => $row['title'],
'content' => nl2br($row['bodytext'])
);
}
}
}
}
In den Versionen 4.0.x und 3.8.x lief das - schnüff.
Ich gehe übrigens nicht davon aus dass es sich um einen bug handelt .....
Danke für Tipps
Joachim
More information about the TYPO3-german
mailing list