Warning: htmlspecialchars()

  • Reidid
  • Topic Author
  • New Member
  • New Member
More
6 years 7 months ago #108 by Reidid
Warning: htmlspecialchars() was created by Reidid
Bonjour,

Notre hébergeur a du faire une mise à jour du serveur vendredi, ce qui a entraîné un problème d'accès à GRR durant quelques instants.

Après rétablissement, nous avons un problème sur daifi971.org/grr
De nombreux messages d'erreur "Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in ..." parsèment l'affichage.

J'ai fait une mise à jour de GRR 2 vers GRR 3... mais cela n'a pas résolu le problème.

Pour info :
Numéro de version : GRR 3.3.0a
Préfixe : grr
Base de donnée : 5.1.66-log
Système d'exploitation : Linux www 2.6.32-5-xen-amd64 #1 SMP Sun May 6 08:57:29 UTC 2012 x86_64
Version PHP : 5.6.30

Une piste de solution ?

Dans l'attente,
Bien cordialement

Please Log in or Create an account to join the conversation.

  • Rapace
  • Senior Member
  • Senior Member
More
6 years 7 months ago #110 by Rapace
Replied by Rapace on topic Warning: htmlspecialchars()
Bon jour Reidid,

Pourrais-tu nous transmettre le message d'erreur complet (numéro de lignes et nom des fichiers)

Production : GRR : 1.9.7e - Hébergement : Ubuntu 14-04 + PHP 5.5.9
Test : GRR (3.5.1 et 4.0.3) + Ubuntu 22.04.1- PHP : 8.0.1

Please Log in or Create an account to join the conversation.

  • Reidid
  • Topic Author
  • New Member
  • New Member
More
6 years 7 months ago #112 by Reidid
Replied by Reidid on topic Warning: htmlspecialchars()
Bonjour,

Je ne suis pas sur que ce soit lié à la programmation de grr, mais à titre informatif :
Code:
Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/functions.inc.php on line 1090 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/functions.inc.php on line 1111 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/functions.inc.php on line 1961 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/functions.inc.php on line 2013 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/functions.inc.php on line 4040 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/mincals.inc.php on line 85 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/mincals.inc.php on line 106 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/mincals.inc.php on line 159 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/mincals.inc.php on line 244 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/mincals.inc.php on line 249 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/include/trailer.inc.php on line 53 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/week_all.php on line 390 Warning: htmlspecialchars(): charset ` ' not supported, assuming utf-8 in /home/daifi971/www/grr/week_all.php on line 443
Bien cordialement

Please Log in or Create an account to join the conversation.

  • Rapace
  • Senior Member
  • Senior Member
More
6 years 7 months ago #114 by Rapace
Replied by Rapace on topic Warning: htmlspecialchars()
Re
Une info :
Ton hébergement est en PHP 5.6, GRR est optimisé pour du PHP 7 (fin du support des différentes versions PHP : php.net/supported-versions.php )

Deux pistes :
En PHP 7.0, la conf par défaut est de ne pas afficher les messages d'erreur de quelque niveau que se soit. Vu que les erreurs que tu nous signales sont sans gravité aucune, il faudrait essayer de ne pas les afficher
1- Modifier directement le fichier php.ini :
Rechercher la directive display_error et lui donner la valeur Off
2- Si pas possible, mettre ces deux lignes au début du fichier include/functions.inc.php
Code:
// Désactive le rapport d'erreurs error_reporting(0);

Production : GRR : 1.9.7e - Hébergement : Ubuntu 14-04 + PHP 5.5.9
Test : GRR (3.5.1 et 4.0.3) + Ubuntu 22.04.1- PHP : 8.0.1
The following user(s) said Thank You: Reidid

Please Log in or Create an account to join the conversation.

  • Reidid
  • Topic Author
  • New Member
  • New Member
More
6 years 7 months ago #115 by Reidid
Replied by Reidid on topic Warning: htmlspecialchars()
Bonjour,
Ne pouvant modifier le fichier php.ini, j'ai utilisé la 2e option.
Ça marche nickel.
Merci.
Bien cordialement.

Please Log in or Create an account to join the conversation.

Moderators: Yan