Getting the following error;
Undefined variable: location (View: /home/wankey/public_html/themes/phils/_partials/localSearch/default.php) (View: /home/wankey/public_html/themes/phils/_pages/home.php)
Undefined variable: location (View: /home/wankey/public_html/themes/phils/_partials/localSearch/default.php) (View: /home/wankey/public_html/themes/phils/_pages/home.php)
in 6d0fe23a114a2b751abe602cf4d6fef5.php line 25
at Template->handleException(object(ErrorException), 1)
in Template.php line 126
at Template->evaluatePath('/home/wankey/public_html/storage/framework/views/e0f14346cd6095a7976c6d457c9aa172.php', array('__env' => object(Factory), 'app' => object(Application), 'site_name' => 'Wankey', 'site_logo' => 'no_photo.png', 'errors' => object(ViewErrorBag), '___env' => object(Environment), 'session' => object(Session), 'mainMenu' => object(StaticMenu), 'footerMenu' => object(StaticMenu), 'newsletter' => object(Newsletter), 'slider' => object(Slider), 'localSearch' => object(Search), 'featuredItems' => object(FeaturedItems), 'customer' => null, 'menuItems' => array(), 'subscribeHandler' => 'newsletter::onSubscribe', 'sliderSelectorId' => 'slider-home-slider', 'sliderHeight' => '60vh', 'sliderEffect' => 'ease', 'sliderDelayInterval' => 5000.0, 'showSliderControls' => true, 'showSliderIndicators' => true, 'showSliderCaptions' => true, 'slides' => object(Collection), 'menusPage' => 'local/menus', 'hideSearch' => 0, 'searchEventHandler' => 'localSearch::onSearchNearby', 'searchQueryPosition' => object(Location), 'featuredTitle' => 'Featured Menu', 'featuredPerRow' => 3, 'featuredWidth' => 400, 'featuredHeight' => 300, 'featuredMenuItems' => object(Collection)))
in Template.php line 87
at Template->getContents(array('session' => object(Session), 'mainMenu' => object(StaticMenu), 'footerMenu' => object(StaticMenu), 'newsletter' => object(Newsletter), 'slider' => object(Slider), 'localSearch' => object(Search), 'featuredItems' => object(FeaturedItems), 'customer' => null, 'menuItems' => array(), 'subscribeHandler' => 'newsletter::onSubscribe', 'sliderSelectorId' => 'slider-home-slider', 'sliderHeight' => '60vh', 'sliderEffect' => 'ease', 'sliderDelayInterval' => 5000.0, 'showSliderControls' => true, 'showSliderIndicators' => true, 'showSliderCaptions' => true, 'slides' => object(Collection), 'menusPage' => 'local/menus', 'hideSearch' => 0, 'searchEventHandler' => 'localSearch::onSearchNearby', 'searchQueryPosition' => object(Location), 'featuredTitle' => 'Featured Menu', 'featuredPerRow' => 3, 'featuredWidth' => 400, 'featuredHeight' => 300, 'featuredMenuItems' => object(Collection)))
in Template.php line 68
at Template->render(array('session' => object(Session), 'mainMenu' => object(StaticMenu), 'footerMenu' => object(StaticMenu), 'newsletter' => object(Newsletter), 'slider' => object(Slider), 'localSearch' => object(Search), 'featuredItems' => object(FeaturedItems), 'customer' => null, 'menuItems' => array(), 'subscribeHandler' => 'newsletter::onSubscribe', 'sliderSelectorId' => 'slider-home-slider', 'sliderHeight' => '60vh', 'sliderEffect' => 'ease', 'sliderDelayInterval' => 5000.0, 'showSliderControls' => true, 'showSliderIndicators' => true, 'showSliderCaptions' => true, 'slides' => object(Collection), 'menusPage' => 'local/menus', 'hideSearch' => 0, 'searchEventHandler' => 'localSearch::onSearchNearby', 'searchQueryPosition' => object(Location), 'featuredTitle' => 'Featured Menu', 'featuredPerRow' => 3, 'featuredWidth' => 400, 'featuredHeight' => 300, 'featuredMenuItems' => object(Collection)))
in MainController.php line 267
at MainController->runPage(object(Page))
in MainController.php line 192
at MainController->remap('/')
in Controller.php line 85
at Controller->run('/')
in Controller.php line 54
at Controller->callAction('run', array('/'))
in ControllerDispatcher.php line 45
at ControllerDispatcher->dispatch(object(Route), object(Controller), 'run')
in Route.php line 219
at Route->runController()
in Route.php line 176
at Route->run()
in Router.php line 681
at Router->Illuminate\Routing\{closure}(object(Request))
in Pipeline.php line 130
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in VerifyCsrfToken.php line 77
at VerifyCsrfToken->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in CurrencyMiddleware.php line 33
at CurrencyMiddleware->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in CartMiddleware.php line 12
at CartMiddleware->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Localization.php line 40
at Localization->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in StartSession.php line 56
at StartSession->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in EncryptCookies.php line 67
at EncryptCookies->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Pipeline.php line 105
at Pipeline->then(object(Closure))
in Router.php line 683
at Router->runRouteWithinStack(object(Route), object(Request))
in Router.php line 658
at Router->runRoute(object(Request), object(Route))
in Router.php line 624
at Router->dispatchToRoute(object(Request))
in CoreRouter.php line 20
at CoreRouter->dispatch(object(Request))
in Kernel.php line 170
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
in Pipeline.php line 130
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in TrackVisitor.php line 13
at TrackVisitor->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in SaveSetting.php line 27
at SaveSetting->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in TrustProxies.php line 57
at TrustProxies->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in TransformsRequest.php line 21
at TransformsRequest->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in ValidatePostSize.php line 27
at ValidatePostSize->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in CheckForMaintenanceMode.php line 63
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
in Pipeline.php line 171
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Pipeline.php line 105
at Pipeline->then(object(Closure))
in Kernel.php line 145
at Kernel->sendRequestThroughRouter(object(Request))
in Kernel.php line 110
at Kernel->handle(object(Request))
in index.php line 53