I tried to explain that to Joce, but I guess he did not catch the issue.
( I have no error, just a bab behaviour )
so, more info about that below :
I - you have a config.xml file auto generate with your component, by j-cook.
II - you install your component.
// here is the problem
III - if you do not open the Param Popup and do not save them at first, params
won't be recorded in the table #__extensions. You can check, Params field is empty {}
in my case I set [IMAGES] as default directory in the config.xml, but, because I did not recorded the Params with the Param Popup, the code :
return array(
'DIR_PEDIGREES_PHOTO' => $config->get("upload_dir_pedigrees_photo", "[COM_SITE]" .DS. "files" .DS. "pedigrees_photo") .DS,
returns [COM_SITE] instead of [IMAGES].
And when the first item with a picture is saved, even if you save Params, it's dead !
So I have to remove photos_directories from [COM_SITE] to [IMAGES] and could solved this issue.
Hopping it is clearer ...
Marc.