Vous n'êtes pas identifié(e).
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
Bonjour,
A vrais dire le code de /inc/convstr.php n'était pas des plus propre essaie de la remplacer pas celui ci http://svnweb.tuxfamily.org/filedetails … onvstr.php
Merci de me dire ce que ça donne
Sinon je ne suis pas expert dans la config de serveur 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
J'ai remplacé le fichier et j'ai toujours la même erreur
J'essaierai de regarder ça de plus prés ce week end.
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 je voudrais bien savoir quoi
Hors ligne
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.
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
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 si quelqu'un à une idée je suis prenneur
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
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().
enlève le E_STRICT (par contre moi je vais l'ajouter )
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
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.
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().