#1 01-11-2010 16:05

Anarcky

[Résolu] Problème venant potentiellement d'une maj de PHP

Bonjour,
J'ai actuellement un serveur sous Ubuntu 10.10, j'ai plusieurs sites dont un gcWeb avec une collection de films et une collection de série, tout fonctionnait très bien.
Je n'était pas allé sur mon site gcWeb depuis une quinzaine de jours, durant ce temps, j'ai fait pas mal de trucs sur le serveur du coup je sais pas trop d'où ça peut venir mais mon site gcWeb ne marche plus.
Quand je vais sur le site, il m'affiche les erreurs suivantes (j'ai fais un screenshot, c'est plus parlant) :
http://img7.hostingpics.net/pics/909140gcweb.png

#2 01-11-2010 21:13

jonas
Administrator
Inscription : 25-06-2006
Messages : 729

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

Bonjour,

A vrais dire le code de /inc/convstr.php n'était pas des plus propre hmm essaie de la remplacer pas celui ci http://svnweb.tuxfamily.org/filedetails … onvstr.php

Merci de me dire ce que ça donne smile

Sinon je ne suis pas expert dans la config de serveur hmm regarde peut-être le niveau de ton "error reporting" dans to php.ini.

PS : Je développe GCweb sur ubuntu 10.10 apache+php5 je n'ai eu aucun problème (mais lors de mes migrations 9.10 → 10.04 et 10.04 → 10.10 je n'ai pas touché au fichier de config apache et php)

Hors ligne

#3 03-11-2010 23:03

Anarcky
Invité

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

J'ai remplacé le fichier et j'ai toujours la même erreur hmm
J'essaierai de regarder ça de plus prés ce week end.

#4 04-11-2010 19:28

jonas
Administrator
Inscription : 25-06-2006
Messages : 729

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

Sinon, enlève les 2 "static"

    public static $strXml = array(',','!','<','>','=','\'','"',' ','&','+','/','\\','#');
    public static $strMotor = array ('$comma$','$esclam$','$lt$','$gt$','$egal$','$lsquo$','$quod$','$nbsp$','$amp$','$more$','$slash$','$bkslash$','$pound$');

Mais ... je pense que c'est un truc dans le code qui n'est pas propre propre hmm je voudrais bien savoir quoi hmm

Hors ligne

#5 08-11-2010 14:09

Anarcky
Invité

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

Bonjour, je viens d'essayer de refaire une nouvelle installe du site.
En repartant de 0, j'ai toujouts la même erreur mais pas affichée pareil ^^.
Le site est pareil s'avant la réinstalle à part qu'en faut de page (genre sur 400 lignes), j'ai ça qui se répette à l'infini :

Strict Standards: Non-static method render::affPage() should not be called statically in /var/www/gcweb/inc/render.php on line 85 Strict Standards: Non-static method render::createPage() should not be called statically in /var/www/gcweb/inc/render.php on line 207 Strict Standards: Non-static method bdd::filterSortSliceAndCache() should not be called statically in /var/www/gcweb/inc/render.php on line 329 Strict Standards: Non-static method bdd::xml2array() should not be called statically in /var/www/gcweb/inc/bdd.php on line 440 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::strMotor() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::strMotor() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::strMotor() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::strMotor() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::strMotor() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::strMotor() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53 Strict Standards: Non-static method convstr::xml2motor() should not be called statically in /var/www/gcweb/inc/bdd.php on line 59 Strict Standards: Non-static method convstr::strXml() should not be called statically in /var/www/gcweb/inc/convstr.php on line 53

Donc toujours la même erreur...
Je ne vois pas du tout d'où ça peut venir et pour être honnète, je n'ai pas du tout le temps de m'en occuper d'ici un moment.

#6 08-11-2010 14:14

Anarcky
Invité

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

J'ai aussi essayé d'enlever les 2 static, résultat; une page blanche avec juste ça :

Strict Standards: Non-static method render::affPage() should not be called statically in /var/www/gcweb/inc/render.php on line 85 Strict Standards: Non-static method render::createPage() should not be called statically in /var/www/gcweb/inc/render.php on line 207 Strict Standards: Non-static method bdd::filterSortSliceAndCache() should not be called statically in /var/www/gcweb/inc/render.php on line 329
Strict Standards: Non-static method bdd::filterSortSliceAndCache() should not be called statically in /var/www/gcweb/templates/default/main.php on line 40

#7 08-11-2010 22:59

jonas
Administrator
Inscription : 25-06-2006
Messages : 729

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

Dans /inc/bdd.php essaie d'enlever, une nouvelle fois, les "static" des lignes suivante :

#ligne 510
                static $dateformatorder = array();

#ligne 585
        static $accent2unacent = array('À'=>'a','Á'=>'a','Â'=>'a','Ã'=>'a','Ä'=>'a','Å'=>'a','Æ'=>'a',

Cella devrait fonctionner mais ... je voudais bien comprendre ce qui ne joue pas dans le code car ces "corrections" contourne le problème mais ne le resoud pas vraiment hmm si quelqu'un à une idée je suis prenneur hmm

Peux-tu égallement me donner la ligne concernant l'error reporting de ton php.ini

cat /etc/php5/apache2/php.ini | grep error_reporting

Hors ligne

#8 09-11-2010 10:12

Anarcky
Invité

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

J'ai essayé d'enlever les static, ça marche toujours pas.
Sinon, voilà la ligne concernant l'error reporting :

; error_reporting
error_reporting = E_ALL | E_STRICT
; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().

#9 09-11-2010 23:37

jonas
Administrator
Inscription : 25-06-2006
Messages : 729

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

enlève le E_STRICT (par contre moi je vais l'ajouter big_smile)

error_reporting = E_ALL

Voir même pour un serveur de production (et non de develoopement) enlève E_NOTICE

error_reporting =E_ALL & ~E_NOTICE

(et redémarre apache pour prendre en compte le modification)

Hors ligne

#10 10-11-2010 10:56

Anarcky
Invité

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

Merci, ça remarche, j'ai restauré le fichier php.ini tel qu'il était avant, là ça ne marchait toujours pas alors j'ai refait une installe du site (du coup avec les static non enlevés) et ça marche.

#11 10-11-2010 21:54

jonas
Administrator
Inscription : 25-06-2006
Messages : 729

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

l'error reporting est configuré comment ?

Hors ligne

#12 12-11-2010 09:35

Anarcky
Invité

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

En fait, mon colloc avait changé l'error reporting pour débugué un projet et il n'y pensais plus du tout.
Voilà l'error reporting tel qu'il est actuellement :


; error_reporting
error_reporting = E_ALL & ~E_DEPRECATED
; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().

#13 12-11-2010 17:20

jonas
Administrator
Inscription : 25-06-2006
Messages : 729

Re : [Résolu] Problème venant potentiellement d'une maj de PHP

ok, merci.

PS : je passe le sujet en résolu.

Hors ligne

Réponse rapide

Veuillez composer votre message et l'envoyer
Si vous êtes un être humain ne changez pas le contenu de ces deux champs.

Pied de page des forums