Route issues

Posted In Pixel
  • dave-armstrong 6 months ago
    I've just downloaded the script locally and thought it was all set up ok. Home page loades as it should and I can login to the backend and update stuff. However, when I tested a product or category i'm getting a red band reading:
    
    Whoops, looks like something went wrong.
    (1/1) ErrorException
    compact(): Undefined variable: subheadline
    
    Any ideas anybody? Sure i've just missed something simple.
    

    I've just downloaded the script locally and thought it was all set up ok. Home page loades as it should and I can login to the backend and update stuff. However, when I tested a product or category i'm getting a red band reading:

    Whoops, looks like something went wrong. (1/1) ErrorException compact(): Undefined variable: subheadline

    Any ideas anybody? Sure i've just missed something simple.

  • dave-armstrong 6 months ago
    Ah, could it be my php version is 7.3?
    

    Ah, could it be my php version is 7.3?

  • andrewo0 6 months ago
    Hi @dave-armstrong 
    
    it's giving a error because your subheadline is empty

    Hi @dave-armstrong

    it's giving a error because your subheadline is empty

  • dave-armstrong 6 months ago
    Cheers Andrew but all fields are filled in?
    Going to role back my php version and see if that helps but in the mean time, here's the full feedback:
    
    Whoops, looks like something went wrong.
    (1/1) ErrorException
    compact(): Undefined variable: subheadline
    
    in HomeController.php (line 53)
    at HandleExceptions->handleError(8, 'compact(): Undefined variable: subheadline', '/Users/davearmstrong/Sites/uidojo/app/Http/Controllers/HomeController.php', 53, array('request' => object(Request), 'slug' => 'mockups', 'category' => object(Category), 'downloads' => object(LengthAwarePaginator), 'headline' => 'Mockups'))
    at compact('downloads', 'headline', 'subheadline', 'seo')
    in HomeController.php (line 53)
    at HomeController->category(object(Request), 'mockups')
    at call_user_func_array(array(object(HomeController), 'category'), array(object(Request), 'slug' => 'mockups'))
    in Controller.php (line 55)
    at Controller->callAction('category', array(object(Request), 'slug' => 'mockups'))
    in ControllerDispatcher.php (line 44)
    at ControllerDispatcher->dispatch(object(Route), object(HomeController), 'category')
    in Route.php (line 203)
    at Route->runController()
    in Route.php (line 160)
    at Route->run()
    in Router.php (line 574)
    at Router->Illuminate\Routing\{closure}(object(Request))
    in Pipeline.php (line 30)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in SubstituteBindings.php (line 41)
    at SubstituteBindings->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in VerifyCsrfToken.php (line 65)
    at VerifyCsrfToken->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in ShareErrorsFromSession.php (line 49)
    at ShareErrorsFromSession->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in StartSession.php (line 64)
    at StartSession->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in AddQueuedCookiesToResponse.php (line 37)
    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in EncryptCookies.php (line 59)
    at EncryptCookies->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in Pipeline.php (line 102)
    at Pipeline->then(object(Closure))
    in Router.php (line 576)
    at Router->runRouteWithinStack(object(Route), object(Request))
    in Router.php (line 535)
    at Router->dispatchToRoute(object(Request))
    in Router.php (line 513)
    at Router->dispatch(object(Request))
    in Kernel.php (line 176)
    at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
    in Pipeline.php (line 30)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in Pixel.php (line 26)
    at Pixel->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in Themes.php (line 57)
    at Themes->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in TransformsRequest.php (line 30)
    at TransformsRequest->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in TransformsRequest.php (line 30)
    at TransformsRequest->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in ValidatePostSize.php (line 27)
    at ValidatePostSize->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in CheckForMaintenanceMode.php (line 46)
    at CheckForMaintenanceMode->handle(object(Request), object(Closure))
    in Pipeline.php (line 148)
    at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
    in Pipeline.php (line 53)
    at Pipeline->Illuminate\Routing\{closure}(object(Request))
    in Pipeline.php (line 102)
    at Pipeline->then(object(Closure))
    in Kernel.php (line 151)
    at Kernel->sendRequestThroughRouter(object(Request))
    in Kernel.php (line 116)
    at Kernel->handle(object(Request))
    in index.php (line 53)
    at require('/Users/davearmstrong/Sites/uidojo/public/index.php')
    in server.php (line 158)

    Cheers Andrew but all fields are filled in? Going to role back my php version and see if that helps but in the mean time, here's the full feedback:

    Whoops, looks like something went wrong. (1/1) ErrorException compact(): Undefined variable: subheadline

    in HomeController.php (line 53) at HandleExceptions->handleError(8, 'compact(): Undefined variable: subheadline', '/Users/davearmstrong/Sites/uidojo/app/Http/Controllers/HomeController.php', 53, array('request' => object(Request), 'slug' => 'mockups', 'category' => object(Category), 'downloads' => object(LengthAwarePaginator), 'headline' => 'Mockups')) at compact('downloads', 'headline', 'subheadline', 'seo') in HomeController.php (line 53) at HomeController->category(object(Request), 'mockups') at call_user_func_array(array(object(HomeController), 'category'), array(object(Request), 'slug' => 'mockups')) in Controller.php (line 55) at Controller->callAction('category', array(object(Request), 'slug' => 'mockups')) in ControllerDispatcher.php (line 44) at ControllerDispatcher->dispatch(object(Route), object(HomeController), 'category') in Route.php (line 203) at Route->runController() in Route.php (line 160) at Route->run() in Router.php (line 574) at Router->Illuminate\Routing{closure}(object(Request)) in Pipeline.php (line 30) at Pipeline->Illuminate\Routing{closure}(object(Request)) in SubstituteBindings.php (line 41) at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in VerifyCsrfToken.php (line 65) at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php (line 49) at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php (line 64) at StartSession->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in AddQueuedCookiesToResponse.php (line 37) at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in EncryptCookies.php (line 59) at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php (line 102) at Pipeline->then(object(Closure)) in Router.php (line 576) at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php (line 535) at Router->dispatchToRoute(object(Request)) in Router.php (line 513) at Router->dispatch(object(Request)) in Kernel.php (line 176) at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php (line 30) at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pixel.php (line 26) at Pixel->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in Themes.php (line 57) at Themes->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in TransformsRequest.php (line 30) at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in TransformsRequest.php (line 30) at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in ValidatePostSize.php (line 27) at ValidatePostSize->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php (line 46) at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php (line 148) at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php (line 53) at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php (line 102) at Pipeline->then(object(Closure)) in Kernel.php (line 151) at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php (line 116) at Kernel->handle(object(Request)) in index.php (line 53) at require('/Users/davearmstrong/Sites/uidojo/public/index.php') in server.php (line 158)

  • andrewo0 6 months ago
    Hi 
    
    You sould dump de output of subheadline in your HomeController check if it's realy getting the data
    
    because what i can see it's getting the **mockups** slug

    Hi

    You sould dump de output of subheadline in your HomeController check if it's realy getting the data

    because what i can see it's getting the mockups slug

  • dave-armstrong 6 months ago
    Just an update , I did the dd and it was pulling through. My workflow while building locally is to use valet and my php version is 7.3.3. In my lunch break I've tried installing the script through mamp pro using php 7.2 and it all works on mamp as expected. Not sure if its a php or mysql or version issue but as this is just something to play with while needing a break from live project, I guess i'll just stick to mamp  

    Just an update , I did the dd and it was pulling through. My workflow while building locally is to use valet and my php version is 7.3.3. In my lunch break I've tried installing the script through mamp pro using php 7.2 and it all works on mamp as expected. Not sure if its a php or mysql or version issue but as this is just something to play with while needing a break from live project, I guess i'll just stick to mamp

  • tiffanie-man 3 weeks ago
    If you download the script locally then you would not be able to make it in comparison to the one at [bestessays.com reviews](https://telstraeduaustralia.com/bestessays-com-au-review/). I would suggest you to reconfigure it from scratch.
    

    If you download the script locally then you would not be able to make it in comparison to the one at bestessays.com reviews. I would suggest you to reconfigure it from scratch.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!