将其移至托管网站后,我的视图不存在

时间:2013-04-30 01:56:06

标签: php laravel

在我将它移动到我的生产服务器之后,我的观点开始不存在,那很奇怪。

这是我的堆栈跟踪

Unhandled Exception
Message:
View [employer.jds] doesn't exist.
Location:
/var/www/vhosts/aquariusmc.com/httpdocs/laravel/view.php on line 170
Stack Trace:
#0 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/view.php(107): Laravel\View->path('employer.jds')
#1 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/view.php(218): Laravel\View->__construct('employer.jds', Array)
#2 /var/www/vhosts/aquariusmc.com/httpdocs/application/controllers/employer/main.php(18): Laravel\View::make('employer.jds', Array)
#3 [internal function]: Employer_Main_Controller->get_jobDispatchSheet()
#4 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/routing/controller.php(325): call_user_func_array(Array, Array)
#5 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/routing/controller.php(285): Laravel\Routing\Controller->response('jobdispatchshee...', Array)
#6 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/routing/controller.php(165): Laravel\Routing\Controller->execute('jobdispatchshee...', Array)
#7 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/routing/route.php(153): Laravel\Routing\Controller::call('employer.main@j...', Array)
#8 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/routing/route.php(124): Laravel\Routing\Route->response()
#9 /var/www/vhosts/aquariusmc.com/httpdocs/laravel/laravel.php(167): Laravel\Routing\Route->call()
#10 /var/www/vhosts/aquariusmc.com/httpdocs/public/index.php(34): require('/var/www/vhosts...')
#11 {main}

1 个答案:

答案 0 :(得分:2)

我通过在我的所有视图文件名上使用小写来解决它。我认为Plesk(CentOS)与camelCase文件名有关。但无论如何,谢谢!