[TYPO3-dev] Problem in class.t3lib_page.php / getDomainStartPage
Dmitry Dulepov
dmitry.dulepov at gmail.com
Mon Nov 3 13:30:07 CET 2008
Hi!
Stefan Geith wrote:
> 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 ?
Please, check the Install tool => database analyzer. I am sure you
are missing one new column...
--
Dmitry Dulepov
TYPO3 translations support
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog:
http://typo3bloke.net/post-details/max_os_x_use_php_help_in_chm_format/
More information about the TYPO3-dev
mailing list