Warning: A non-numeric value encountered

I recently installed Dolibarr 5.0.4. Still no data in the database. When I go to “Bank/Cash” page, there are 3 warnings top of the page as given below.

Warning: A non-numeric value encountered in C:\xampp\htdocs\KRS\compta\bank\index.php on line 61
Warning: A non-numeric value encountered in C:\xampp\htdocs\KRS\compta\bank\index.php on line 62
Warning: A non-numeric value encountered in C:\xampp\htdocs\KRS\compta\bank\index.php on line 63

There are similar warnings in other pages too.

How could I avoid these warnings?

Thanks

Dolibarr 5 has “problems” with php 7 (just warnings), this is fixed in next release of dolibarr 6

what is the value of "error_reporting = " in your php.ini ?
If you can not change this value, try modifying this line in conf.php:

$dolibarr_main_prod='1';

Régis Houssin
Dolibarr and ToManage contributor
regis.houssin at gmail dot com


Shop and SaaS Offers

Thanks dear Regis Houssin. I did change the conf.php as advised, and then all the warnings disappeared.

If you don’t mind I would like to know what is " $dolibarr_main_prod " ?

Thanks again

“When this option is added in conf file, no information will be reported by Dolibarr when an internal error occurs. This is to use in a production environment to hide any information to hackers.” (Source Configuration file - Dolibarr ERP CRM Wiki)