Project

General

Profile

Actions

Bug #17135

closed

Update from 4.0.5 to 4.1.0 broke my site

Added by Martin Holtz about 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-03-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Fatal error: Call to undefined function: getmultiplegroupswhereclause() in /typo3_src-4.1/t3lib/class.t3lib_page.php on line 998

I do not know what happens by now, but perhaps there is an extension which is extending the t3lib_page.php? I do not know.

some suggestions where i should look for?

thanks,
martin

quick fix for me:

Line 998:

// $query.= $this->getMultipleGroupsWhereClause($field, $table);

// copying the code from getMultipleGroupsWhereClause

$memberGroups = t3lib_div::intExplode(',',$GLOBALS['TSFE']->gr_list);
$orChecks=array();
$orChecks[]=$field.'=\'\''; // If the field is empty, then OK
$orChecks[]=$field.' IS NULL'; // If the field is NULL, then OK
$orChecks[]=$field.'=\'0\''; // If the field contsains zero, then OK
foreach($memberGroups as $value)    {
$orChecks[] = $GLOBALS['TYPO3_DB']->listQuery($field, $value, $table);
}
$query.= ' AND ('.implode(' OR ',$orChecks).')';

(issue imported from #M5265)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #17180: tslib_cObj::enableFields() doesn't work in T3 4.1, 4.1.1Closed2007-04-03

Actions
Actions #1

Updated by Michael Stucki about 17 years ago

Try replacing $this->getMultipleGroupsWhereClause(...) with t3lib_pageSelect::getMul....

If that helps, then display the output of debug_backtrace() from within this function, and check where it has been called from.

- michael

Actions #2

Updated by Martin Holtz about 17 years ago

Thanks for help!

The error was in ext_tables.php, an code from the "TYPO3 Kochbuch" which shows the tt_news.

// original Code
require_once(PATH_t3lib.'class.t3lib_page.php');
$table = 'tt_news';
$enableFields = t3lib_pageSelect::enableFields($table);

// solved with that:
require_once(PATH_t3lib.'class.t3lib_page.php');
$table = 'tt_news';
$t3lib_page = new t3lib_pageSelect();
$enableFields = $t3lib_page->enableFields($table);

thanks michael!

gruss,
martin

Actions #3

Updated by Michael Stucki about 17 years ago

Hallo Peter, hier zur Info, falls Ihr mal eine aktualisierte Fassung des Buchs rausbringen wollt...

Actions

Also available in: Atom PDF