ErrorException {#250
#message: "Attempt to read property "lang" on null"
#code: 0
#file: "/home/geographyandyou/public_html/app/Repositories/WebCategoryRepository.php"
#line: 45
#severity: E_WARNING
trace: {
/home/geographyandyou/public_html/app/Repositories/WebCategoryRepository.php:45 {
App\Repositories\WebCategoryRepository->getHindiArticleBySlug($slug, $category) …
›
› if( $article->lang != 'hi' ) return null;
›
arguments: {
$level: 2
$message: "Attempt to read property "lang" on null"
$file: "/home/geographyandyou/public_html/app/Repositories/WebCategoryRepository.php"
$line: 45
}
}
/home/geographyandyou/public_html/app/Http/Controllers/Frontend/WebCategoryController.php:25 {
App\Http\Controllers\Frontend\WebCategoryController->showArticlePage($article_slug, $category_slug) …
› $terms = [];
› $article = app()->getLocale() == 'hi' ? $this->web_category_repo->getHindiArticleBySlug($article_slug, $category_slug) : $this->web_category_repo->getArticleBySlug($article_slug, $category_slug);;
›
arguments: {
$slug: "shop"
$category: "bhugol-aur-aap"
}
}
/home/geographyandyou/public_html/app/Http/Controllers/Frontend/WebCategoryController.php:120 {
App\Http\Controllers\Frontend\WebCategoryController->index(Request $request) …
› if( $category_slug && $article_slug ) {
› $articles = $this->showArticlePage($article_slug, $category_slug);
›
arguments: {
$article_slug: "shop"
$category_slug: "bhugol-aur-aap"
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:48 {
Illuminate\Routing\ControllerDispatcher->dispatch(Route $route, $controller, $method) …
›
› return $controller->{$method}(...array_values($parameters));
› }
arguments: {
$request: Illuminate\Http\Request {#44 …}
...: {
"bhugol-aur-aap"
"shop"
}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:254 {
Illuminate\Routing\Route->runController() …
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
arguments: {
$route: Illuminate\Routing\Route {#288 …}
$controller: App\Http\Controllers\Frontend\WebCategoryController {#278 …}
$method: "index"
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:197 {
Illuminate\Routing\Route->run() …
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:695 {
Illuminate\Routing\Router->Illuminate\Routing\{closure} …
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable $e) {
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/app/Http/Middleware/Language.php:28 {
App\Http\Middleware\Language->handle(Request $request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50 {
Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/app/Http/Middleware/VerifyCsrfMiddleware.php:13 {
App\Http\Middleware\VerifyCsrfMiddleware->handle($request, Closure $next) …
› {
› return $this->addCookieToResponse($request, $next($request));
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php:39 {
Illuminate\Session\Middleware\AuthenticateSession->handle($request, Closure $next) …
› if (! $request->hasSession() || ! $request->user()) {
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121 {
Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Request $request, $session, Closure $next) …
›
› $response = $next($request);
›
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 {
Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
›
› return $this->handleStatefulRequest($request, $session, $next);
› }
arguments: {
$request: Illuminate\Http\Request {#44 …}
$session: Illuminate\Session\Store {#307 …}
$next: Closure($passable) {#285 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
› {
› $response = $next($request);
›
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 {
Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:697 {
Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
› );
› });
› }
arguments: {
$destination: Closure($request) {#277 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:672 {
Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
arguments: {
$route: Illuminate\Routing\Route {#288 …}
$request: Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636 {
Illuminate\Routing\Router->dispatchToRoute(Request $request) …
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
arguments: {
$request: Illuminate\Http\Request {#44 …}
$route: Illuminate\Routing\Route {#288 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 {
Illuminate\Routing\Router->dispatch(Request $request) …
›
› return $this->dispatchToRoute($request);
› }
arguments: {
$request: Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166 {
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
›
› return $this->router->dispatch($request);
› };
arguments: {
$request: Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable $e) {
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31 {
Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle($request, Closure $next) …
›
› return parent::handle($request, $next);
› }
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#183 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40 {
Illuminate\Foundation\Http\Middleware\TrimStrings->handle($request, Closure $next) …
›
› return parent::handle($request, $next);
› }
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#182 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86 {
Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/fruitcake/laravel-cors/src/HandleCors.php:38 {
Fruitcake\Cors\HandleCors->handle($request, Closure $next) …
› if (! $this->shouldRun($request)) {
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/fideloper/proxy/src/TrustProxies.php:57 {
Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#44 …}
$next: Closure($passable) {#268 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141 {
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
arguments: {
$destination: Closure($request) {#30 …}
}
}
/home/geographyandyou/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
Illuminate\Foundation\Http\Kernel->handle($request) …
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Throwable $e) {
arguments: {
$request: Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/public/index.php:52 {
require_once …
› $response = tap($kernel->handle(\r
› $request = Request::capture()\r
› ))->send();\r
arguments: {
$request: Illuminate\Http\Request {#44 …}
}
}
/home/geographyandyou/public_html/server.php:21 {
› \r
› require_once __DIR__.'/public/index.php';\r
›
arguments: {
"/home/geographyandyou/public_html/public/index.php"
}
}
}
}