Open terhoy opened 1 year ago
with php 7.4
with 8.1 :
with php 7.4
with 8.1 :
Thanks frederic34, confirming that changing to php version 7.4 solved this problem.
Regards
Hello, I think it's fixed, can you check with the last version of 17.0.3
Thank's @Hystepik I've upgraded to version 19. This case can be closed.
Thank's @Hystepik I've upgraded to version 19. This case can be closed.
Bug
Hi,
Thanks for the great work with Dolibarr, highly appreciated!
Installed a fresh version 17 of Dolibarr. When language is set to nb_NO the setup of the invoice module partly fails. Look at enclosed screen dump "Invoice setup lang=en_GB.JPG" and "Invoice setup lang=nb_NO.JPG"
The Dolibarr error_log states:
[12-Mar-2023 11:50:05 Europe/Berlin] PHP Fatal error: Uncaught ArgumentCountError: 11 arguments are required, 5 given in /home/krogevhn/public_html/dolibarr/core/class/translate.class.php:641 Stack trace:
0 /home/krogevhn/public_html/dolibarr/core/class/translate.class.php(641): sprintf()
1 /home/krogevhn/public_html/dolibarr/core/modules/facture/mod_facture_mars.php(81): Translate->trans()
2 /home/krogevhn/public_html/dolibarr/admin/facture.php(345): mod_facture_mars->info()
3 {main}
thrown in /home/krogevhn/public_html/dolibarr/core/class/translate.class.php on line 641
error_log.txt
Environment Version
17
Environment OS
Linux x86_64 3.10.0-962.3.2.lve1.5.42.el6h.x86_64
Environment Web server
Apache 2.4.55
Environment PHP
8.1
Environment Database
MySQL 5.7.40-cll-lve
Environment URL(s)
/dolibarr/admin/facture.php?save_lastsearch_values=1&backtopage=%2Fdolibarr%2Fadmin%2Fmodules.php
Expected and actual behavior
Setup page for module Invoice is only partly shown. When lang=nb_N= the "Invoices and credit notes numbering model" only show the name "Mars". When lang=en_GB the whole page is shown.
Steps to reproduce the behavior
Change Default language to "nb_NO". Go to "Moduler/Applikasjoner" and choose "Fakturaer". Click on the cogwheel to setup the module.
Attached files
Please find enclosed the error_log.txt and dolibarr.log dolibarr.log error_log.txt