View layouts.clientLayout.client_header] not found

2019-07-27 21:08发布

Hi I have this project that is working perfectly on my development environment (Local host) I have published it to a a shared vhost and now I am getting the errors below

    ErrorException (E_ERROR)
    View [layouts.clientLayout.client_header] not found. (View: /home/ovzejahb/domains/alphaphotography.co.ke/public_html/book/resources/views/layouts/clientlayout/client_design.blade.php) 
    (View: /home/ovzejahb/domains/alphaphotography.co.ke/public_html/book/resources/views/layouts/clientlayout/client_design.blade.php)


    Previous exceptions
    View [layouts.clientLayout.client_header] not found. (View: /home/ovzejahb/domains/alphaphotography.co.ke/public_html/book/resources/views/layouts/clientlayout/client_design.blade.php) (0)
    View [layouts.clientLayout.client_header] not found. (0)

What could I be doing wrong because I have the folder structure exactly like it is in the development environment

In my home.blade.php that it in the views folder i have this

  @extends('layouts.clientLayout.client_design')
  @section('content')

and then in the layouts/client layout folder I have the following files

client_design.blade.php

client_footer.blade.php

client_header.blade.php

client_sidebar.blade.php

In the client_design.blade.php file I have the code below for including the header, footer, sidebar and content together

    <body>
    <!--Header part-->
    @include('layouts.clientLayout.client_header')
    <!--End Header part-->
    <!--Sidebar part-->
    @include('layouts.clientLayout.client_sidebar')
    <!--End Sidebar part-->
    <!--main-container-part-->
    @yield('content')
    <!--end-main-container-part-->
    <!--Footer part-->
    @include('layouts.clientLayout.client_footer')
    <!--End Footer part-->
    <!--Jquery-->

1条回答
Viruses.
2楼-- · 2019-07-27 22:01

You include the views using clientLayout but the error shows the path as layouts/clientlayout/client_design.blade.php. It probably works on your local machine because in Windows, file paths are case insensitive where as on Linux they are case sensitive.

Try renaming the folder with an uppercase L or update your views to the lowercase version.

查看更多
登录 后发表回答