[TYPO3-dev] Problems using dynflex extension

Sven Dörndorfer sven at doerndorfer.de
Fri Jun 23 14:57:25 CEST 2006


Hi Thomas,

I put the configuration above in your dynaflex tutorial extension in 
the df_config.php file and the value of the image field in the databse 
is '/full_path-to_typo3/filedamin/mypics/image.jpg' instead of 
'image.jpg'.
With this value the thum is not generated, because it points to 
'../uploads/pics///full_path-to_typo3/filedamin/mypics/image.jpg'.

I just inserted a replace function in the hook 
processDatamap_postProcessFieldArray of t3lib_tcemain.php, which is 
working for me, but is not a nice solution.

> Hi Sven,
> 
>> I have a problem when using the dynaflex extension. When I create an 
>> image field (type='group' internal_type='file') in the $dca array, the 
>> image is save with full path and the thumb image is not created. There 
>> seems to be a problem with the uploadfolder.
>> 
>> here is my $dca configuration
>> 'config' => array (
>>     'type' => 'group',
>>     'internal_type' => 'file',
>>     'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
>>     'max_size' => 1000',
>>     'uploadfolder' => 'uploads/pics',
>>     'size' => '4',
>>     'minitems' => '0',
>>     'maxitems' => '10',
>>     'show_thumbs' => '1',
>> )
>> 
>> the value in the flexform is:
>> /full_path_to_typo3/fileadmin/mypics/image.jpg
> I can't imagine, that this is an issue of dynaflex. Maybe it would be 
> useful if you send me your config and I will see how the produced XML 
> looks like. For me, the config looks good so far.
> 
>> Another problem I found when using the extension is the definition of 
>> the flexform field in $TCA.
>> When I use the following XML datastructure
>> <T3DataStructure>'
>>     <meta>
>>         <langDisable>1</langDisable>'
>>     </meta>
>>     <ROOT>
>>         <type>array</type>
>>             <el>
>>                 <dummy></dummy>
>>             </el>
>>     </ROOT>
>> </T3DataStructure>
>> 
>> I get the following error when I save the form:
>> Fatal error: Cannot use string offset as an array in 
>> /full_path_to_typo3//typo3_src-4.0/t3lib/class.t3lib_tcemain.php on 
>> line 1973
>> 
>> But when I insert
>> <dummy>
>>     <TCEforms></TCEforms>
>> </dummy>
>> 
>> The it works fine.
> This field has to be removed before anything is saved. (method => 
> remove). Or you can use your solution (adding TCEforms). Anoher 
> approach would be to make a kernel patch that makes a check at the 
> respective place in the form rocessing.

Ok, thanks!

> 
>> 
>> Are there any dependencies for this extension? I just use a plain TYPO3 
>> 4.0 installation.
> No.
> 
> 
> Greets,
> Thomas

Regards,
Sven.





More information about the TYPO3-dev mailing list