[TYPO3-dev] Problem in class.t3lib_page.php / getDomainStartPage

Stefan Geith typo3dev2008.nospam1 at geithware.de
Mon Nov 3 12:37:26 CET 2008


Hi Devs,

when creating a new test-site with 4.3, I stumbled over these errors:

<snip>
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL 
result resource in ...typo3_src-4.3/t3lib/class.t3lib_db.php on line 819

Warning: mysql_free_result(): supplied argument is not a valid MySQL 
result resource in ...typo3_src-4.3/t3lib/class.t3lib_db.php on line 846
</snip>

I tracked this down to class.t3lib_page.php / function getDomainStartPage:

<snip>
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(...,
		'pages,sys_domain',
		...);
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
$GLOBALS['TYPO3_DB']->sql_free_result($res);
</snip>

If there are no records in sys_domain, this will fail ...
So there should be a
    if ($res) { ... }
Right ?

Could not find something in bugtracker nor devlist about this.
Did anyone else experience this error ?

-

Stefan






More information about the TYPO3-dev mailing list