A lot of warning following to upgrade to v 14

Hello,

Following to the upgrade from v12 to v14.0.3 I’m receiving lot of “Warning: Undefined property” specially in billing section:

Warning: Undefined property: stdClass::$MARGIN_TYPE
Warning: Undefined array key “label”
Warning: Undefined variable $all
Warning: Cannot modify header information - headers already sent by (output started at

Warning: Undefined variable $ref_client
Warning: Undefined property: stdClass::$INVOICE_USE_RETAINED_WARRANTY
Warning: Undefined variable $objectsrc

Warning: Undefined property: stdClass::$INVOICE_USE_SITUATION
Warning: Undefined array key “totalam”
Warning: Undefined array key “rtp”
Warning: Undefined property: stdClass::$INVOICE_USE_SITUATION
Warning: Undefined property: stdClass::$INVOICE_USE_SITUATION

Any help on the above please?

the system has been practically paralyzed for 4 days :frowning:

Many thanks,

Hello,

You are using php v8 no?

Good day,

Yes we are using PHP v8.

Anything to do in order to deactivate these warning?

Hello,

Change your PHP error reporting : https://newbedev.com/php-error-reporting-production-vs-development
Put $dolibarr_main_prod='1'; in conf\conf.php

Hello,

The warning went after downgrade to PHP 7.4.

Many thanks

I think PHP 8 is still being tested and not fully supported

Unfortunately yes…
Partial compatability with V15 and full compatibility in v16

1 Like