[Typo3-dev] DAM

ben van 't ende [netcreators] ben at netcreators.nl
Fri Oct 22 12:39:30 CEST 2004


Peter Niederlag wrote:
> Hi,
> 
> Wolfgang Klinger schrieb:
> 
>>  *hiya!*
>>
>>  On Wed, 20 Oct 2004, ben van 't ende [netcreators] wrote the following:
>>
>>> You have an error in your SQL syntax near ')) AND NOT tx_dam.deleted' 
>>> at line 8
>>> Warning: mysql_fetch_row(): supplied argument is not a valid MySQL 
>>> result resource in 
>>> /home/httpd/typo3_src-3.7.0/t3lib/class.t3lib_db.php on line 736
>>
>>
>>
>>  that's not very meaningful ;-) the quintessence (the sql statement) is
>>  missing...
>>
>>
>>> Any idea how to fix this?
>>
>>
>>
>>  ... but you can output that with setting ----
>> $GLOBALS['TYPO3_DB']->debugOutput = TRUE;
>> ----
>>  in the extension/plugin...
>>  and then someone might be able to help...
> 
> 
> That's why I suggested to set this in class.t3lib_db.php ;)
> Come on ben, you can do that, can't you? It's not really script-hacking. ;)
> Myself I found this very nice on my development-server, cause whenever 
> there is a problematic sql-statement I do get instant infos about it.

Hi Peter,

Haven't got a test-environment at the moment. I would have to put this: 
$GLOBALS['TYPO3_DB']->debugOutput = TRUE; in the extension. What file? I 
am sorry. I am not into this stuff. I can change lines ofcourse, but to 
me it is not logical where this should happen.

> 
> P.S.: Volker's suggestion sounds very likely to me...

that is not the cause. already have some cats.


later

ben
-- 
netcreators::creation and innovation
www.netcreators.nl - www.typo3.nl




More information about the TYPO3-dev mailing list