Lumen shows Unknown named parameter $searchEndPoint error when upgrading to php8 - php

We are running Lumen (7.2.2) (Laravel Components ^7.0) and recently upgraded to php 8 on Elastic Beanstalk.
The same codebase works correctly on php 7.4 but since upgrading we get this error from the lumen logs:
{main}
"}
[2023-01-25 11:07:47] local.ERROR: Unknown named parameter $searchEndPoint {"exception":"[object] (Error(code: 0): Unknown named parameter $searchEndPoint at /var/app/current/vendor/illuminate/container/BoundMethod.php:37)
[stacktrace]
#0 /var/app/current/vendor/illuminate/container/BoundMethod.php(37): call_user_func_array(Array, Array)
#1 /var/app/current/vendor/illuminate/container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#2 /var/app/current/vendor/illuminate/container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#3 /var/app/current/vendor/illuminate/container/BoundMethod.php(39): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Laravel\\Lumen\\Application), Array, Object(Closure))
#4 /var/app/current/vendor/illuminate/container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Laravel\\Lumen\\Application), Array, Array, NULL)
#5 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(386): Illuminate\\Container\\Container->call(Array, Array)
#6 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(352): Laravel\\Lumen\\Application->callControllerCallable(Array, Array)
#7 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(326): Laravel\\Lumen\\Application->callLumenController(Object(App\\Http\\Controllers\\ServicesController), 'initMicroServic...', Array)
#8 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(279): Laravel\\Lumen\\Application->callControllerAction(Array)
#9 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(259): Laravel\\Lumen\\Application->callActionOnArrayBasedRoute(Array)
#10 [internal function]: Laravel\\Lumen\\Application->Laravel\\Lumen\\Concerns\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#11 /var/app/current/vendor/laravel/lumen-framework/src/Routing/Pipeline.php(48): call_user_func(Object(Closure), Object(Laravel\\Lumen\\Http\\Request))
#12 /var/app/current/app/Http/Middleware/Authenticate.php(42): Laravel\\Lumen\\Routing\\Pipeline->Laravel\\Lumen\\Routing\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#13 /var/app/current/vendor/illuminate/pipeline/Pipeline.php(167): App\\Http\\Middleware\\Authenticate->handle(Object(Laravel\\Lumen\\Http\\Request), Object(Closure))
#14 [internal function]: Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#15 /var/app/current/vendor/laravel/lumen-framework/src/Routing/Pipeline.php(30): call_user_func(Object(Closure), Object(Laravel\\Lumen\\Http\\Request))
#16 /var/app/current/vendor/illuminate/pipeline/Pipeline.php(103): Laravel\\Lumen\\Routing\\Pipeline->Laravel\\Lumen\\Routing\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#17 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(423): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#18 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(260): Laravel\\Lumen\\Application->sendThroughPipeline(Array, Object(Closure))
#19 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(234): Laravel\\Lumen\\Application->handleFoundRoute(Array)
#20 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(170): Laravel\\Lumen\\Application->handleDispatcherResponse(Array)
#21 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(426): Laravel\\Lumen\\Application->Laravel\\Lumen\\Concerns\\{closure}(Object(Laravel\\Lumen\\Http\\Request))
#22 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(172): Laravel\\Lumen\\Application->sendThroughPipeline(Array, Object(Closure))
#23 /var/app/current/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php(109): Laravel\\Lumen\\Application->dispatch(NULL)
#24 /var/app/current/public/index.php(28): Laravel\\Lumen\\Application->run()
#25 {main}
"} ```
Web page error:
array(4) { [0]=> int(1063678) [1]=> string(36) "5a44454-2004-499d-adff-4148694" [2]=> string(5) "35.41" [3]=> int(1) } array(1) { [0]=> string(202) "Server error: `POST http://testserver-1.elasticbeanstalk.com/api/decisions/searches_data` resulted in a `500 Internal Server Error` response: { "message": "Server Error" } " }
Because it shows a 500 error the devs regard this as a server issue but the Lumen logs suggest otherwise ?
Any suggestions on fixing this, I strongly believe it is related to the php 8 upgrade.

Related

I have reinstalled composer and xampp now I am getting this error Uncaught GuzzleHttp\Exception\ClientException: Client error:

My code was working fine I was using firebase with php then I reinstalled composer and xampp now this error is appearing on my screen
<b>Fatal error</b>: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://oauth2.googleapis.com/token` resulted in a 400 Bad Request response:
{"error":"invalid_grant","error_description":"Invalid JWT: Token must be a short-lived token (60 minutes) and in a reaso (truncated...)
in C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113
Stack trace:
#0 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Middleware.php(69): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response))
#2 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}()
#4 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(248): GuzzleHttp\Promise\TaskQueue->run(true)
#5 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#7 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(123): GuzzleHttp\Promise\Promise->wait()
#10 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\HttpHandler\Guzzle6HttpHandler.php(47): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request), Array)
#11 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\OAuth2.php(544): Google\Auth\HttpHandler\Guzzle6HttpHandler->__invoke(Object(GuzzleHttp\Psr7\Request))
#12 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\Credentials\ServiceAccountCredentials.php(205): Google\Auth\OAuth2->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#13 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\FetchAuthTokenCache.php(79): Google\Auth\Credentials\ServiceAccountCredentials->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#14 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\Middleware\AuthTokenMiddleware.php(122): Google\Auth\FetchAuthTokenCache->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#15 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\Middleware\AuthTokenMiddleware.php(102): Google\Auth\Middleware\AuthTokenMiddleware->fetchToken()
#16 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\PrepareBodyMiddleware.php(35): Google\Auth\Middleware\AuthTokenMiddleware->Google\Auth\Middleware{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#17 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#18 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#19 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#20 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#21 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(331): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#22 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(107): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#23 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(123): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#24 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(192): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request), Array)
#25 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(42): Kreait\Firebase\Database\ApiClient->requestApi('GET', Object(GuzzleHttp\Psr7\Uri))
#26 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(295): Kreait\Firebase\Database\ApiClient->get(Object(GuzzleHttp\Psr7\Uri))
#27 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(262): Kreait\Firebase\Database\Reference->getSnapshot()
#28 C:\xampp\htdocs\pakistanPlants\header.php(140): Kreait\Firebase\Database\Reference->getValue()
#29 C:\xampp\htdocs\pakistanPlants\index.php(2): include('C:\xampp\htdocs...')
#30 {main}
Next Kreait\Firebase\Exception\Database\DatabaseError: invalid_grant in C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Exception\DatabaseApiExceptionConverter.php:64
Stack trace:
#0 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Exception\DatabaseApiExceptionConverter.php(33): Kreait\Firebase\Exception\DatabaseApiExceptionConverter->convertGuzzleRequestException(Object(GuzzleHttp\Exception\ClientException))
#1 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(194): Kreait\Firebase\Exception\DatabaseApiExceptionConverter->convertException(Object(GuzzleHttp\Exception\ClientException))
#2 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(42): Kreait\Firebase\Database\ApiClient->requestApi('GET', Object(GuzzleHttp\Psr7\Uri))
#3 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(295): Kreait\Firebase\Database\ApiClient->get(Object(GuzzleHttp\Psr7\Uri))
#4 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(262): Kreait\Firebase\Database\Reference->getSnapshot()
#5 C:\xampp\htdocs\pakistanPlants\header.php(140): Kreait\Firebase\Database\Reference->getValue()
#6 C:\xampp\htdocs\pakistanPlants\index.php(2): include('C:\xampp\htdocs...')
#7 {main}
thrown in <b>C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Exception\DatabaseApiExceptionConverter.php</b> on line <b>64</b><br />
Thanks in advance :)
I want to run my project as usual

Laravel Passport JWT authentication failing

Out of the blue I started getting this error in production when trying to create a JWT through passport, running on Ubuntu/apache2. As far as I'm aware nothing was changed on the server, no installs, no deployments, it just stopped working.
PHP 7.3
OpenSSL 1.0.1f
Laravel 5.8
production.ERROR: There was an error while creating the signature: error:04066044:rsa routines:rsa_ossl_private_encrypt:internal error {"exception":"[object] (InvalidArgumentException(code: 0): There was an error while creating the signature: error:04066044:rsa routines:rsa_ossl_private_encrypt:internal error at /api/vendor/lcobucci/jwt/src/Signer/OpenSSL.php:27)
[stacktrace]
#0 /api/vendor/lcobucci/jwt/src/Signer/BaseSigner.php(36): Lcobucci\\JWT\\Signer\\OpenSSL->createHash('eyJ0eXAiOiJKV1Q...', Object(Lcobucci\\JWT\\Signer\\Key))
#1 /api/vendor/lcobucci/jwt/src/Builder.php(470): Lcobucci\\JWT\\Signer\\BaseSigner->sign('eyJ0eXAiOiJKV1Q...', Object(Lcobucci\\JWT\\Signer\\Key))
#2 /api/vendor/lcobucci/jwt/src/Builder.php(450): Lcobucci\\JWT\\Builder->createSignature(Array, Object(Lcobucci\\JWT\\Signer\\Rsa\\Sha256), Object(Lcobucci\\JWT\\Signer\\Key))
#3 /api/vendor/league/oauth2-server/src/Entities/Traits/AccessTokenTrait.php(41): Lcobucci\\JWT\\Builder->getToken()
#4 /api/vendor/league/oauth2-server/src/ResponseTypes/BearerTokenResponse.php(28): Laravel\\Passport\\Bridge\\AccessToken->convertToJWT(Object(League\\OAuth2\\Server\\CryptKey))
#5 /api/vendor/league/oauth2-server/src/AuthorizationServer.php(202): League\\OAuth2\\Server\\ResponseTypes\\BearerTokenResponse->generateHttpResponse(Object(Zend\\Diactoros\\Response))
#6 /api/vendor/laravel/passport/src/Http/Controllers/AccessTokenController.php(63): League\\OAuth2\\Server\\AuthorizationServer->respondToAccessTokenRequest(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))
#7 /api/vendor/laravel/passport/src/Http/Controllers/HandlesOAuthErrors.php(28): Laravel\\Passport\\Http\\Controllers\\AccessTokenController->Laravel\\Passport\\Http\\Controllers\\{closure}()
#8 /api/vendor/laravel/passport/src/Http/Controllers/AccessTokenController.php(65): Laravel\\Passport\\Http\\Controllers\\AccessTokenController->withErrorHandling(Object(Closure))
#9 /api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(48): Laravel\\Passport\\Http\\Controllers\\AccessTokenController->issueToken(Object(Zend\\Diactoros\\ServerRequest))
#10 /api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Laravel\\Passport\\Http\\Controllers\\AccessTokenController), 'issueToken')
#11 /api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\\Routing\\Route->runController()
#12 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\\Routing\\Route->run()
#13 /api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#14 /api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(58): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#16 /api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#18 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#19 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(657): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#20 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(623): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#21 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#22 /api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#23 /api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
I also just noticed another version of this error. Nothing changed so I don't know why this error did.
Note this bit: rsa routines:RSA_setup_blinding:BN lib
production.ERROR: There was an error while creating the signature: error:04088003:rsa routines:RSA_setup_blinding:BN lib {"exception":"[object] (InvalidArgumentException(code: 0): There was an error while creating the signature: error:04088003:rsa routines:RSA_setup_blinding:BN lib at /api/vendor/lcobucci/jwt/src/Signer/OpenSSL.php:27)
[stacktrace]
#0 /api/vendor/lcobucci/jwt/src/Signer/BaseSigner.php(36): Lcobucci\\JWT\\Signer\\OpenSSL->createHash('eyJ0eXAiOiJKV1Q...', Object(Lcobucci\\JWT\\Signer\\Key))
#1 /api/vendor/lcobucci/jwt/src/Builder.php(470): Lcobucci\\JWT\\Signer\\BaseSigner->sign('eyJ0eXAiOiJKV1Q...', Object(Lcobucci\\JWT\\Signer\\Key))
#2 /api/vendor/lcobucci/jwt/src/Builder.php(450): Lcobucci\\JWT\\Builder->createSignature(Array, Object(Lcobucci\\JWT\\Signer\\Rsa\\Sha256), Object(Lcobucci\\JWT\\Signer\\Key))
#3 /api/vendor/league/oauth2-server/src/Entities/Traits/AccessTokenTrait.php(41): Lcobucci\\JWT\\Builder->getToken()
#4 /api/vendor/league/oauth2-server/src/ResponseTypes/BearerTokenResponse.php(28): Laravel\\Passport\\Bridge\\AccessToken->convertToJWT(Object(League\\OAuth2\\Server\\CryptKey))
#5 /api/vendor/league/oauth2-server/src/AuthorizationServer.php(202): League\\OAuth2\\Server\\ResponseTypes\\BearerTokenResponse->generateHttpResponse(Object(Zend\\Diactoros\\Response))
#6 /api/vendor/laravel/passport/src/Http/Controllers/AccessTokenController.php(63): League\\OAuth2\\Server\\AuthorizationServer->respondToAccessTokenRequest(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response))
#7 /api/vendor/laravel/passport/src/Http/Controllers/HandlesOAuthErrors.php(28): Laravel\\Passport\\Http\\Controllers\\AccessTokenController->Laravel\\Passport\\Http\\Controllers\\{closure}()
#8 /api/vendor/laravel/passport/src/Http/Controllers/AccessTokenController.php(65): Laravel\\Passport\\Http\\Controllers\\AccessTokenController->withErrorHandling(Object(Closure))
#9 /api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(48): Laravel\\Passport\\Http\\Controllers\\AccessTokenController->issueToken(Object(Zend\\Diactoros\\ServerRequest))
#10 /api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Laravel\\Passport\\Http\\Controllers\\AccessTokenController), 'issueToken')
#11 /api/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\\Routing\\Route->runController()
#12 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\\Routing\\Route->run()
#13 /api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#14 /api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(58): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#15 /api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#16 /api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#17 /api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#18 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#19 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(657): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#20 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(623): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#21 /api/vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#22 /api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#23 /api/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#24 /api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
I have the same issue today. Spent a lot of time and not found solution.
And this algo helped for me
sudo certbot
choose needed domain then enter '2' two times to renew ssl certificat
then delete keys from storage folder, also delete from database table oauth_clients
php artisan passport:install
check permissions for keys in storage folder
sudo service apache2 restart
And after that laravel passport started to login users. It seems for me that some problem was with certificat, because the same bunch of commands without certificat renew not fix auth work.

Testing Laravel with jMeter.. Error reading config

I´m trying to run a performance test in a simple web developed with Laravel 5.5 as backend.
It´s a simple test, only one sample getting the home page. When the test begins, all works correctly, but earlier or later, randomly, the request gets Error 500. No matters the concurrent users, ocurrs with 2 or 10 users.
This is the plan used: jMeter Laravel-Core Simple Request JMX
Download jMeter 3.13
File > Open > Select jmx
Configure the User Defined Variables
Run test
Screenshot with a fail example with 5 users.
Reviewing the laravel.log, the error is:
[2017-11-21 14:38:16] production.ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)
[stacktrace]
#0 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1035): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(NULL)
#1 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(46): tap(NULL, Object(Closure))
#2 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\\Encryption\\EncryptionServiceProvider->key(Array)
#3 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build(Object(Closure))
#5 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('encrypter', Array)
#6 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('encrypter', Array)
#7 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(885): Illuminate\\Foundation\\Application->make('encrypter')
#8 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(813): Illuminate\\Container\\Container->resolveClass(Object(ReflectionParameter))
#9 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(779): Illuminate\\Container\\Container->resolveDependencies(Array)
#10 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('App\\\\Http\\\\Middle...')
#11 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Middle...', Array)
#12 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('App\\\\Http\\\\Middle...', Array)
#13 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(138): Illuminate\\Foundation\\Application->make('App\\\\Http\\\\Middle...')
#14 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#17 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#18 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#19 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#20 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#21 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#22 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(58): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#23 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/fideloper/proxy/src/TrustProxies.php(56): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#29 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#35 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#38 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#41 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /opt/http-2.4.12_2/htdocs/laravel-web/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"}
[2017-11-21 14:38:16] production.ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)
[stacktrace]
#0 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1035): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(NULL)
#1 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(46): tap(NULL, Object(Closure))
#2 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\\Encryption\\EncryptionServiceProvider->key(Array)
#3 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build(Object(Closure))
#5 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('encrypter', Array)
#6 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('encrypter', Array)
#7 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(885): Illuminate\\Foundation\\Application->make('encrypter')
#8 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(813): Illuminate\\Container\\Container->resolveClass(Object(ReflectionParameter))
#9 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(779): Illuminate\\Container\\Container->resolveDependencies(Array)
#10 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('App\\\\Http\\\\Middle...')
#11 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Middle...', Array)
#12 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('App\\\\Http\\\\Middle...', Array)
#13 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(215): Illuminate\\Foundation\\Application->make('App\\\\Http\\\\Middle...')
#14 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#15 /opt/http-2.4.12_2/htdocs/laravel-web/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#16 {main}
"}
In my .env file, I have APP_ENV=local not APP_ENV=production and the APP_KEY is set correctly (all earlier requests load correctly). I tried setting APP_ENV=production, but the problem persist...
In other laravel project tested, the error is:
[2017-11-20 16:19:37] production.ERROR: PDOException: SQLSTATE[HY000] [1044] Access denied for user ''#'localhost' to database 'forge' in C:\xampp_7.0.9\htdocs\backpack-demo\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:43
Stack trace:
#0 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(43): PDO->__construct('mysql:host=loca...', 'forge', '', Array)
#1 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(116): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'forge', '', Array)
#2 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(56): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=loca...', 'forge', '', Array)
#3 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#4 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php(61): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#6 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(956): call_user_func(Object(Closure))
#7 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(824): Illuminate\Database\Connection->getPdo()
#8 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(709): Illuminate\Database\Connection->reconnectIfMissingConnection()
#9 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(351): Illuminate\Database\Connection->run('select column_n...', Array, Object(Closure))
#10 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlBuilder.php(38): Illuminate\Database\Connection->select('select column_n...', Array)
#11 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(238): Illuminate\Database\Schema\MySqlBuilder->getColumnListing('settings')
#12 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\backpack\settings\src\SettingsServiceProvider.php(29): Illuminate\Support\Facades\Facade::__callStatic('getColumnListin...', Array)
#13 [internal function]: Backpack\Settings\SettingsServiceProvider->boot()
#14 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Container\Container.php(507): call_user_func_array(Array, Array)
#15 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(759): Illuminate\Container\Container->call(Array)
#16 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(742): Illuminate\Foundation\Application->bootProvider(Object(Backpack\Settings\SettingsServiceProvider))
#17 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Backpack\Settings\SettingsServiceProvider), 25)
#18 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(743): array_walk(Array, Object(Closure))
#19 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\BootProviders.php(17): Illuminate\Foundation\Application->boot()
#20 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(203): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#21 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(253): Illuminate\Foundation\Application->bootstrapWith(Array)
#22 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(144): Illuminate\Foundation\Http\Kernel->bootstrap()
#23 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#24 C:\xampp_7.0.9\htdocs\backpack-demo\public\index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#25 {main}
Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[HY000] [1044] Access denied for user ''#'localhost' to database 'forge' in C:\xampp_7.0.9\htdocs\backpack-demo\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:47
Stack trace:
#0 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(116): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'forge', '', Array)
#1 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(56): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=loca...', 'forge', '', Array)
#2 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#3 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php(61): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#5 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(956): call_user_func(Object(Closure))
#6 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(824): Illuminate\Database\Connection->getPdo()
#7 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(709): Illuminate\Database\Connection->reconnectIfMissingConnection()
#8 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(351): Illuminate\Database\Connection->run('select column_n...', Array, Object(Closure))
#9 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlBuilder.php(38): Illuminate\Database\Connection->select('select column_n...', Array)
#10 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(238): Illuminate\Database\Schema\MySqlBuilder->getColumnListing('settings')
#11 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\backpack\settings\src\SettingsServiceProvider.php(29): Illuminate\Support\Facades\Facade::__callStatic('getColumnListin...', Array)
#12 [internal function]: Backpack\Settings\SettingsServiceProvider->boot()
#13 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Container\Container.php(507): call_user_func_array(Array, Array)
#14 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(759): Illuminate\Container\Container->call(Array)
#15 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(742): Illuminate\Foundation\Application->bootProvider(Object(Backpack\Settings\SettingsServiceProvider))
#16 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Backpack\Settings\SettingsServiceProvider), 25)
#17 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(743): array_walk(Array, Object(Closure))
#18 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\BootProviders.php(17): Illuminate\Foundation\Application->boot()
#19 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(203): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#20 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(253): Illuminate\Foundation\Application->bootstrapWith(Array)
#21 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(144): Illuminate\Foundation\Http\Kernel->bootstrap()
#22 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#23 C:\xampp_7.0.9\htdocs\backpack-demo\public\index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#24 {main}
So, I think, the problem it´s that sometimes, the config read fails and get the default values especifies in the config/app.php.
Has anyone had this problem or can test a Laravel project with the jmx provided?
Thanks!
This is a laravel configuration issue:
You need to execute php artisan config:cache command. and check env configuration.
Add an env configuration option to your app.php configuration file that looks like the following:
'env' => env('APP_ENV', 'production'),
Caching And Env
If you are using the config:cache command during deployment, you must make sure that you are only calling the env function from within your configuration files, and not from anywhere else in your application.
If you are calling envfrom within your application, it is strongly recommended you add proper configuration values to your configuration files and call env from that location instead, allowing you to convert your env calls to config calls.

Magento Card Payments with Paypal Pro Giving Error

When completing a card purchase I get the following error:
There was an error processing your order. Please contact us or try again later.
The Magento error log is here:
exception 'Exception' with message 'Notice: Array to string conversion in /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php on line 1060' in /home/luluinth/public_html/app/code/local/Mage/Core/functions.php:247
Stack trace:
#0 [internal function]: mageCoreErrorHandler(8, 'Array to string...', '/home/luluinth/...', 1060, Array)
#1 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1060): sprintf('PayPal NVP gate...', Array, '4f0c10ba893f2', '72.0')
#2 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1008): Mage_Paypal_Model_Api_Nvp->_handleCallErrors(Array)
#3 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(659): Mage_Paypal_Model_Api_Nvp->call('DoDirectPayment', Array)
#4 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Direct.php(343): Mage_Paypal_Model_Api_Nvp->callDoDirectPayment()
#5 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Direct.php(202): Mage_Paypal_Model_Direct->_placeOrder(Object(Mage_Sales_Model_Order_Payment), '12')
#6 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(443): Mage_Paypal_Model_Direct->capture(Object(Mage_Sales_Model_Order_Payment), '12')
#7 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Invoice.php(385): Mage_Sales_Model_Order_Payment->capture(Object(Mage_Sales_Model_Order_Invoice))
#8 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(608): Mage_Sales_Model_Order_Invoice->capture()
#9 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(410): Mage_Sales_Model_Order_Payment->_invoice()
#10 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(348): Mage_Sales_Model_Order_Payment->capture(NULL)
#11 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order.php(886): Mage_Sales_Model_Order_Payment->place()
#12 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order.php(1104): Mage_Sales_Model_Order->_placePayment()
#13 [internal function]: Mage_Sales_Model_Order->place()
#14 /home/luluinth/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(105): call_user_func(Array)
#15 /home/luluinth/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(159): Mage_Core_Model_Resource_Transaction->_runCallbacks()
#16 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(189): Mage_Core_Model_Resource_Transaction->save()
#17 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#18 /home/luluinth/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#19 /home/luluinth/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#20 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#21 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#22 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /home/luluinth/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#24 /home/luluinth/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#25 /home/luluinth/public_html/index.php(98): Mage::run('', 'store')
#26 {main}
You're trying to cast $value as a string for the comparison, but $value is an array. If $value has some kind of value you need in it (perhaps it's nested inside an array) for the comparison, then you must process it so that it is not array.
Go to that nvp.php file and do this before the if statement.
var_dump($value); die;
Or
Mage::log($value); // Check var/log/system.log with logging enabled
And just examine how the data is structured in $value. Make it into a string variable.
Here $value is a variable you can put the variable from the line number that exception is generated.
Check this and let me know if it works.

PDO Could not find driver issue

I am using the laravel framework and I am trying to get a colleagues project working on my own machine.
When I try to load the project in my browser I get this error:
PDOException thrown with message "could not find driver"
Stacktrace:
#29 PDOException in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:47
#28 PDO:__construct in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:47
#27 Illuminate\Database\Connectors\Connector:createConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php:20
#26 Illuminate\Database\Connectors\MySqlConnector:connect in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:59
#25 Illuminate\Database\Connectors\ConnectionFactory:createSingleConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:47
#24 Illuminate\Database\Connectors\ConnectionFactory:make in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php:127
#23 Illuminate\Database\DatabaseManager:makeConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php:63
#22 Illuminate\Database\DatabaseManager:connection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:2782
#21 Illuminate\Database\Eloquent\Model:resolveConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:2748
#20 Illuminate\Database\Eloquent\Model:getConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1765
#19 Illuminate\Database\Eloquent\Model:newBaseQueryBuilder in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1681
#18 Illuminate\Database\Eloquent\Model:newQuery in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:628
#17 Illuminate\Database\Eloquent\Model:all in C:\wamp\www\sportskicker.tld\app\controllers\FollowController.php:6
#16 FollowController:showWhoToFollow in <#unknown>:0
#15 call_user_func_array in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Controller.php:231
#14 Illuminate\Routing\Controller:callAction in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:93
#13 Illuminate\Routing\ControllerDispatcher:call in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:62
#12 Illuminate\Routing\ControllerDispatcher:dispatch in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Router.php:930
#11 Illuminate\Routing\Router:Illuminate\Routing\{closure} in <#unknown>:0
#10 call_user_func_array in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Route.php:105
#9 Illuminate\Routing\Route:run in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Router.php:996
#8 Illuminate\Routing\Router:dispatchToRoute in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Router.php:964
#7 Illuminate\Routing\Router:dispatch in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:738
#6 Illuminate\Foundation\Application:dispatch in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:708
#5 Illuminate\Foundation\Application:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Session\Middleware.php:72
#4 Illuminate\Session\Middleware:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Cookie\Queue.php:47
#3 Illuminate\Cookie\Queue:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Cookie\Guard.php:51
#2 Illuminate\Cookie\Guard:handle in C:\wamp\www\sportskicker.tld\vendor\stack\builder\src\Stack\StackedHttpKernel.php:23
#1 Stack\StackedHttpKernel:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:606
#0 Illuminate\Foundation\Application:run in C:\wamp\www\sportskicker.tld\public\index.php:55
I cannot figure out what I can do to fix it. If anyone could provide some help it would be much appreciated. I am running WAMP2.2 with PHP v5.4.31

Categories