No login - 500: Error

Hi there,
today it is not possible to log in into my selfhost. The Page shows only the “500: Server Error” message. I have reset my passwort. But the message is still there. If i try a wrong password i become the message “401: These credentials do not match our records”

In /storage/logs/laravel.log i found this:

[2021-07-19 06:44:43] production.ERROR: Call to a member function copy() on null {“userId”:1,“exception”:"[object] (Error(code: 0): Call to a member function copy() on null at /www/htdocs/w01be75a/rechnung.it-richert.de/app/Models/RecurringInvoice.php:408)
[stacktrace]
#0 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Transformers/RecurringInvoiceTransformer.php(137): App\Models\RecurringInvoice->recurringDates()
#1 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(407): App\Transformers\RecurringInvoiceTransformer->transform(Object(App\Models\RecurringInvoice))
#2 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(349): League\Fractal\Scope->fireTransformer(Object(App\Transformers\RecurringInvoiceTransformer), Object(App\Models\RecurringInvoice))
#3 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(235): League\Fractal\Scope->executeResourceTransformers()
#4 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/TransformerAbstract.php(162): League\Fractal\Scope->toArray()
#5 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/TransformerAbstract.php(128): League\Fractal\TransformerAbstract->includeResourceIfAvailable(Object(League\Fractal\Scope), Object(App\Models\Company), Array, ‘recurring_invoi…’)
#6 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(435): League\Fractal\TransformerAbstract->processIncludedResources(Object(League\Fractal\Scope), Object(App\Models\Company))
#7 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(411): League\Fractal\Scope->fireIncludedTransformers(Object(App\Transformers\CompanyTransformer), Object(App\Models\Company))
#8 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(346): League\Fractal\Scope->fireTransformer(Object(App\Transformers\CompanyTransformer), Object(App\Models\Company))
#9 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(235): League\Fractal\Scope->executeResourceTransformers()
#10 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/TransformerAbstract.php(162): League\Fractal\Scope->toArray()
#11 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/TransformerAbstract.php(128): League\Fractal\TransformerAbstract->includeResourceIfAvailable(Object(League\Fractal\Scope), Object(App\Models\CompanyUser), Array, ‘company’)
#12 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(435): League\Fractal\TransformerAbstract->processIncludedResources(Object(League\Fractal\Scope), Object(App\Models\CompanyUser))
#13 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(411): League\Fractal\Scope->fireIncludedTransformers(Object(App\Transformers\CompanyUserTransformer), Object(App\Models\CompanyUser))
#14 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(349): League\Fractal\Scope->fireTransformer(Object(App\Transformers\CompanyUserTransformer), Object(App\Models\CompanyUser))
#15 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/league/fractal/src/Scope.php(235): League\Fractal\Scope->executeResourceTransformers()
#16 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Controllers/BaseController.php(552): League\Fractal\Scope->toArray()
#17 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Controllers/Auth/LoginController.php(219): App\Http\Controllers\BaseController->timeConstrainedResponse(Object(Illuminate\Database\Eloquent\Collection))
#18 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\Auth\LoginController->apiLogin(Object(Illuminate\Http\Request))
#19 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction(‘apiLogin’, Array)
#20 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\Auth\LoginController), ‘apiLogin’)
#21 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\Routing\Route->runController()
#22 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\Routing\Route->run()
#23 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Middleware/SetEmailDb.php(47): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\SetEmailDb->handle(Object(Illuminate\Http\Request), Object(Closure))
#26 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Middleware/ApiSecretCheck.php(30): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\ApiSecretCheck->handle(Object(Illuminate\Http\Request), Object(Closure))
#28 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Middleware/Cors.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#29 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\Cors->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Middleware/QueryLogging.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\QueryLogging->handle(Object(Illuminate\Http\Request), Object(Closure))
#32 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(127): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(63): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#36 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), ‘300’, ‘1’)
#37 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Router.php(697): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#39 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Router.php(672): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#40 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#41 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#42 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#43 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#44 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Sentry\Laravel\Http\SetRequestIpMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#46 /www/htdocs/w01be75a/rechnung.it-richert.de/app/Http/Middleware/Cors.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#47 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\Cors->handle(Object(Illuminate\Http\Request), Object(Closure))
#48 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#53 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#54 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#55 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#56 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#57 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#58 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#59 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#60 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#61 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Sentry\Laravel\Tracing\Middleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#62 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#63 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#64 /www/htdocs/w01be75a/rechnung.it-richert.de/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#65 /www/htdocs/w01be75a/rechnung.it-richert.de/public/index.php(57): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#66 {main}
"}

Can anyone help me?

What version are you on? Judging by the line error, this looks like old code. I would suggest upgrading to the latest version.

Invoice Ninja version 5.1.61