Update from 5.4.9 upwards broken?

Hello,

I recently updated to 5.4.9. From then on I do nit get any info, that there is a new Version available.
Forcing the Update thru the MAC App does nothing.

what to to? will the update process be fixed?

Hi,

I believe if you manually copy over v5.9.9 it should fix updates moving forward.

I’ll try, whats the process?
Just replacing the 5.4.9 files with 5.9.9
setting the correct file permissions

Correct. You may want to backup the database and .env file.

well, do so, results in a white page …
No entries in laravel.log

Are there any errors in the web server error logs?

Which file did you use?

Thats in the nginx error log.

2024/06/21 11:21:49 [error] 1248#1248: *3601 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ReflectionException: Class “view” does not exist in /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php:912
Stack trace:
#0 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct()
#1 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#2 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(961): Illuminate\Container\Container->resolve()
#3 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()
#4 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(946): Illuminate\Container\Container->make()
#5 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate\Foundation\Application->make()
#…; PHP message: PHP Fatal error: Uncaught ReflectionException: Class “view” does not exist in /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php:912
Stack trace:
#0 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct()
#1 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#2 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(961): Illuminate\Container\Container->resolve()
#3 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()
#4 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(946): Illuminate\Container\Container->make()
#5 /var/www/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.ph

I used this file: https://github.com/invoiceninja/invoiceninja/releases/download/v5.9.9/invoiceninja.tar

It may help to use this file instead:

https://github.com/invoiceninja/invoiceninja/releases/download/v5.9.9/react-invoiceninja.tar

unfortunately not. same error.

using these php artisan commands will also throw errors:
user@invoiceninja:/var/www/invoiceninja$ sudo -u www-data php artisan optimize:clear
[sudo] password for user:

In Container.php line 914:

Target class [db.schema] does not exist.

In Container.php line 912:

Class “db.schema” does not exist

user@invoiceninja:/var/www/invoiceninja$ sudo -u www-data php artisan view:cache

In Container.php line 914:

Target class [db.schema] does not exist.

In Container.php line 912:

Class “db.schema” does not exist

got it working.

the solution was using sudo -u www-data composer dump-autoload

Glad to hear it, thanks for the update!

I did the same on a shared host webspace based on Free Source Available Invoicing, Expenses & Time-Tracking | Invoice Ninja

I downloaded the .tar unpacked it and uploaded the files to the webserver.

Either calling the base URL or url.to - This website is for sale! - url Resources and Information. shows me a 500 error page.

Will try to get some logs.

I get those messages in laravel.log:

[2024-06-21 11:10:34] production.ERROR: Class "Spatie\LaravelData\LaravelDataServiceProvider" not found {"exception":"[object] (Error(code: 0): Class \"Spatie\\LaravelData\\LaravelDataServiceProvider\" not found at /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:855)
[stacktrace]
#0 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(789): Illuminate\\Foundation\\Application->resolveProvider('Spatie\\\\LaravelD...')
#1 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('Spatie\\\\LaravelD...')
#2 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(769): Illuminate\\Foundation\\ProviderRepository->load(Array)
#3 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#4 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(263): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /www/htdocs/customer/example.com/public/index.php(56): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"} 
[2024-06-21 11:10:34] production.ERROR: Target class [translator] does not exist. (View: /www/htdocs/customer/example.com/resources/views/errors/500.blade.php) {"exception":"[object] (Illuminate\\View\\ViewException(code: 0): Target class [translator] does not exist. (View: /www/htdocs/customer/example.com/resources/views/errors/500.blade.php) at /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Container/Container.php:914)
[stacktrace]
#0 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(60): Illuminate\\View\\Engines\\CompilerEngine->handleViewException(Object(Illuminate\\Contracts\\Container\\BindingResolutionException), 0)
#1 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(72): Illuminate\\View\\Engines\\PhpEngine->evaluatePath('/www/htdocs/w01...', Array)
#2 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/View/View.php(207): Illuminate\\View\\Engines\\CompilerEngine->get('/www/htdocs/w01...', Array)
#3 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/View/View.php(190): Illuminate\\View\\View->getContents()
#4 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/View/View.php(159): Illuminate\\View\\View->renderContents()
#5 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Illuminate\\View\\View->render()
#6 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
#7 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(58): Illuminate\\Http\\Response->__construct(Object(Illuminate\\View\\View), 500, Array)
#8 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(88): Illuminate\\Routing\\ResponseFactory->make(Object(Illuminate\\View\\View), 500, Array)
#9 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(723): Illuminate\\Routing\\ResponseFactory->view('errors::500', Array, 500, Array)
#10 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(650): Illuminate\\Foundation\\Exceptions\\Handler->renderHttpException(Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#11 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(556): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(Symfony\\Component\\HttpKernel\\Exception\\HttpException))
#12 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(473): Illuminate\\Foundation\\Exceptions\\Handler->renderExceptionResponse(Object(Illuminate\\Http\\Request), Object(Error))
#13 /www/htdocs/customer/example.com/app/Exceptions/Handler.php(252): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#14 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(509): App\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(Error))
#15 /www/htdocs/customer/example.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(148): Illuminate\\Foundation\\Http\\Kernel->renderException(Object(Illuminate\\Http\\Request), Object(Error))
#16 /www/htdocs/customer/example.com/public/index.php(56): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#17 {main}

It’s only a lab system… So all god so far. After sending the tar contents of 5.9.4 to the server all works again. Will try to upload 5.9.9 once more.

Copied 5.9.9 files over again… Same result

It may help to run this:

sudo rm -r bootstrap/cache/*

From: Stuck on 5.4.4 or is this stable? - #19 by JamesKimmel

Since I have no CLI access, this is not possible

Maybe you can use FTP to clear the folder?

I can. What should I keep?

If you haven’t already tried it it may help to load /update?secret=

Otherwise, you’ll want to delete the contents of the bootstrap/cache/ folder. Keep the folder, but delete anything inside it.