[英]Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template “error”
I have a problem, my server is running Zend 2, ubuntu, apache. 我有一个问题,我的服务器正在运行Zend 2,ubuntu,apache。 but now i want to change new server, but it not work.
但现在我想更改新服务器,但无法正常工作。 I'm a admin system not coder, pls help me this problem.
我是一个管理系统而不是编码器,请帮助我解决这个问题。 thanks this is log:
谢谢这是日志:
Fatal error: Uncaught exception 'Zend\\View\\Exception\\RuntimeException' with message 'Zend\\View\\Renderer\\PhpRenderer::render: Unable to render template "error"; 致命错误:消息为“ Zend \\ View \\ Renderer \\ PhpRenderer :: render”的未捕获异常'Zend \\ View \\ Exception \\ RuntimeException':无法呈现模板“错误”; resolver could not resolve to a file' in /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php:493 Stack trace: #0 /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/View.php(205): Zend\\View\\Renderer\\PhpRenderer->render(Object(Zend\\View\\Model\\ViewModel)) #1 /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/View.php(233): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel)) #2 /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/View.php(198): Zend\\View\\View->renderChildren(Object(Zend\\View\\Model\\ViewModel)) #3 /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-mvc/src/View/Http/DefaultRen in /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/Renderer/PhpRen
解析器无法解析为/home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php:493中的文件:堆栈跟踪:#0 / home / forbesvn /websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/View.php(205):Zend \\ View \\ Renderer \\ PhpRenderer-> render(Object(Zend \\ View \\ Model \\ ViewModel)) #1 /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/View.php(233):Zend \\ View \\ View-> render(Object(Zend \\ View \\ Model \\ ViewModel))#2 /home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-view/src/View.php(198):Zend \\ View \\ View-> renderChildren(Object(Zend \\ View \\ Model \\ ViewModel))#3 / home / forbesvn / websites / distribution中的/home/forbesvn/websites/distribution.forbesvietnam.local/public_html/vendor/zendframework/zend-mvc/src/View/Http/DefaultRen。 forbesvietnam.local / public_html / vendor / zendframework / zend-view / src / Renderer / PhpRen derer.php on line 493
493行上的derer.php
You need to create a .phtml file of the respective action and controller. 您需要创建相应动作和控制器的.phtml文件。 Suppose you are calling indexAction of IndexController inside the Album module then you need to create a index.phtml file inside the view folder (module->Album->view->album->index->index.phtml) file
假设您要在Album模块中调用IndexController的indexAction,则需要在view文件夹(module-> Album-> view-> album-> index-> index.phtml)文件中创建一个index.phtml文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.