v9020 / PHP 8 : Erreur PHP à la saisie d'une OD
Posté : mer. déc. 22, 2021 10:12 am
La saisie d'une OD échoue, une erreur PHP s'ajoute aux log :
La saisie concerne un montant sans cents (donc sans séparateur décimal).
Je suis en PHP 8, Noalyss 9020. Je ne rencontrais pas de problème avec les précédentes versions et PHP 7.
Code : Tout sélectionner
[error] 13#13: *222 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /home/noalyss/web/include/class/acc_ledger.class.php:1192
Stack trace:
#0 /home/noalyss/web/include/class/acc_ledger.class.php(1192): round()
#1 /home/noalyss/web/include/compta_ods.inc.php(73): Acc_Ledger->verify_operation()
#2 /home/noalyss/web/include/lib/ac_common.php(1192): require_once('...')
#3 /home/noalyss/web/include/lib/ac_common.php(1130): display_menu()
#4 /home/noalyss/web/html/do.php(330): show_menu()
#5 {main}
thrown in /home/noalyss/web/include/class/acc_ledger.class.php on line 1192" while reading upstream, client: 172.xx.xx.xx, server: localhost, request: "POST /html/do.php?gDossier=39&ac=COMPTA/MENUODS/ODS HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "localhost:8888", referrer: "http://localhost:8888/html/do.php?gDossier=26&ac=COMPTA/MENUODS/ODS"
Je suis en PHP 8, Noalyss 9020. Je ne rencontrais pas de problème avec les précédentes versions et PHP 7.