Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Erreur dans les logs depuis ma mise à jour vers smarty 3.0.6

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Thu Dec 16, 2010 7:02 pm    Post subject: Erreur dans les logs depuis ma mise à jour vers smarty 3.0.6 Reply with quote

Bonjour,

Dans les logs de appache, depuis la mise à jour vers Smarty 3.0.6, c'est ce genre d'erreur :

Quote:
[Thu Dec 16 18:34:45 2010] [error] [client ::1] PHP Notice: Undefined variable: erreur in /.. ../smarty/sysplugins/smarty_internal_data.php on line 287, referer: http://localhost/site1/
[Thu Dec 16 18:34:45 2010] [error] [client ::1] PHP Notice: Undefined variable: message in /.. ../smarty/sysplugins/smarty_internal_data.php on line 287, referer: http://localhost/site1/


Que faire ?

Merci d'avance.
Back to top
View user's profile Send private message
Gowser
Smarty Pro


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Fri Dec 17, 2010 6:21 pm    Post subject: Reply with quote

Bonjour, bonsoir, cela vient de ta configuration apache qui log un peu.

En effet, les notices ne sont pas des erreurs à proprement parler mais plus des erreurs de codage, de la mal-façon sans impacte pour l'execution du code.

Tu peux supprimer ces notices en modifiant la configuration du "error_reporting" du php.ini en excluant le log des notices :

Code:

error_reporting = E_ALL & ~E_NOTICE



++
_________________
N'oubliez pas de mettre le tag "[Résolu]" sur vos post Smile
Back to top
View user's profile Send private message Send e-mail
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Fri Dec 17, 2010 8:24 pm    Post subject: Reply with quote

Dans ce cas je préfère trouver l'erreur de codage, plus pro.

Ou pourquoi la mise à jour de Smarty provoque QUE maintenant l'erreur......
Back to top
View user's profile Send private message
Gowser
Smarty Pro


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Fri Dec 17, 2010 9:30 pm    Post subject: Reply with quote

Cela provient tout simplement de la fonction "getTemplateVars" qui désormais génère un notice quand on essaie de récupérer une variable smarty inexistante.
_________________
N'oubliez pas de mettre le tag "[Résolu]" sur vos post Smile
Back to top
View user's profile Send private message Send e-mail
cobex4
Smarty Regular


Joined: 02 Sep 2008
Posts: 74

PostPosted: Fri Dec 17, 2010 9:47 pm    Post subject: Reply with quote

Ha la merci, très bonne piste Wink
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP