Bonjour,
Dolibarr v17.0.1 avec php 8.1.
J’obtiens une page blanche après validation d’une facture client (et après test, seulement pour ce client). Voici les logs du serveur Apache juste après l’anomalie :
monsite.ch [Tue May 02 18:16:00.615245 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0]
FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external"
stderr: PHP message: PHP Warning: Undefined property: Conf::$multicurrency in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 283
PHP message: PHP Warning: Attempt to read property "enabled" on null in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 283
PHP message: PHP Warning: Undefined property: Conf::$multicurrency in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 284
PHP message: PHP Warning: Attempt to read property "enabled" on null in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 284
PHP message: PHP Warning: Undefined property: Conf::$multicurrency in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 285
PHP message: PHP Warning: Attempt to read property "enabled" on null, referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f
monsite.ch [Tue May 02 18:16:00.615266 2023] [-:warn] [pid 235838:tid 140432671500032] [client 112.192.223.114:0]
FastCGI: too much stderr received from server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external", increase FCGI_SERVER_MAX_STDERR_LINE_LEN (1023) and rebuild or use "\\n" to terminate lines, referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f
monsite.ch
[Tue May 02 18:16:00.615271 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 285
PHP message: PHP Warning: Undefined property: Conf::$incoterm in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 411
PHP message: PHP Warning: Attempt to read property "enabled" on null in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php on line 411
PHP message: PHP Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php:593, referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f monsite.ch
[Tue May 02 18:16:00.615275 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: Stack trace:, referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f monsite.ch
[Tue May 02 18:16:00.615278 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: #0 /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/modules/facture/doc/pdf_monsite.modules.php(593): number_format('1 250.00', '2', '.', ','), referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f monsite.ch
[Tue May 02 18:16:00.615281 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: #1 /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/core/class/commonobject.class.php(5538): pdf_monsite->write_file(Object(Facture), Object(Translate), '', 0, 0, 1, NULL), referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f monsite.ch
[Tue May 02 18:16:00.615284 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: #2 /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/compta/facture/class/facture.class.php(5043): CommonObject->commonGenerateDocument('core/modules/fa...', 'monsite', Object(Translate), 0, 0, 1, NULL), referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f monsite.ch
[Tue May 02 18:16:00.615286 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: #3 /home/clients/14c72937ac6d7c57208624c6c2a2b2b5/web/erp-cm/compta/facture/card.php(683): Facture->generateDocument('monsite', Object(Translate), 0, 0, 1), referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f monsite.ch
[Tue May 02 18:16:00.615289 2023] [-:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: #4 {main}, referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f
monsite.ch [Tue May 02 18:16:00.615458 2023] [fastcgi:error] [pid 235838:tid 140432671500032] [client 112.192.223.114:0] FastCGI: server "/home/clients/14c72937ac6d7c57208624c6c2a2b2b5/.config/apache/monsite.ch/.fpm/php5.external" stderr: thrown in /home/clients/14c72937ac6d7c57...b2b5/web/erp-cm/core/class/commonobject.class.php(5538): pdf_monsite->write_file(Object(Facture), Object(Translate), '', 0, 0, 1, NULL), referer https://www.monsite.ch/erp-cm/compta/facture/card.php?facid=8371&action=valid&token=65afae2b5d327efc87502433e56d438f
On y lit plusieurs types d’erreur. Je n’ai pas assez de connaissance pour y voir clair mais je peux fournir d’autres informations si nécessaires.
Merci