FatalThrowableError {#638
-originalClassName: "Error"
#message: "Call to a member function translation() on null"
#code: 0
#file: "/var/www/html/new.hte.vn/app/Http/Controllers/Frontend/HomeController.php"
#line: 341
#severity: E_ERROR
trace: {
/var/www/html/new.hte.vn/app/Http/Controllers/Frontend/HomeController.php:341 {
› for ($i = 0; $i < count($langs); $i++) {
› $trans = $category->translation('name', $langs[$i])->first();
› $temp[$langs[$i]]['name'] = is_null($trans) ? '' : $trans->content;
}
App\Http\Controllers\Frontend\HomeController->getServicesCategory() {}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
› {
› return call_user_func_array([$this, $method], $parameters);
› }
arguments: {
$function_name: array:2 [ …2]
$parameters: array:3 [ …3]
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
› if (method_exists($controller, 'callAction')) {
› return $controller->callAction($method, $parameters);
› }
arguments: {
$method: "getServicesCategory"
$parameters: array:3 [ …3]
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Route.php:219 {
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
arguments: {
$route: Route {#443 …}
$controller: HomeController {#471 …}
$method: "getServicesCategory"
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Route.php:176 {
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Router.php:680 {
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/app/Http/Controllers/Frontend/HomeController.php:49 {
› \View::share('lang', $this->lang);
› \t return $next($request);
› });
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:145 {
› // the appropriate method and arguments, returning the results back out.
› return $pipe($passable, $stack);
› } elseif (! is_object($pipe)) {
arguments: {
Request {#44 …}
Closure {#597 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/app/Http/Middleware/Locale.php:24 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 {
› ) {
› return tap($next($request), function ($response) use ($request) {
› if ($this->shouldAddXsrfTokenCookie()) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56 {
›
› $response = $next($request);
›
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
› {
› $response = $next($request);
›
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 {
› );
› });
› }
arguments: {
$destination: Closure {#466 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Router.php:657 {
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
arguments: {
$route: Route {#443 …}
$request: Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Router.php:623 {
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
arguments: {
$request: Request {#44 …}
$route: Route {#443 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Router.php:612 {
›
› return $this->dispatchToRoute($request);
› }
arguments: {
$request: Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
›
› return $this->router->dispatch($request);
› };
arguments: {
$request: Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/fideloper/proxy/src/TrustProxies.php:57 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
›
› return $next($request);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#44 …}
$next: Closure {#310 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
arguments: {
Request {#44 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
arguments: {
$destination: Closure {#209 …}
}
}
/var/www/html/new.hte.vn/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
arguments: {
$request: Request {#44 …}
}
}
/var/www/html/new.hte.vn/public/index.php:54 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
arguments: {
$request: Request {#44 …}
}
}
}
}