模板不存在:./Application/Home/View/OnContact/Index.html
错误位置FILE: /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/View.class.php LINE: 110
TRACE#0 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/View.class.php(110): E('???????????????...')
#1 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/View.class.php(72): Think\View->fetch('', '', '')
#2 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/Controller.class.php(56): Think\View->display('', '', '', '', '')
#3 /home/huimingdedhpucixmaihndged5e/wwwroot/Application/Home/Controller/OnContactController.class.php(32): Think\Controller->display()
#4 [internal function]: Home\Controller\OnContactController->index()
#5 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\OnContactController))
#6 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\OnContactController), 'Index')
#7 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/App.class.php(204): Think\App::exec()
#8 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/Library/Think/Think.class.php(120): Think\App::run()
#9 /home/huimingdedhpucixmaihndged5e/wwwroot/ThinkPHP123/ThinkPHP.php(97): Think\Think::start()
#10 /home/huimingdedhpucixmaihndged5e/wwwroot/index.php(24): require('/home/huimingde...')
#11 {main}ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
ThinkPHP web在提交表格后跳转至成功的界面报错,Windows下部署没问题,但是部署到服务器上报错,原因是liunx对大小写敏感,Windows不敏感,将Index改为index即可。
如下图,图一是报错的代码,图二是修改后没有报错的代码。