为了账号安全,请及时绑定邮箱和手机立即绑定

laravel网站 在新服务器上搭建后出现问题

laravel网站 在新服务器上搭建后出现问题

PHP
aluckdog 2019-03-14 17:36:25
本地window 可以正常访问网站项目, 但是将网站布置到linux系统上后就不能访问了 ,nginx+php5.6以下就是出现问题, Whoops, looks like something went wrong. 1/1ReflectionException in Container.php line 681:Class AppHttpControllersIndexController does not existin Container.php line 681at ReflectionClass->__construct('App\Http\Controllers\IndexController') in Container.php line 681at Container->build('App\Http\Controllers\IndexController') in Container.php line 565at Container->make('App\Http\Controllers\IndexController') in Application.php line 702at Application->make('App\Http\Controllers\IndexController') in Route.php line 217at Route->getController() in Route.php line 726at Route->controllerMiddleware() in Route.php line 687at Route->gatherMiddleware() in Router.php line 572at Router->gatherRouteMiddleware(object(Route)) in Router.php line 552at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 520at Router->dispatchToRoute(object(Request)) in Router.php line 498at Router->dispatch(object(Request)) in Kernel.php line 174at Kernel->IlluminateFoundationHttp{closure}(object(Request)) in Pipeline.php line 30at Pipeline->IlluminateRouting{closure}(object(Request)) in TransformsRequest.php line 30at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53at Pipeline->IlluminateRouting{closure}(object(Request)) in TransformsRequest.php line 30at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53at Pipeline->IlluminateRouting{closure}(object(Request)) in ValidatePostSize.php line 27at ValidatePostSize->handle(object(Request), object(Closure)) in Pipeline.php line 148at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53at Pipeline->IlluminateRouting{closure}(object(Request)) in CheckForMaintenanceMode.php line 46at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148at Pipeline->IlluminatePipeline{closure}(object(Request)) in Pipeline.php line 53at Pipeline->IlluminateRouting{closure}(object(Request)) in Pipeline.php line 102at Pipeline->then(object(Closure)) in Kernel.php line 149at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116at Kernel->handle(object(Request)) in index.php line 54
查看完整描述

5 回答

?
四季花海

TA贡献1811条经验 获得超5个赞

报错是楼上的报错,原因可能是大小写严格导致的。

查看完整回答
反对 回复 2019-03-18
?
蝴蝶不菲

TA贡献1810条经验 获得超4个赞

AppHttpControllersIndexController 这个不存在

查看完整回答
反对 回复 2019-03-18
?
哔哔one

TA贡献1854条经验 获得超8个赞

windows 的服务器不是nginx吧? 是不是 rewrite 没写对?

查看完整回答
反对 回复 2019-03-18
?
富国沪深

TA贡献1790条经验 获得超9个赞

查看一下 AppHttpControllersIndexController 类文件及目录的大小写.

查看完整回答
反对 回复 2019-03-18
?
莫回无

TA贡献1865条经验 获得超7个赞

检查文件目录,检查namespace,检查大小写。

查看完整回答
反对 回复 2019-03-18
  • 5 回答
  • 0 关注
  • 759 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信