Archives de la liste a​i​d​e​@p​a​h​e​k​o​.c​l​o​u​d​

Notice: Undefined property: stdClass::$login

team spipfactoy

27/12/2020 11:59:23

sur une instance garradin

lorsque  je souhaite creer un memebre j'ai droit a .........

qui peu m'aider sur  cette erreur

>
>   Une erreur s'est produite
>
>
>   PHP error
>
>
>     Notice: Undefined property: stdClass::$login
>
>
>       in
>      
phar:///home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin/plugins/welcome.tar.gz/lib/*Welcome.php*:/29/
>
> |*25*	$membre = new Membres; *26* *27*	$nouveau_membre = 
> $membre->get($params['id']); *28* _*29*	$login = 
> $nouveau_membre->{'login'} ;_ *30* $nom_bdd = 
> $nouveau_membre->{'nom_bdd'} ; *31* $pass =
$nouveau_membre->{'pass'} 
> ; *32* $url = $nouveau_membre->{'url'} ; *33* |
>
>
>         → Garradin\Plugin\welcome\Welcome::nouveauMembre /(2 arg.)/
>
> $params 	
> array(11) {
>    ["id"]=> int(88)
>    ["id_categorie"]=> string(1) "1"
>    ["numero"]=> string(2) "88"
>    ["nom"]=> string(17) "POUPARD Stéphane"
>    ["email"]=> string(23) "stephanepoupard@free.fr"
>    ["adres…
> 1 	
> NULL
>
>
>       in .../include/lib/Garradin/*Plugin.php*:/775/
>
>
>         → call_user_func_array /(2 arg.)/
>
> $function_name 	
> string(46) "Garradin\Plugin\welcome\Welcome::nouveauMembre"
> $parameters 	
> array(2) {
>    [0]=> array(11) {
>      ["id"]=> int(88)
>      ["id_categorie"]=> string(1) "1"
>      ["numero"]=> string(2) "88"
>      ["nom"]=> string(17) "POUPARD Stéphane"
>      ["email"]=> string(23) "steph…
>
> |*771*	{ *772*	continue; *773*	} *774* _*775*	$return = 
> call_user_func_array('Garradin\\Plugin\\' . $row->callback,
[&$params, 
> &$callback_return]);_ *776* *777*	if (true === $return) { *778*	return 
> true; *779*	} |
>
>
>       in .../include/lib/Garradin/*Membres.php*:/180/
>
>
>         → Garradin\Plugin::fireSignal /(2 arg.)/
>
> $signal 	
> string(14) "membre.nouveau"
> $params 	
> array(11) {
>    ["id"]=> int(88)
>    ["id_categorie"]=> string(1) "1"
>    ["numero"]=> string(2) "88"
>    ["nom"]=> string(17) "POUPARD Stéphane"
>    ["email"]=> string(23) "stephanepoupard@free.fr"
>    ["adres…
>
> |*176* *177* $db->insert('membres', $data); *178* $id = 
> $db->lastInsertRowId(); *179* _*180* 
> Plugin::fireSignal('membre.nouveau', array_merge(['id' =>
$id], 
> $data));_ *181* *182* return $id; *183* } *184* |
>
>
>       in .../www/admin/membres/*ajouter.php*:/38/
>
>
>         → Garradin\Membres->add /(1 arg.)/
>
> $data 	
> array(10) {
>    ["id_categorie"]=> string(1) "1"
>    ["numero"]=> string(2) "88"
>    ["nom"]=> string(17) "POUPARD Stéphane"
>    ["email"]=> string(23) "stephanepoupard@free.fr"
>    ["adresse"]=> string(19) "…
>
> |*34* { *35* $data[$key] = f($key); *36* } *37* _*38* $id = 
> $membres->add($data);_ *39* *40* Utils::redirect(ADMIN_URL . 
> 'membres/fiche.php?id='.(int)$id); *41* } *42* catch (UserException $e)
|
>
>
>     Context
>
> id 	1zxy2dig
> date 	2020-12-27T11:15:02+01:00
> os 	Linux
> language 	PHP 7.3.25
> environment 	development
> php_sapi 	fpm-fcgi
> remote_ip 	91.170.197.162
> http_method 	POST
> files_sent 	array(0) { }
> rootDirectory 
> /home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin

>
> garradin_data_root 
> /home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin

>
> garradin_version 	0.9.8.1
> url 	https://compta.sfanm.fr/admin/membres/ajouter.php
>

Re: Notice: Undefined property: stdClass::$login

BohwaZ/Garradin

27/12/2020 12:45:19

Comme l'erreur l'indique c'est un bug dans le code du plugin Welcome que
tu as modifié, le champ login n'existe pas dans les fiches membres.

On Sun, 27 Dec 2020 11:57:29 +0100 / "team spipfactoy"
<teamspipfactory@gmail.com> said :

> sur une instance garradin
> 
> lorsque  je souhaite creer un memebre j'ai droit a .........
> 
> qui peu m'aider sur  cette erreur
> 
> >
> >   Une erreur s'est produite
> >
> >
> >   PHP error
> >
> >
> >     Notice: Undefined property: stdClass::$login
> >
> >
> >       in
> >      
phar:///home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin/plugins/welcome.tar.gz/lib/*Welcome.php*:/29/
> >
> > |*25*	$membre = new Membres; *26* *27*
> > $nouveau_membre = $membre->get($params['id']); *28* _*29*
> > $login = $nouveau_membre->{'login'} ;_ *30* $nom_bdd = 
> > $nouveau_membre->{'nom_bdd'} ; *31* $pass =
> > $nouveau_membre->{'pass'} ; *32* $url =
$nouveau_membre->{'url'} ;
> > *33* |
> >
> >
> >         → Garradin\Plugin\welcome\Welcome::nouveauMembre /(2 arg.)/
> >
> > $params 	
> > array(11) {  
> >    ["id"]=> int(88)
> >    ["id_categorie"]=> string(1) "1"
> >    ["numero"]=> string(2) "88"
> >    ["nom"]=> string(17) "POUPARD Stéphane"
> >    ["email"]=> string(23) "stephanepoupard@free.fr" 

> >    ["adres…
> > 1 	
> > NULL
> >
> >
> >       in .../include/lib/Garradin/*Plugin.php*:/775/
> >
> >
> >         → call_user_func_array /(2 arg.)/
> >
> > $function_name 	
> > string(46) "Garradin\Plugin\welcome\Welcome::nouveauMembre"
> > $parameters 	
> > array(2) {  
> >    [0]=> array(11) {
> >      ["id"]=> int(88)
> >      ["id_categorie"]=> string(1) "1"
> >      ["numero"]=> string(2) "88"
> >      ["nom"]=> string(17) "POUPARD Stéphane"
> >      ["email"]=> string(23) "steph…  
> >
> > |*771*	{ *772*	continue; *773*	} *774*
> > _*775*	$return = call_user_func_array('Garradin\\Plugin\\' .
> > $row->callback, [&$params, &$callback_return]);_ *776* *777*
> > if (true === $return) { *778*	return true; *779*	} |
> >
> >
> >       in .../include/lib/Garradin/*Membres.php*:/180/
> >
> >
> >         → Garradin\Plugin::fireSignal /(2 arg.)/
> >
> > $signal 	
> > string(14) "membre.nouveau"
> > $params 	
> > array(11) {  
> >    ["id"]=> int(88)
> >    ["id_categorie"]=> string(1) "1"
> >    ["numero"]=> string(2) "88"
> >    ["nom"]=> string(17) "POUPARD Stéphane"
> >    ["email"]=> string(23) "stephanepoupard@free.fr" 

> >    ["adres…
> >
> > |*176* *177* $db->insert('membres', $data); *178* $id = 
> > $db->lastInsertRowId(); *179* _*180* 
> > Plugin::fireSignal('membre.nouveau', array_merge(['id'
=> $id], 
> > $data));_ *181* *182* return $id; *183* } *184* |
> >
> >
> >       in .../www/admin/membres/*ajouter.php*:/38/
> >
> >
> >         → Garradin\Membres->add /(1 arg.)/
> >
> > $data 	
> > array(10) {  
> >    ["id_categorie"]=> string(1) "1"
> >    ["numero"]=> string(2) "88"
> >    ["nom"]=> string(17) "POUPARD Stéphane"
> >    ["email"]=> string(23)
"stephanepoupard@free.fr"
> >    ["adresse"]=> string(19) "…  
> >
> > |*34* { *35* $data[$key] = f($key); *36* } *37* _*38* $id = 
> > $membres->add($data);_ *39* *40* Utils::redirect(ADMIN_URL . 
> > 'membres/fiche.php?id='.(int)$id); *41* } *42* catch
(UserException
> > $e) |
> >
> >
> >     Context
> >
> > id 	1zxy2dig
> > date 	2020-12-27T11:15:02+01:00
> > os 	Linux
> > language 	PHP 7.3.25
> > environment 	development
> > php_sapi 	fpm-fcgi
> > remote_ip 	91.170.197.162
> > http_method 	POST
> > files_sent 	array(0) { }
> > rootDirectory 
> >
/home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin 
> >
> > garradin_data_root 
> >
/home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin 
> >
> > garradin_version 	0.9.8.1
> > url 	https://compta.sfanm.fr/admin/membres/ajouter.php
> >  
>

Re: Notice: Undefined property: stdClass::$login

team spipfactoy

27/12/2020 13:34:19

okayyyyyy

merci pour la piste


Le 27/12/2020 à 12:44, BohwaZ/Garradin a écrit :
> Comme l'erreur l'indique c'est un bug dans le code du plugin
Welcome que
> tu as modifié, le champ login n'existe pas dans les fiches membres.
>
> On Sun, 27 Dec 2020 11:57:29 +0100 / "team spipfactoy"
> <teamspipfactory@gmail.com> said :
>
>> sur une instance garradin
>>
>> lorsque  je souhaite creer un memebre j'ai droit a .........
>>
>> qui peu m'aider sur  cette erreur
>>
>>>    Une erreur s'est produite
>>>
>>>
>>>    PHP error
>>>
>>>
>>>      Notice: Undefined property: stdClass::$login
>>>
>>>
>>>        in
>>>       
phar:///home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin/plugins/welcome.tar.gz/lib/*Welcome.php*:/29/
>>>
>>> |*25*	$membre = new Membres; *26* *27*
>>> $nouveau_membre = $membre->get($params['id']); *28* _*29*
>>> $login = $nouveau_membre->{'login'} ;_ *30* $nom_bdd =
>>> $nouveau_membre->{'nom_bdd'} ; *31* $pass =
>>> $nouveau_membre->{'pass'} ; *32* $url =
$nouveau_membre->{'url'} ;
>>> *33* |
>>>
>>>
>>>          → Garradin\Plugin\welcome\Welcome::nouveauMembre /(2 arg.)/
>>>
>>> $params 	
>>> array(11) {
>>>     ["id"]=> int(88)
>>>     ["id_categorie"]=> string(1) "1"
>>>     ["numero"]=> string(2) "88"
>>>     ["nom"]=> string(17) "POUPARD Stéphane"
>>>     ["email"]=> string(23)
"stephanepoupard@free.fr"
>>>     ["adres…
>>> 1 	
>>> NULL
>>>
>>>
>>>        in .../include/lib/Garradin/*Plugin.php*:/775/
>>>
>>>
>>>          → call_user_func_array /(2 arg.)/
>>>
>>> $function_name 	
>>> string(46) "Garradin\Plugin\welcome\Welcome::nouveauMembre"
>>> $parameters 	
>>> array(2) {
>>>     [0]=> array(11) {
>>>       ["id"]=> int(88)
>>>       ["id_categorie"]=> string(1) "1"
>>>       ["numero"]=> string(2) "88"
>>>       ["nom"]=> string(17) "POUPARD Stéphane"
>>>       ["email"]=> string(23) "steph…
>>>
>>> |*771*	{ *772*	continue; *773*	} *774*
>>> _*775*	$return = call_user_func_array('Garradin\\Plugin\\' .
>>> $row->callback, [&$params, &$callback_return]);_ *776*
*777*
>>> if (true === $return) { *778*	return true; *779*	} |
>>>
>>>
>>>        in .../include/lib/Garradin/*Membres.php*:/180/
>>>
>>>
>>>          → Garradin\Plugin::fireSignal /(2 arg.)/
>>>
>>> $signal 	
>>> string(14) "membre.nouveau"
>>> $params 	
>>> array(11) {
>>>     ["id"]=> int(88)
>>>     ["id_categorie"]=> string(1) "1"
>>>     ["numero"]=> string(2) "88"
>>>     ["nom"]=> string(17) "POUPARD Stéphane"
>>>     ["email"]=> string(23)
"stephanepoupard@free.fr"
>>>     ["adres…
>>>
>>> |*176* *177* $db->insert('membres', $data); *178* $id =
>>> $db->lastInsertRowId(); *179* _*180*
>>> Plugin::fireSignal('membre.nouveau', array_merge(['id'
=> $id],
>>> $data));_ *181* *182* return $id; *183* } *184* |
>>>
>>>
>>>        in .../www/admin/membres/*ajouter.php*:/38/
>>>
>>>
>>>          → Garradin\Membres->add /(1 arg.)/
>>>
>>> $data 	
>>> array(10) {
>>>     ["id_categorie"]=> string(1) "1"
>>>     ["numero"]=> string(2) "88"
>>>     ["nom"]=> string(17) "POUPARD Stéphane"
>>>     ["email"]=> string(23)
"stephanepoupard@free.fr"
>>>     ["adresse"]=> string(19) "…
>>>
>>> |*34* { *35* $data[$key] = f($key); *36* } *37* _*38* $id =
>>> $membres->add($data);_ *39* *40* Utils::redirect(ADMIN_URL .
>>> 'membres/fiche.php?id='.(int)$id); *41* } *42* catch
(UserException
>>> $e) |
>>>
>>>
>>>      Context
>>>
>>> id 	1zxy2dig
>>> date 	2020-12-27T11:15:02+01:00
>>> os 	Linux
>>> language 	PHP 7.3.25
>>> environment 	development
>>> php_sapi 	fpm-fcgi
>>> remote_ip 	91.170.197.162
>>> http_method 	POST
>>> files_sent 	array(0) { }
>>> rootDirectory
>>>
/home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin
>>>
>>> garradin_data_root
>>>
/home/clients/b313813ae3dfa81e21eb5a95d7ad323f/sites/sfanm.fr/squelettes/garradin
>>>
>>> garradin_version 	0.9.8.1
>>> url 	https://compta.sfanm.fr/admin/membres/ajouter.php
>>>