IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques et frameworks PHP Discussion :

[PEAR] Utilisation de fonctions dépréciées


Sujet :

Bibliothèques et frameworks PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre habitué
    Inscrit en
    Février 2011
    Messages
    9
    Détails du profil
    Informations forums :
    Inscription : Février 2011
    Messages : 9
    Par défaut [PEAR] Utilisation de fonctions dépréciées
    Bonjour,

    Aujourd'hui, j'ai voulu installé Centreon qui est un outil graphique pour Nagios écrit en php. Il utilise PEAR.

    Son installation s'est bien passé et arrivé à la page d’accueil, j'obtiens des erreur PEAR.

    Je suppose que j'ai un problème au niveau de PEAR car toutes les erreurs sont en relation avec PEAR.

    Voici quelques exemples :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
     
    Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /usr/local/lib/php/DB.php on line 594
     
    Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/local/lib/php/DB.php on line 551
     
    Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /usr/local/lib/php/DB.php on line 594
     
    Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/local/lib/php/DB.php on line 557
     
    Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /usr/local/lib/php/DB.php on line 594
     
    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /appl/monitoring/centreon/www/class/centreonDB.class.php on line 179
     
    Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /usr/local/lib/php/PEAR.php on line 252
    (J'en ai 10 fois plus si vous souhaitez !! :p)

    Merci si vous avez une piste. =)

  2. #2
    Expert confirmé

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Par défaut
    PEAR est pour PHP 4, si tu veux l'utiliser baisse le niveau d'erreur

  3. #3
    Membre habitué
    Inscrit en
    Février 2011
    Messages
    9
    Détails du profil
    Informations forums :
    Inscription : Février 2011
    Messages : 9
    Par défaut
    Haaa !!
    Okk merci, je ne savais pas ça !!

    C'est ce que j'ai fait et plus d'erreur ...

    Merci encore.

  4. #4
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2012
    Messages
    71
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2012
    Messages : 71
    Par défaut
    Comment fais tu pour baisser le niveau d'erreur d'un serveur IIS, je suis stagiaire dans une entreprise, je dois modifié une page PHP d'un site, et la page m affiche des erreur du meme type que celle de ce sujet, comment faire ? merci

    voila ce que donne ma page :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\HTML\Table.php on line 625
     
    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\HTML\Table\Storage.php on line 413
     
    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\HTML\Table\Storage.php on line 381
     
    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\HTML\Table.php on line 629
     
    Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\HTML\Table\Storage.php on line 323
     
    Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in C:\php\pear\DB\common.php on line 2199
     
    Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\DB\common.php on line 1216
     
    Notice: Undefined offset: 1 in C:\www\log\antivirus.php on line 153
     
    Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in C:\php\pear\DB\common.php on line 2199
     
    Strict Standards: Non-static method DB::errorMessage() should not be called statically, assuming $this from incompatible context in C:\php\pear\DB.php on line 965
     
    Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\DB.php on line 688
     
    Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in C:\php\pear\DB\common.php on line 1216
     
    Fatal error: Call to undefined method DB_mysql::getMessage() in C:\www\log\antivirus.php on line 163

  5. #5
    Expert confirmé

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Par défaut
    Citation Envoyé par spads Voir le message
    Comment fais tu pour baisser le niveau d'erreur ?
    avec error_reporting, (a mettre en E_ALL & ~E_DEPRECATED)

    mais je déconseille à tout le monde d'utiliser les ancienne lib PEAR

  6. #6
    Membre confirmé
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2012
    Messages
    71
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2012
    Messages : 71
    Par défaut
    Citation Envoyé par stealth35 Voir le message
    avec error_reporting, (a mettre en E_ALL & ~E_DEPRECATED)

    mais je déconseille à tout le monde d'utiliser les ancienne lib PEAR
    merci mais dans ce cas comment puije mettre sur mon serveur une lib plus recente ^^ car malheureusement je ne sais pas faire, je suis sur un poste ou tout etait deja installé, je travail sur ce qui est existant , mais je ne suis pas un expert ^^

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 8
    Dernier message: 02/10/2013, 22h35
  2. [PEAR] pearcmd et fonctions dépréciées
    Par Benjamin Delespierre dans le forum Bibliothèques et frameworks
    Réponses: 0
    Dernier message: 16/11/2010, 00h49
  3. Utiliser des fonctions Pascal
    Par Neilos dans le forum C++Builder
    Réponses: 2
    Dernier message: 07/03/2004, 16h43
  4. Réponses: 11
    Dernier message: 22/12/2003, 22h06
  5. impossible d'utiliser ma fonction dans un insert
    Par caramel dans le forum MS SQL Server
    Réponses: 2
    Dernier message: 10/04/2003, 16h04

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo