Le 08/04/2013 16:21, Félix Defrance a écrit : > Bonjour ! > > Me revoila avec un problème concernant le script > sync_members_ldap2dolibarr.php cette fois. > > La syntaxe d'exécution en cli est différente de > sync_users_ldap2dolibarr.php mais est plus cohérente avec le "usage". > > * www-data@santana:~$ php > scripts/members/sync_members_ldap2dolibarr.php arthur 0 > > Avec l'autre script (user donc), il fallait mettre : > > * www-data@santana:~$ php scripts/user/sync_users_ldap2dolibarr.php now > > On se demande d'ou viens l'utilité de ce "now", enfin pourquoi pas, > mais il serait bien d'avoir une cohérence, d'une par avec le "usage" , > et d'autre par entre les scripts. > > Pour en revenir, a mon problème initial, voici le résultat de > l'exécution du script members :
Les paramètres sont uniformisés avec la 3.4 > [....] > MemberCreate # yvesm: login=yvesm, fullname=Yves MEUNIER, datec= --> > Cannot add or update a child row: a foreign key constraint fails > (`dolibarr`.`llx_adherent`, CONSTRAINT `fk_adherent_adherent_type` > FOREIGN KEY (`fk_adherent_type`) REFERENCES `llx_adherent_type` (`rowid`)) > [.....] > Des erreurs ont été trouvées. On rollback les modifications. Le 2eme paramètre ne peut etre 0. Il doit s'agit d'un id/ref de type d'adhérent existant (menu - adhérent - types d'ahérent) > > Quelqu'un pour m'aider à debug? > > Merci beaucoup. > -- > =================================================================== > Felix Defrance - Easter-eggs > 44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité -- Eldy (Laurent Destailleur). EMail: [email protected] Web: http://www.destailleur.fr Dolibarr (Project leader): http://www.dolibarr.org To make a donation for Dolibarr project via Paypal: [email protected] AWStats (Author) : http://awstats.sourceforge.net To make a donation for AWStats project via Paypal: [email protected] AWBot (Author) : http://awbot.sourceforge.net CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
_______________________________________________ Dolibarr-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/dolibarr-user
