I am on Laravel 5.6 with PHP 7.3. Whenever I try to login to my app it throws the following error:
Unsupported operand types {"exception":"[object]
(Symfony\Component\Debug\Exception\FatalThrowableError(code: 0):
Unsupported operand types at
/home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Support/Arr.php:219)
[stacktrace]
Here is the stack trace:
[2020-11-03 06:26:10] local.ERROR: Unsupported operand types {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Unsupported operand types at /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Support/Arr.php:219)
[stacktrace]
#0 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2642): Illuminate\\Support\\Arr::flatten(Array)
#1 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1963): Illuminate\\Database\\Query\\Builder->getBindings()
#2 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1951): Illuminate\\Database\\Query\\Builder->runSelect()
#3 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2435): Illuminate\\Database\\Query\\Builder->Illuminate\\Database\\Query\\{closure}()
#4 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1952): Illuminate\\Database\\Query\\Builder->onceWithColumns(Array, Object(Closure))
#5 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2362): Illuminate\\Database\\Query\\Builder->get(Array)
#6 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2290): Illuminate\\Database\\Query\\Builder->aggregate('count', Array)
#7 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/DatabasePresenceVerifier.php(55): Illuminate\\Database\\Query\\Builder->count()
#8 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php(645): Illuminate\\Validation\\DatabasePresenceVerifier->getCount('users', 'email', 'ehsan.elahi#zer...', NULL, NULL, Array)
#9 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php(617): Illuminate\\Validation\\Validator->getExistCount(NULL, 'users', 'email', 'ehsan.elahi#zer...', Array)
#10 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(365): Illuminate\\Validation\\Validator->validateExists('email', 'ehsan.elahi#zer...', Array, Object(Phirater\\Domain\\Validation\\CustomValidator))
#11 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(268): Illuminate\\Validation\\Validator->validateAttribute('email', 'Exists')
#12 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Validation/Validator.php(293): Illuminate\\Validation\\Validator->passes()
#13 /home/vagrant/code/phirater-l51/app/Domain/Sessions/LoginValidator.php(27): Illuminate\\Validation\\Validator->fails()
#14 /home/vagrant/code/phirater-l51/app/Domain/Configuration/ValidationCommandBus.php(84): Phirater\\Domain\\Sessions\\LoginValidator->validate(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#15 /home/vagrant/code/phirater-l51/app/Domain/Configuration/ValidationCommandBus.php(62): Phirater\\Domain\\Configuration\\ValidationCommandBus->validateCommand(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#16 /home/vagrant/code/phirater-l51/app/Domain/Core/ValidationCommandBus.php(15): Phirater\\Domain\\Configuration\\ValidationCommandBus->execute(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#17 /home/vagrant/code/phirater-l51/app/Http/Controllers/SessionsController.php(57): Phirater\\Http\\Controllers\\SessionsController->execute(Object(Phirater\\Domain\\Sessions\\LoginCommand))
#18 [internal function]: Phirater\\Http\\Controllers\\SessionsController->auth(Object(Illuminate\\Http\\Request))
#19 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#20 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('auth', Array)
#21 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(Phirater\\Http\\Controllers\\SessionsController), 'auth')
#22 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController()
#23 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(665): Illuminate\\Routing\\Route->run()
#24 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#25 /home/vagrant/code/phirater-l51/vendor/graham-campbell/throttle/src/Http/Middleware/ThrottleMiddleware.php(64): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): GrahamCampbell\\Throttle\\Http\\Middleware\\ThrottleMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure), '45', '5')
#27 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /home/vagrant/code/phirater-l51/app/Http/Middleware/RedirectIfAuthenticated.php(45): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#29 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Phirater\\Http\\Middleware\\RedirectIfAuthenticated->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#33 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(642): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#34 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(608): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#35 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Router.php(597): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#36 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#37 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#38 /home/vagrant/code/phirater-l51/app/Http/Middleware/SslRedirect.php(22): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Phirater\\Http\\Middleware\\SslRedirect->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#42 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#45 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#48 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#51 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#52 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#53 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#54 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 /home/vagrant/code/phirater-l51/vendor/dingo/api/src/Http/Middleware/Request.php(111): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#57 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(151): Dingo\\Api\\Http\\Middleware\\Request->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#58 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#59 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#60 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#61 /home/vagrant/code/phirater-l51/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#62 /home/vagrant/code/phirater-l51/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#63 {main}
"}
This is my LoginValidator class:
class LoginValidator
{
/**
* #param $command
*
* #throws LoginException
*/
public function validate($command)
{
$validator = \Validator::make(
[
'email' => $command->email,
'password' => $command->password,
],
[
'email' => ['required', 'email', 'exists:users,email'],
'password' => ['required', 'min:3']
],
[
'email.exists' => "Username and password didn't match"
]
);
if ($validator->fails()) {
throw (new LoginException())
->setErrors($validator->messages());
}
}
}
Apparently the error originates from this line if ($validator->fails()). What is going wrong here? What is the solution?
I'm new to laravel and am getting the following error when attempting to use the Factory class for validation on user input.
ReflectionException
Class Illuminate\Http\Factory does not exist
Route::post('results.edited', function (\Illuminate\Http\Request $request,
\Illuminate\Http\Factory $validator) {
$validation = $validator->make($request->all(), [
'comment' => 'required|min:10'
]);
if ($validation->fails()){
return redirect()->back()->withErrors($validation);
}
return redirect()->route('results.index')->with('info', 'Results Status Updated ' .
$request->input('result') . $request->input('comment'));
})->name('results.update');
I've tried the following with no success:
$ composer update
$ composer dump-autoload
ReflectionException thrown with message "Class Illuminate\Http\Factory does not exist"
Stacktrace:
#50 ReflectionException in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:25
#49 ReflectionParameter:getClass in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:25
#48 Illuminate\Routing\RouteSignatureParameters:Illuminate\Routing\{closure} in [internal]:0
#47 array_filter in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/RouteSignatureParameters.php:26
#46 Illuminate\Routing\RouteSignatureParameters:fromAction in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Route.php:471
#45 Illuminate\Routing\Route:signatureParameters in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/ImplicitRouteBinding.php:24
#44 Illuminate\Routing\ImplicitRouteBinding:resolveForRoute in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:787
#43 Illuminate\Routing\Router:substituteImplicitBindings in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:39
#42 Illuminate\Routing\Middleware\SubstituteBindings:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75
#39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#36 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56
#33 Illuminate\Session\Middleware\StartSession:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66
#27 Illuminate\Cookie\Middleware\EncryptCookies:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#24 Illuminate\Pipeline\Pipeline:then in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682
#23 Illuminate\Routing\Router:runRouteWithinStack in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:657
#22 Illuminate\Routing\Router:runRoute in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:623
#21 Illuminate\Routing\Router:dispatchToRoute in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Router.php:612
#20 Illuminate\Routing\Router:dispatch in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#18 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
#17 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#15 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
#14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
#11 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62
#8 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/fideloper/proxy/src/TrustProxies.php:57
#5 Fideloper\Proxy\TrustProxies:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /Applications/XAMPP/xamppfiles/htdocs/ltcm/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in /Applications/XAMPP/xamppfiles/htdocs/ltcm/public/index.php:55
Illuminate\Http\Factory class does not exist.
You need to inject Illuminate\Validation\Factory instead or even cleaner Illuminate\Contracts\Validation\Factory
I'm running a Laravel application & Elasticsearch5.5
When accessing ES on the application I get following error:
Log file:
[2019-02-22 09:43:24] local.ERROR: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"ah_index_dev2_en","index_uuid":"_na_","index":"ah_index_dev2_en"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"ah_index_dev2_en","index_uuid":"_na_","index":"ah_index_dev2_en"},"status":404} {"userId":2359,"email":"steven.gerrits.94#gmail.com","exception":"[object] (Elasticsearch\\Common\\Exceptions\\Missing404Exception(code: 404): {\"error\":{\"root_cause\":[{\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"resource.type\":\"index_or_alias\",\"resource.id\":\"ah_index_dev2_en\",\"index_uuid\":\"_na_\",\"index\":\"ah_index_dev2_en\"}],\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"resource.type\":\"index_or_alias\",\"resource.id\":\"ah_index_dev2_en\",\"index_uuid\":\"_na_\",\"index\":\"ah_index_dev2_en\"},\"status\":404} at /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:602)
[stacktrace]
#0 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(273): Elasticsearch\\Connections\\Connection->process4xxError(Array, Array, Array)
#1 /Users/stevengerrits/ah-website/vendor/react/promise/src/FulfilledPromise.php(25): Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}(Array)
#2 /Users/stevengerrits/ah-website/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\\Promise\\FulfilledPromise->then(Object(Closure), NULL, NULL)
#3 /Users/stevengerrits/ah-website/vendor/guzzlehttp/ringphp/src/Core.php(341): GuzzleHttp\\Ring\\Future\\CompletedFutureValue->then(Object(Closure), NULL, NULL)
#4 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(294): GuzzleHttp\\Ring\\Core::proxy(Object(GuzzleHttp\\Ring\\Future\\CompletedFutureArray), Object(Closure))
#5 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(171): Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}(Array, Object(Elasticsearch\\Connections\\Connection), Object(Elasticsearch\\Transport), Array)
#6 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php(106): Elasticsearch\\Connections\\Connection->performRequest('GET', '/ah_index_dev2_...', Array, '{\"query\":{\"quer...', Array, Object(Elasticsearch\\Transport))
#7 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(1578): Elasticsearch\\Transport->performRequest('GET', '/ah_index_dev2_...', Array, Array, Array)
#8 /Users/stevengerrits/ah-website/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Client.php(952): Elasticsearch\\Client->performRequest(Object(Elasticsearch\\Endpoints\\Search))
#9 [internal function]: Elasticsearch\\Client->search(Array)
#10 /Users/stevengerrits/ah-website/vendor/cviebrock/laravel-elasticsearch/src/Manager.php(133): call_user_func_array(Array, Array)
#11 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Cviebrock\\LaravelElasticsearch\\Manager->__call('search', Array)
#12 /Users/stevengerrits/ah-website/app/Service/ElasticSearchService.php(450): Illuminate\\Support\\Facades\\Facade::__callStatic('search', Array)
#13 /Users/stevengerrits/ah-website/app/Http/Controllers/SearchController.php(556): App\\Service\\ElasticSearchService->simpleSearch()
#14 /Users/stevengerrits/ah-website/app/Http/Controllers/SearchController.php(434): App\\Http\\Controllers\\SearchController->doSearch()
#15 [internal function]: App\\Http\\Controllers\\SearchController->horseSearch(Object(Illuminate\\Http\\Request), NULL, 'horse')
#16 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#17 /Users/stevengerrits/ah-website/app/Http/Controllers/Controller.php(30): Illuminate\\Routing\\Controller->callAction('horseSearch', Array)
#18 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): App\\Http\\Controllers\\Controller->callAction('horseSearch', Array)
#19 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Route.php(212): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\SearchController), 'horseSearch')
#20 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Route.php(169): Illuminate\\Routing\\Route->runController()
#21 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\\Routing\\Route->run()
#22 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#23 /Users/stevengerrits/ah-website/app/Http/Middleware/Language.php(36): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#24 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\Http\\Middleware\\Language->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#25 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#26 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#27 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#28 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#29 /Users/stevengerrits/ah-website/app/Http/Middleware/LanguageSetting.php(41): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#30 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): App\\Http\\Middleware\\LanguageSetting->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#31 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#32 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(68): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#33 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#34 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#35 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#36 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#37 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#38 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#39 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#40 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#41 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#42 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#45 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#46 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#47 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#48 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#49 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#50 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#51 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#52 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#53 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#54 /Users/stevengerrits/ah-website/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(65): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#55 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#56 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#57 /Users/stevengerrits/ah-website/vendor/fideloper/proxy/src/TrustProxies.php(56): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#58 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#61 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#64 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#65 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#66 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#67 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#68 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#69 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#70 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#71 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#72 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#73 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#74 /Users/stevengerrits/ah-website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#75 /Users/stevengerrits/ah-website/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#76 /Users/stevengerrits/ah-website/server.php(21): require_once('/Users/stevenge...')
#77 {main}
"}
I did research & found this thread:
Errors upon searching in Elasticsearch using PHP
So I checked if my ES is running. When running with "./bin/elasticsearch" I get following answer which it's running, ok?
[2019-02-22T09:00:11,578][INFO ][o.e.n.Node ] [] initializing ...
[2019-02-22T09:00:11,647][INFO ][o.e.e.NodeEnvironment ] [EqUb7-7] using [1] data paths, mounts [[/ (/dev/disk1s1)]], net usable_space [193.1gb], net total_space [233.4gb], spins? [unknown], types [apfs]
[2019-02-22T09:00:11,647][INFO ][o.e.e.NodeEnvironment ] [EqUb7-7] heap size [1.9gb], compressed ordinary object pointers [true]
[2019-02-22T09:00:11,648][INFO ][o.e.n.Node ] node name [EqUb7-7] derived from node ID [EqUb7-7fR3er1V_1KbKyiA]; set [node.name] to override
[2019-02-22T09:00:11,648][INFO ][o.e.n.Node ] version[5.5.0], pid[36077], build[260387d/2017-06-30T23:16:05.735Z], OS[Mac OS X/10.14.2/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/11.0.2/11.0.2+9-LTS]
[2019-02-22T09:00:11,649][INFO ][o.e.n.Node ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+DisableExplicitGC, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/users/stevengerrits/elasticsearch-5.5.0]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [aggs-matrix-stats]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [ingest-common]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-expression]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-groovy]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-mustache]
[2019-02-22T09:00:12,257][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [lang-painless]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [parent-join]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [percolator]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [reindex]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [transport-netty3]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] loaded module [transport-netty4]
[2019-02-22T09:00:12,258][INFO ][o.e.p.PluginsService ] [EqUb7-7] no plugins loaded
[2019-02-22T09:00:13,441][INFO ][o.e.d.DiscoveryModule ] [EqUb7-7] using discovery type [zen]
[2019-02-22T09:00:13,804][INFO ][o.e.n.Node ] initialized
[2019-02-22T09:00:13,804][INFO ][o.e.n.Node ] [EqUb7-7] starting ...
[2019-02-22T09:00:13,989][INFO ][o.e.t.TransportService ] [EqUb7-7] publish_address {127.0.0.1:9300}, bound_addresses {[fe80::1]:9300}, {[::1]:9300}, {127.0.0.1:9300}
[2019-02-22T09:00:17,056][INFO ][o.e.c.s.ClusterService ] [EqUb7-7] new_master {EqUb7-7}{EqUb7-7fR3er1V_1KbKyiA}{SLRzB7PtSUyeI8J7hwMnWQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2019-02-22T09:00:17,083][INFO ][o.e.h.n.Netty4HttpServerTransport] [EqUb7-7] publish_address {127.0.0.1:9200}, bound_addresses {[fe80::1]:9200}, {[::1]:9200}, {127.0.0.1:9200}
[2019-02-22T09:00:17,083][INFO ][o.e.n.Node ] [EqUb7-7] started
[2019-02-22T09:00:17,101][INFO ][o.e.g.GatewayService ] [EqUb7-7] recovered [0] indices into cluster_state
doing a curl 'http://localhost:9200/?pretty'
gives:
{
"name" : "Hfe5NY6",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "jDUNRES3SuC5bhUesVpNnw",
"version" : {
"number" : "5.4.0",
"build_hash" : "780f8c4",
"build_date" : "2017-04-28T17:43:27.229Z",
"build_snapshot" : false,
"lucene_version" : "6.5.0"
},
"tagline" : "You Know, for Search"
}
I want each Entry type in my in my StackLayout to have a margin. I'm trying to specify a style as follows:
<StackLayout IsVisible="{Binding IsLoggingIn, Converter={StaticResource BooleanConverter}}">
<StackLayout.Resources>
<Style TargetType="{x:Type Entry}">
<Setter Property="Margin" Value="0,0,0,20"/>
</Style>
</StackLayout.Resources>
<Entry ... />
<Entry ... />
</StackLayout>
Unfortunately, it results in a NullReferenceException:
04-13 16:26:15.406 E/mono (17167): Unhandled Exception:
04-13 16:26:15.406 E/mono (17167): System.NullReferenceException: Object reference not set to an instance of an object.
04-13 16:26:15.406 E/mono-rt (17167): [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.
With a bit more stack trace for reference:
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at MyApp.Views.Login.InitializeComponent () [0x00012] in C:\dev\PathTo\MyApp\obj\Debug\MyApp.Views.Login.xaml.g.cs:22
at MyApp.Views.Login..ctor () [0x00008] in C:\dev\PathTo\MyApp\Views\Login.xaml.cs:9
at MyApp.App.SetupLoginPage () [0x00001] in C:\dev\PathTo\MyApp\App.xaml.cs:94
at MyApp.App+<OnStart>d__4.MoveNext () [0x001ad] in C:\dev\PathTo\MyApp\App.xaml.cs:60
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4009/3a62f1ea/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (System.Object state) [0x00000] in /Users/builder/data/lanes/4009/3a62f1ea/source/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018
at Android.App.SyncContext+<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/4009/3a62f1ea/source/xamarin-android/src/Mono.Android/Android.App/SyncContext.cs:35
at Java.Lang.Thread+RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/4009/3a62f1ea/source/xamarin-android/src/Mono.Android/Java.Lang/Thread.cs:36
at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in /Users/builder/data/lanes/4009/3a62f1ea/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Java.Lang.IRunnable.cs:81
at (wrapper dynamic-method) System.Object:d83972de-0492-4d07-a14d-24725ac1bfd1 (intptr,intptr)
What could be causing this, and how can I fix it? For the record, if I specify the margin inline e.g. <Entry margin="0,0,0,20"/>, it works fine.
I think your syntax is wrong. Shouldn't it be this;
<StackLayout.Resources>
<ResourceDictionary>
<Style TargetType="Entry">
<Setter Property="Margin" Value="0,0,0,20"/>
</Style>
</ResourceDictionary>
</StackLayout.Resources>
Note how I changed the TargetType and added the ResourceDictionary tag around it.
I'm trying to create a EAV module and I got stuck in here for a very long time.
error msg :
Invalid entity_type specified: gagan_eavfaq
#0 C:\wamp\www\www.ubt.com\app\code\core\Mage\Eav\Model\Config.php(328): Mage::throwException('Invalid entity_...')
#1 C:\wamp\www\www.ubt.com\app\code\core\Mage\Eav\Model\Entity\Abstract.php(276): Mage_Eav_Model_Config->getEntityType('gagan_eavfaq')
#2 C:\wamp\www\www.ubt.com\app\code\local\Gagan\Eavfaq\Model\Resource\Eav\Mysql4\Eavfaq.php(9): Mage_Eav_Model_Entity_Abstract->setType('gagan_eavfaq')
#3 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Resource\Abstract.php(44): Gagan_Eavfaq_Model_Resource_Eav_Mysql4_Eavfaq->_construct()
#4 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Config.php(1348): Mage_Core_Model_Resource_Abstract->__construct(Array)
#5 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Config.php(1380): Mage_Core_Model_Config->getModelInstance('eavfaq_mysql4/e...', Array)
#6 C:\wamp\www\www.ubt.com\app\Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance('eavfaq/eavfaq', Array)
#7 C:\wamp\www\www.ubt.com\app\Mage.php(518): Mage::getResourceModel('eavfaq/eavfaq', Array)
#8 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Abstract.php(139): Mage::getResourceSingleton('eavfaq/eavfaq')
#9 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\Abstract.php(225): Mage_Core_Model_Abstract->_getResource()
#10 C:\wamp\www\www.ubt.com\app\code\local\Gagan\Eavfaq\controllers\IndexController.php(8): Mage_Core_Model_Abstract->load(1)
#11 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Controller\Varien\Action.php(419): Gagan_Eavfaq_IndexController->indexAction()
#12 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#13 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Controller\Varien\Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 C:\wamp\www\www.ubt.com\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#15 C:\wamp\www\www.ubt.com\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#16 C:\wamp\www\www.ubt.com\index.php(87): Mage::run('', 'store')
#17 {main}
Config:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Gagan_eavfaq>
<version>0.1.0</version>
</Gagan_eavfaq>
</modules>
<frontend>
<routers>
<eavfaq>
<use>standard</use>
<args>
<module>Gagan_Eavfaq</module>
<frontName>eavfaq</frontName>
</args>
</eavfaq>
</routers>
</frontend>
<global>
<models>
<eavfaq>
<class>Gagan_Eavfaq_Model</class>
<resourceModel>eavfaq_mysql4</resourceModel>
</eavfaq>
<eavfaq_mysql4>
<class>Gagan_Eavfaq_Model_Resource_Eav_Mysql4</class>
<entities>
<dinkchika>
<table>gagan_eavfaq</table>
</dinkchika>
</entities>
</eavfaq_mysql4>
</models>
<resources>
<eavfaq_setup>
<setup>
<module>Gagan_Eavfaq</module>
<class>Gagan_Eavfaq_Entity_Setup</class>
</setup>
<connection>
<use>core_setup</use>
</connection>
</eavfaq_setup>
<eavfaq_write>
<connection>
<use>core_write</use>
</connection>
</eavfaq_write>
<eavfaq_read>
<connection>
<use>core_read</use>
</connection>
</eavfaq_read>
</resources>
</global>
</config>
Resource :
<?php
class Gagan_Eavfaq_Model_Resource_Eav_Mysql4_Eavfaq
extends Mage_Eav_Model_Entity_Abstract
{
public function _construct() {
$resource = mage::getSingleton('core/resource');
$this->setType('gagan_eavfaq');
$this->setConnection(
$resource->getConnection('eavfaq_read'),
$resource->getConnection('eavfaq_write')
);
}
}
setup :
<?php
class Gagan_Eavfaq_Entity_Setup extends
Mage_Eav_Model_Entity_Setup{
}
install script:
I want this exception to show. It looks like my setup is not finding a way to this file, from this I can conclude something is wrong with my config. But I've checked that several time still no luck. Please help. Thank you
<?php $installer = $this;
throw new Exception("set up configured ");
folder structure: