|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Thu Dec 16, 2010 7:02 pm Post subject: Erreur dans les logs depuis ma mise à jour vers smarty 3.0.6 |
|
|
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 |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Fri Dec 17, 2010 6:21 pm Post subject: |
|
|
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 |
|
Back to top |
|
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Fri Dec 17, 2010 8:24 pm Post subject: |
|
|
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 |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Fri Dec 17, 2010 9:30 pm Post subject: |
|
|
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 |
|
Back to top |
|
cobex4 Smarty Regular
Joined: 02 Sep 2008 Posts: 74
|
Posted: Fri Dec 17, 2010 9:47 pm Post subject: |
|
|
Ha la merci, très bonne piste |
|
Back to top |
|
|
|
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
|