PHP7.4 upgrade breaks selfhosting ninjainvoice

Upgrade OR update from PHP7.2 (OR less?) To PHP7.4 breaks ninjainvoice installations made from the server Installatron package manager.

Nearly ever server, shared or dedicated hosts WordPress. The latest version recommends for security reasons top upgrade PHP7.2 to a higher version. Which steen the vulnabilities, makes perfect sence.

Doing so unfortunately breaks invoiceninja into an unrecovable state. Both front and admin side are affected.

Initial installation is made from the Installatron package manager. Every upgrade and updates have been made to the latest version through the same Installatron package manager.

Nothing about this issue had been mentioned in the forum.
Therefore it somewhat bitter and discuraging to discover this after just made the paying for the white label.

Will this be fixed?


Which exact version of the app are you using?

Latest version of invoiceninja before PHP server upgrade was invoiceninja 4.5.34

Thanks, support for PHP 7.4 was added in the latest v4 version.

Unfortunately the current installation remains broken/unaccesable.

" Whoops looks like something went wrong"

Probably untill a new version higher than 4.5.34 can be installed from the directadmin installatron package manager.

Thus fixing the undelaying issue created after the php7.2 update to php7.4

Do you see any errors in storage/logs/laravel-error.log

The last lines contain this error message.

2022-01-03 22:59:06] production.ERROR: ErrorException [0] : /home/domainname/domains/ [Line 1126] => Unparenthesized a ? b : c ?: d is deprecated. Use either (a ? b : c) ?: d or a ? b : (c ?: d) {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0”,“locale”:“en”,“ip”:“”,“count”:2,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:"/"} []

Can you explain what you mean by “directadmin installatron package manager”

There is a newer v4 version available which supports PHP 7.4

I assume you mean this?

Your assumption is correct.

Ok, I think you’d need to contact them directly to ask about upgrading to support the latest v4 version.

What is the current latest version?

The latest version is v4.5.47

Indeed the Installatron version is marked as 5.3.22 AND 4.5.34 per totday.

I Will open a ticket at Installatron requesting updating abilities to your mentioned latest version.

Hopefully this Will solve the issue