Upgrade 4.5.18 to 4.5.46 fail

Well, I read all the documentation and some feedback here on the community support forum. I’ve uploaded all files (except .htaccess) but ended in a problem with Laravel.
I did not wanted to hijack the previous topic I asked about so now I encountered an issue, it might worth the dedicated topic.
InvoiceNinja current version 4.5.18 and wanted to update it to 4.5.46 so that I can plan an migration to version 5.
InvoiceNinja is currently hosted on a shared web hosting using a sub-domain (both root .htaccess and public .htaccess have been modified).

As far as I understand it seems there is an issue with Laravel/Symfony but I’m not really sure what could I do to fix this issue though.
I just uploaded new files, tried to access to my invoiceninja instance and got that error down below

Lockey

[2021-11-08T01:16:01.803887+00:00] production.ERROR: 
[stacktrace] 2021-11-08 01:16:01 Too few arguments to function Symfony\Component\HttpFoundation\Request::setTrustedProxies(), 
1 passed in /flex/storage/domain.tld/site/ninja/app/Http/Middleware/StartupCheck.php on line 41 and exactly 2 expected: 
#0 /flex/storage/domain.tld/site/ninja/app/Http/Middleware/StartupCheck.php(41): Symfony\Component\HttpFoundation\Request::setTrustedProxies(Array) 
#1 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\Http\Middleware\StartupCheck->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#2 /flex/storage/domain.tld/site/ninja/app/Http/Middleware/QueryLogging.php(32): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#3 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\Http\Middleware\QueryLogging->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#4 /flex/storage/domain.tld/site/ninja/app/Http/Middleware/DuplicateSubmissionCheck.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#5 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\Http\Middleware\DuplicateSubmissionCheck->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#6 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#7 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#8 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#9 /flex/storage/domain.tld/site/ninja/app/Http/Middleware/VerifyCsrfToken.php(44): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#10 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): App\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#11 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#12 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#13 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#14 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#15 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#16 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#17 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#18 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#19 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#20 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(683): Illuminate\Pipeline\Pipeline->then(Object(Closure)) 
#21 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) 
#22 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route)) 
#23 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Routing/Router.php(613): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) 
#24 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) 
#25 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) 
#26 /flex/storage/domain.tld/site/ninja/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(60): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#27 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#28 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#29 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure)) 
#30 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) 
#31 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure)) 
#32 /flex/storage/domain.tld/site/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) 
#33 /flex/storage/domain.tld/site/ninja/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) 
#34 {main}    
{"context":"PHP","user_id":0,"account_id":0,"user_name":"","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0","locale":"en","ip":"WW.XX.YY.ZZ","count":16,"is_console":"no","is_api":"no","db_server":"mysql","url":"/"} []

Hi,

This may help:

Thank you for that reply.
I was not sure if it would be the right thing to do.
I’ve modified but now … a different problem if I access to ninja.domain.tld/update:

SQLSTATE[HY000] [1045] Access denied for user 'db-name'@'ww.xx.yy.zz' (using password: YES) (SQL: SELECT engine FROM information_schema.TABLES WHERE TABLE_NAME='clients' AND TABLE_SCHEMA='ninja')

This is a weird issue as I did not update or changed my database password so I’m not sure why it triggers an “access denied”.

Update: I’ve been able to log into PhpMyAdmin so this user has definitely right to access to the database, and I also tried to execute the SQL request (= no results)…

Update2: I’ve modified my database user’s password as it included a special character (#), and … it seems, upgrade is OK. :slight_smile: