InvoiceNinja 5.8.x to 5.10.13 - Can no longer log in

I’ve had a working installation of InvoiceNinja v5 on Ubuntu 22.04 LTS for quite awhile now working very smoothly in both the web and mobile apps, and I’ve just attempted an upgrade to v5.10 earlier today from v5.8.x. After upgrading, when I attempted to run the /update?secret=, I came across the message saying I needed PHP 8.2. I was on 8.1. So, I decided to go to 8.3, seeing at least a few others on this forum mention that 8.3 was working.

I just finished my PHP 8.3 upgrade, ensuring I have all the modules installed that I need, and low and behold, every web application on the server works perfectly with PHP 8.3 FPM except InvoiceNinja.

After the PHP upgrade, I again tried to run the update URL, but this time, I just got a white page in the browser, and while tail’ing /var/log/apache2/error.log, this appears:

[Sun Jul 28 00:18:57.444128 2024] [proxy_fcgi:error] [pid 2000:tid 139909863609920] [remote :27283] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ReflectionException: Class “view” does not exist in /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:938\nStack trace:\n#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(938): ReflectionClass->__construct()\n#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()\n#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()\n#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()\n#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()\n#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php…; PHP message: PHP Fatal error: Uncaught ReflectionException: Class “view” does not exist in /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:938\nStack trace:\n#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(938): ReflectionClass->__construct()\n#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()\n#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()\n#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()\n#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()\n#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php…’

If I go to the login page, the login page does appear, but it no longer accepts my credentials.

If I roll back by restoring a copy of the web files and a copy of the database before upgrade, and then try loading InvoiceNinja in the web, I’m able to log in, but the interface immediately crashes when I try to load it. I see the side bar appear for a brief moment, and then the screen goes white, leading me to believe that the 5.8.x version of InvoiceNinja isn’t happy with PHP 8.3.

I currently have a non-working installation, but everything else on the server works perfectly after the PHP upgrade. How can I recover from this? Is there a bug in the latest version?

I should note as well that the database appears to be perfectly in tact with my user account, all my client records, and all my invoice records, and the .env file in the root of the installation directory appears untouched and correct and pointing at the right database.

Here’s the /storage/logs/laravel log from when I attempt to run the update URL:

[2024-07-28 07:34:37] production.ERROR: Class “Spatie\LaravelData\LaravelDataServiceProvider” not found {“exception”:"[object] (Error(code: 0): Class "Spatie\LaravelData\LaravelDataServiceProvider" not found at /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:206)
[stacktrace]
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(142): Illuminate\Foundation\ProviderRepository->createProvider()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(61): Illuminate\Foundation\ProviderRepository->compileManifest()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(843): Illuminate\Foundation\ProviderRepository->load()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(37): Illuminate\Foundation\Application->registerConfiguredProviders()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(316): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\Foundation\Application->bootstrapWith()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\Foundation\Http\Kernel->bootstrap()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#8 /InvoiceNinjaRoot/public/index.php(56): Illuminate\Foundation\Http\Kernel->handle()
#9 {main}
“}
[2024-07-28 07:34:37] production.ERROR: Target class [view] does not exist. {“exception”:”[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Target class [view] does not exist. at /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:940)
[stacktrace]
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(1570): Illuminate\Foundation\Application->make()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): Illuminate\Container\Container->offsetGet()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(208): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(351): Illuminate\Support\Facades\Facade::getFacadeRoot()
#8 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(16): Illuminate\Support\Facades\Facade::__callStatic()
#9 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(907): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#10 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(882): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#11 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(807): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#12 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(698): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#13 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(587): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#14 /InvoiceNinjaRoot/app/Exceptions/Handler.php(247): Illuminate\Foundation\Exceptions\Handler->render()
#15 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(509): App\Exceptions\Handler->render()
#16 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(148): Illuminate\Foundation\Http\Kernel->renderException()
#17 /InvoiceNinjaRoot/public/index.php(56): Illuminate\Foundation\Http\Kernel->handle()
#18 {main}

[previous exception] [object] (ReflectionException(code: -1): Class "view" does not exist at /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:938)
[stacktrace]
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(938): ReflectionClass->__construct()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(1570): Illuminate\Foundation\Application->make()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): Illuminate\Container\Container->offsetGet()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(208): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#8 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(351): Illuminate\Support\Facades\Facade::getFacadeRoot()
#9 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(16): Illuminate\Support\Facades\Facade::__callStatic()
#10 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(907): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#11 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(882): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#12 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(807): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#13 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(698): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#14 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(587): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#15 /InvoiceNinjaRoot/app/Exceptions/Handler.php(247): Illuminate\Foundation\Exceptions\Handler->render()
#16 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(509): App\Exceptions\Handler->render()
#17 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(148): Illuminate\Foundation\Http\Kernel->renderException()
#18 /InvoiceNinjaRoot/public/index.php(56): Illuminate\Foundation\Http\Kernel->handle()
#19 {main}
"}
[2024-07-28 07:34:37] production.ERROR: Uncaught ReflectionException: Class “view” does not exist in /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:938
Stack trace:
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(938): ReflectionClass->__construct()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(1570): Illuminate\Foundation\Application->make()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): Illuminate\Container\Container->offsetGet()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(208): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#8 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(351): Illuminate\Support\Facades\Facade::getFacadeRoot()
#9 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(16): Illuminate\Support\Facades\Facade::__callStatic()
#10 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(907): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#11 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(882): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#12 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(807): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#13 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(698): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#14 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(587): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#15 /InvoiceNinjaRoot/app/Exceptions/Handler.php(247): Illuminate\Foundation\Exceptions\Handler->render()
#16 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(219): App\Exceptions\Handler->render()
#17 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(196): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
#18 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(256): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#19 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap{closure}()
#20 {main}

Next Illuminate\Contracts\Container\BindingResolutionException: Target class [view] does not exist. in /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:940
Stack trace:
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(1570): Illuminate\Foundation\Application->make()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): Illuminate\Container\Container->offsetGet()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(208): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(351): Illuminate\Support\Facades\Facade::getFacadeRoot()
#8 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(16): Illuminate\Support\Facades\Facade::__callStatic()
#9 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(907): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#10 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(882): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#11 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(807): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#12 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(698): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#13 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(587): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#14 /InvoiceNinjaRoot/app/Exceptions/Handler.php(247): Illuminate\Foundation\Exceptions\Handler->render()
#15 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(219): App\Exceptions\Handler->render()
#16 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(196): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
#17 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(256): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#18 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap{closure}()
#19 {main}
thrown {“exception”:"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Uncaught ReflectionException: Class "view" does not exist in /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:938
Stack trace:
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(938): ReflectionClass->__construct()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(1570): Illuminate\Foundation\Application->make()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): Illuminate\Container\Container->offsetGet()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(208): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#8 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(351): Illuminate\Support\Facades\Facade::getFacadeRoot()
#9 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(16): Illuminate\Support\Facades\Facade::__callStatic()
#10 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(907): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#11 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(882): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#12 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(807): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#13 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(698): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#14 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(587): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#15 /InvoiceNinjaRoot/app/Exceptions/Handler.php(247): Illuminate\Foundation\Exceptions\Handler->render()
#16 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(219): App\Exceptions\Handler->render()
#17 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(196): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
#18 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(256): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#19 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#20 {main}

Next Illuminate\Contracts\Container\BindingResolutionException: Target class [view] does not exist. in /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:940
Stack trace:
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(815): Illuminate\Container\Container->build()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1046): Illuminate\Container\Container->resolve()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(751): Illuminate\Foundation\Application->resolve()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1028): Illuminate\Container\Container->make()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php(1570): Illuminate\Foundation\Application->make()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): Illuminate\Container\Container->offsetGet()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(208): Illuminate\Support\Facades\Facade::resolveFacadeInstance()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(351): Illuminate\Support\Facades\Facade::getFacadeRoot()
#8 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/RegisterErrorViewPaths.php(16): Illuminate\Support\Facades\Facade::__callStatic()
#9 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(907): Illuminate\Foundation\Exceptions\RegisterErrorViewPaths->__invoke()
#10 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(882): Illuminate\Foundation\Exceptions\Handler->registerErrorViewPaths()
#11 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(807): Illuminate\Foundation\Exceptions\Handler->renderHttpException()
#12 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(698): Illuminate\Foundation\Exceptions\Handler->prepareResponse()
#13 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(587): Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse()
#14 /InvoiceNinjaRoot/app/Exceptions/Handler.php(247): Illuminate\Foundation\Exceptions\Handler->render()
#15 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(219): App\Exceptions\Handler->render()
#16 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(196): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
#17 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(256): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#18 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#19 {main}
thrown at /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Container/Container.php:940)
[stacktrace]
#0 {main}
"}

Here’s the laravel log from when I attempt to login:

[2024-07-28 07:37:44] production.ERROR: Class “Spatie\LaravelData\LaravelDataServiceProvider” not found {“exception”:"[object] (Error(code: 0): Class "Spatie\LaravelData\LaravelDataServiceProvider" not found at /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:206)
[stacktrace]
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(142): Illuminate\Foundation\ProviderRepository->createProvider()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(61): Illuminate\Foundation\ProviderRepository->compileManifest()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(843): Illuminate\Foundation\ProviderRepository->load()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(37): Illuminate\Foundation\Application->registerConfiguredProviders()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(316): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(186): Illuminate\Foundation\Application->bootstrapWith()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\Foundation\Http\Kernel->bootstrap()
#7 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#8 /InvoiceNinjaRoot/public/index.php(56): Illuminate\Foundation\Http\Kernel->handle()
#9 {main}
"}

Here’s the laravel log that just spews out without me doing anything every minute or so (probably a cron):

[2024-07-28 07:39:02] production.ERROR: Class “Spatie\LaravelData\LaravelDataServiceProvider” not found {“exception”:"[object] (Error(code: 0): Class "Spatie\LaravelData\LaravelDataServiceProvider" not found at /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:206)
[stacktrace]
#0 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(142): Illuminate\Foundation\ProviderRepository->createProvider()
#1 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(61): Illuminate\Foundation\ProviderRepository->compileManifest()
#2 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(843): Illuminate\Foundation\ProviderRepository->load()
#3 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(37): Illuminate\Foundation\Application->registerConfiguredProviders()
#4 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(316): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap()
#5 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(470): Illuminate\Foundation\Application->bootstrapWith()
#6 /InvoiceNinjaRoot/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(194): Illuminate\Foundation\Console\Kernel->bootstrap()
#7 /InvoiceNinjaRoot/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#8 {main}
"}

Hi,

It may help to empty the bootstrap/cache/ folder.

Another option is to setup a clean install of the app and then copy the .env file and database using mysqldump.

It may help to empty the bootstrap/cache/ folder.

This did it; thanks! I was able to log in after this.

Whoa…quite the change in this version. I see a number of bugs and strange behaviour already. I’ll start new topics for those if they don’t exist already. Thanks again!

Thanks for the update, glad to hear it’s working!

You most likely changed to the new web app.

The old interface is still available as a desktop app.

You most likely changed to the new web app.

I believe so, yes. Is this the React app that’s been in the works for awhile?

A couple of the weird things I was experiencing I just fixed, thinking “maybe now that I can load this, I can try a “update” again”, so I revisited the update URL and retried one of the things that was showing “something went wrong”, and that’s now working.

I’m still a little confused as to why on the Dashboard, under Upcoming Invoices, it lists about 50ish invoices all from 10+ years ago and all long since paid with a balance of $0.

On any page, clicking refresh in the browser immediately loads a “Not Found” 404 page from InvoiceNinja. This worked in previous versions. Now, the only way to refresh is backspace the part after the root URL and hit ENTER.

On the Clients page, the ID number for clients used to be there. Now it’s a blank field in the list. Oh…nevermind, just fixed this. I modified the columns and X’d the “ID Number” field, and added the “Number” field…which creates a new column… also named “ID Number”…No wonder that didn’t work during the upgrade. That column should probably be called “Number” in both places (the column settings, and the column itself).

On the Settings > Account Management > Plan page, even though I have a paid white label license, the Plan is listed as “Self Hosted (Free)”. That seems like it should be “Self Hosted (White Label)”. Re-applying the license shows a success message and the same expiration date, but doesn’t change the text from “Free”.

Correct, it’s the new React web app.

Feel free to create issues on GitHub for any bugs you encounter.

I’m using version 5.10.13 (with php8.3) and mine clearly says ‘Plan White Label’.

I’m using version 5.10.13 (with php8.3) and mine clearly says ‘Plan White Label’.

Are you using the Flutter UI by any chance? This seems like it’s already submitted as a bug, so apparently I’m not alone.

Yes, at the moment I checked that, I had been. I primarily use React. I’ll check my computer when I get there. Thanks for the link, I’d not seen that.

@link470 Yes, you are correct. I’ve checked the React UI and mine also says ‘Self Hosted (Free)’ despite having paid for white label.

Looks like it’ll be fixed next release!

1 Like