Invoiceninja: PHP 7.4 support - PHP Deprecated

Created on 15 Mar 2020  路  5Comments  路  Source: invoiceninja/invoiceninja

I assume this is on track to be fixed, but it seems PHP 7.4 support is not finalized for Invoice Ninja v4.5.17. I set PHP to v7.4.3, and there were some "PHP Deprecated" in Account.php on line 1126 errors in the nighty cron:, executed with:

0 | 6 | * | * | * | /opt/remi/php74/root/bin/php /home/domain/ninja.domain.com/html/artisan ninja:send-invoices

Sun, 15 Mar 2020 10:00:03 +0000 Running SendRecurringInvoices...
PHP Deprecated:  Unparenthesized `a ? b : c ?: d` is deprecated. Use either `(a ? b : c) ?: d` or `a ? b : (c ?: d)` in /chroot/home/domain/ninja.domain.com/html/app/Models/Account.php on line 1126 Sun, 15 Mar 2020 10:00:03 +0000 
6 recurring invoice(s) found Sun, 15 Mar 2020 10:00:04 +0000 0 recurring expenses(s) found Sun, 15 Mar 2020 10:00:04 +0000 Done

Will try again tonight, with PHP 7.3.15 and update this ticket tomorrow...

question

All 5 comments

We only support 7.3 for this version at this point.

Confirmed PHP 7.3.15 is working fine both for the site and the cron jobs!

Im running 7.3.15 and its not working. I upgraded from 7.3.12.

@Progressed36 are there any errors in storage/logs/ ?

Sorry... My mistake. The selfhosted hosting is 7.3.15.... when running the cron its problably running the default version of the server which is 7.4.4... fail... sorry m8.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThomasKujawa picture ThomasKujawa  路  3Comments

FBachofner picture FBachofner  路  5Comments

Cannonb4ll picture Cannonb4ll  路  3Comments

m-byte picture m-byte  路  3Comments

Baledin picture Baledin  路  3Comments