[TYPO3-project-formidable] Problem with using <compiledatasource> inside LISTER

Paweł Bandura gawelx at gmail.com
Mon Jun 11 22:32:38 CEST 2007


Jerome Schneider pisze:
> Hello !
> 
> I tried your xml and found the bug in formidable, I think.
> There's a missing variable initialization on array $this->aLabels
> 
> Add this code on line 16 of api/base/dh_lister/api/class.tx_dhlister.php
> 
>     var $aLabels = array();
> 
> This removes all the errors.

Hi Jerome
Thanks very much for help :]
Adding this variable initialization removed 3 of 4 warnings, but 
unfortunately this one warning message still shows up:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL 
result resource in 
D:\TYPO3_4.1.1\htdocs\Konsultacje\t3lib\class.t3lib_db.php on line 987

Once again I got my query as simple as it could be to make sure it isn't 
the problem, but even if there was two text fields from one table int 
the query - the message still was there.

I don't know if it's a FORMidable problem - you wrote that this removes 
all the errors, so I assume you don't get this warning.
I'm using FORMidable Revision 55 (HEAD).

> 
> There's also a small typo in your xml, in DATE renderlet ; <datetime /> 
> has to be declared inside the <data /> tag, like this:
> 
> <renderlet:DATE name="data_term" label="Data">
>   <data>
>     <datetime format="%A %n%d-%m %Y" />
>   </data>
> </renderlet:DATE>

Yes, of course, my mistake :]

Best regards
Pawel


More information about the TYPO3-project-formidable mailing list