Invoices are not selecting "Standard invoice" anymore

We’re using v15.0 and up to now when creating invoice Dolibarr has always selected “Standard invoice” as default. When our web hosting provider upgraded to PHP 8 this weekend, Dolibarr selects nothing when creating an invoice.

How do we turn on “Standard invoice” as default value?

Hi,

Dolibarr v15 is not compatible with PHP v8. If you cannot downgrade php, the best option seems to be an upgrade od Dolibarr to v16.0.1 (latest stable release).

Joachim

Thank you. I will make sure we upgrade to v16 in a nearby future. As for now, Dolibarr works without any problems with PHP 8 and this minor invoice setting is the only thing we’ve seen that’s bugging us.

You will have others for sure.
Upgrade is mandatory

Have you checked the code in the “\compta\facture\card.php” page? Approx. line number 3173.

$tmp = ‘<input type=“radio” id=“radio_standard” name=“type” value=“0”’.(GETPOST(‘type’) == 0 ? ’ checked’ : ‘’).'> ';

Here by default the radio button is checked. Then go little below and there is a JavaScript written check that too.