kaiman
June 13, 2024, 9:42am
1
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
hillel
June 13, 2024, 10:14am
2
Hi,
It may help to load /update?secret=
kaiman
June 13, 2024, 10:23am
3
unfortunately not. Error still in log, after logging in.
fwilke
June 13, 2024, 10:25am
4
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?
kaiman
June 13, 2024, 10:27am
5
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.
hillel
June 13, 2024, 10:34am
6
You may want to setup a phpinfo page to confirm the php version.
@david do you have any ideas?
kaiman
June 13, 2024, 10:37am
7
phpinfo returns PHP Version 8.2.20.
kaiman
June 13, 2024, 10:54am
8
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’.
hillel
June 13, 2024, 11:33am
9
The error implies a database migration may not have completed, you can run php artisan migrate
to check for any un-run migrations.