Bonjour
J’utilise le core en version 4.5.2 et je suis passé sous Debian 12.13 il y a quelques semaines.
Depuis quelque temps j’ai constaté des erreurs dans le log http qui pointaient vers l’IP de mon PC et je n’avais pas trouvé l’origine, mais j’ai réussi à reproduire l’erreur.
Dans un virtuel, j’ai une info numérique que j’historise ainsi :
J’ai toujours eu l’habitude l’afficher sous cette forme :
Et il ne me semble ne jamais avoir eu de soucis alors que j’étais sous Debian 11.11, mais peut-être suis-je passé à coté.
Aujourd’hui, lorsque je vais dans Historique pour l’afficher, l’affichage fait comme une sorte de clignotement rapide, puis n’affiche rien. Je suis obligé de passer par un affichage sous forme de ligne, puis barre, puis enfin séléctionner année pour finalement avoir ce dont j’ai besoin.
Voir ce gif, même si ce n’est pas très flagrant :

C’est lors de cette demande d’historique que cela me génère ces erreurs dans le log http
0526|[Sat Apr 04 14:08:27.893241 2026] [php:error] [pid 4142986:tid 4142986] [client 192.168.1.37:56690] PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/core/class/history.class.php:369\nStack trace:\n#0 /var/www/html/core/class/history.class.php(369): strpos()\n#1 /var/www/html/core/class/cmd.class.php(2534): history::all()\n#2 /var/www/html/core/ajax/cmd.ajax.php(431): cmd->getHistory()\n#3 {main}\n thrown in /var/www/html/core/class/history.class.php on line 369
0527|[Sat Apr 04 14:08:28.113353 2026] [php:error] [pid 4083961:tid 4083961] [client 192.168.1.37:56691] PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/core/class/history.class.php:369\nStack trace:\n#0 /var/www/html/core/class/history.class.php(369): strpos()\n#1 /var/www/html/core/class/cmd.class.php(2534): history::all()\n#2 /var/www/html/core/ajax/cmd.ajax.php(431): cmd->getHistory()\n#3 {main}\n thrown in /var/www/html/core/class/history.class.php on line 369
0528|[Sat Apr 04 14:08:28.274668 2026] [php:error] [pid 4138994:tid 4138994] [client 192.168.1.37:56692] PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/core/class/history.class.php:369\nStack trace:\n#0 /var/www/html/core/class/history.class.php(369): strpos()\n#1 /var/www/html/core/class/cmd.class.php(2534): history::all()\n#2 /var/www/html/core/ajax/cmd.ajax.php(431): cmd->getHistory()\n#3 {main}\n thrown in /var/www/html/core/class/history.class.php on line 369
0529|[Sat Apr 04 14:08:28.440433 2026] [php:error] [pid 4139009:tid 4139009] [client 192.168.1.37:56693] PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/core/class/history.class.php:369\nStack trace:\n#0 /var/www/html/core/class/history.class.php(369): strpos()\n#1 /var/www/html/core/class/cmd.class.php(2534): history::all()\n#2 /var/www/html/core/ajax/cmd.ajax.php(431): cmd->getHistory()\n#3 {main}\n thrown in /var/www/html/core/class/history.class.php on line 369
Ce n’est pas invalidant maintenant que je sais d’où cela provient, mais peut-être qu’il y a moyen d’y remédier, ne serait-ce que pour ne plus avoir les erreurs http












