logo

NPDS : Gestion de contenu et de communauté


Content & Community Management System (CCMS) robuste, sécurisé, complet, performant, parlant vraiment français, libre (Open-Source) et gratuit.
35 visiteur(s) et 0 membre(s) en ligne.
Activité du Site

Pages vues depuis 25/05/2001 : 108 396 810

  • Nb. de membres 8 693
  • Nb. d'articles 1 695
  • Nb. de forums 26
  • Nb. de sujets 8
  • Nb. de critiques 92

Top 10  Statistiques

Index du forum »»  Questions fréquentes »» Erreurs (Notice) avec EasyPHP 1.7

Nouveau sujet
 Erreurs (Notice) avec EasyPHP 1.7#8174Répondre

1Contributeur(s)
axel
3 Modérateur(s)
developpeurjpbJireck
axel axelicon_post
Si vous avez des "Notices" comme ceux ci :

Notice: Constant LOCK_EX already defined in c:\monsite\cache.class.php on line 19

Notice: Constant LOCK_UN already defined in c:\monsite\cache.class.php on line 20

Notice: Undefined variable: admin in c:\monsite\auth.inc.php on line 62

Notice: Undefined variable: user in c:\monsitemainfile.php on line 53

Notice: Use of undefined constant user - assumed 'user' in c:\monsite\mainfile.php on line 451

Notice: Undefined index: user in c:\monsitemainfile.php on line 451

Notice: Use of undefined constant mday - assumed 'mday' in c:\monsite\index.php on line 48

Notice: Use of undefined constant mon - assumed 'mon' in c:\monsite\index.php on line 51

Notice: Use of undefined constant year - assumed 'year' in c:\monsite\index.php on line 54

Notice: Use of undefined constant hours - assumed 'hours' in c:\monsite\index.php on line 55

Notice: Use of undefined constant minutes - assumed 'minutes' in c:\monsite\index.php on line 56
etc....

qui apparaissent de partout sur votre site web, vous utilisez vraisemblablement EasyPHP 1.7...

Pour enlever ces Notices, trouver le fichier php.ini [quelque part dans le répertoire d'EasyPHP],
reperez les lignes :
[...]
error_reporting = E_ALL
AutoStartServers=Y
AutoStartEasyPhp=N
[...]

et remplacez par :
[...]
error_reporting = E_ALL & ~E_NOTICE
AutoStartServers=Y
AutoStartEasyPhp=N
[...]

OU BIEN

Dans le fichier grab_globals.php

Juste après la ligne :
=> define('NPDS_GRAB_GLOBALS_!include!D', 1);

rajouter la ligne :
=> error_reporting(E_ERROR | E_WARNING | E_PARSE);

-: Puis Rédémmarrez les serveurs d'EasyPHP.... :-

[ Message édité par : developpeur : 04-02-2004 18:25 ]