500: Internal Server Error • Server Error after Upgrade to 5.9.4_M160

Hi,

I the 500: Internal Server Error • Server Error after logging in after I made an upgarde to the newest version. (PHP is on 8.2).

tail -f invoiceninja/storage/logs/laravel.log
[2024-06-13 09:26:25] production.ERROR: Class “InvoiceNinja\EInvoice\Decoder\Schema” not found {“userId”:1,“exception”:"[object] (Error(code: 0): Class "InvoiceNinja\EInvoice\Decoder\Schema" not found at /var/www/invoiceninja/app/Http/Controllers/BaseController.php:1000)

What to do?

regards

Hi,

It may help to load /update?secret=

unfortunately not. Error still in log, after logging in.

I had the same error when I changed PHP back to 8.1. Maybe your are still on an earlier PHP version without knowing it?

unfortunately not.

here is the nginx config part:

location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
fastcgi_read_timeout 5000;

PHP 8.2. is running and used.

You may want to setup a phpinfo page to confirm the php version.

@david do you have any ideas?

phpinfo returns PHP Version 8.2.20.

Not quite sure, whether this is a valid solution, but I got a workaround, and 5.9.4 is running.

I downloaded v5.8.57 and unziped it thru the folder, ran the updater via browser.
After thatI was able to update to 5.9.4.

The only thing I saw in the log was: production.ERROR: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ‘classification’.

The error implies a database migration may not have completed, you can run php artisan migrate to check for any un-run migrations.