简体   繁体   English

消息为“ Zend \\ View \\ Renderer \\ PhpRenderer :: render”的未捕获异常“ Zend \\ View \\ Exception \\ RuntimeException”:无法呈现模板“错误”

[英]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.

相关问题 致命错误:消息为“ cache_dir”的未捕获异常“ Zend_Cache_Exception”必须为目录 - Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir must be a directory 致命错误:带有消息>'cache_dir的未捕获异常'Zend_Cache_Exception'必须是目录' - Fatal error: Uncaught exception 'Zend_Cache_Exception' with message > 'cache_dir must be a directory' PHP致命错误:消息“与Redis服务器的连接断开”未捕获的异常“ CredisException” - PHP Fatal error: Uncaught exception 'CredisException' with message 'Lost connection to Redis server 金字塔:在异常视图中重新启动应用程序 - Pyramid: restart the apps in a exception view 登录zend时出错 - Error with Logging in zend Rails视图不会在Passenger后面呈现。 错误:格式错误的UTF-8 - Rails view won't render behind Passenger. Error: malformed UTF-8 SSL错误Zend Framework BoxAPi - SSL error Zend Framework BoxAPi Zend Framewok安装和配置错误 - Zend Framewok installation and configuration error 设置Apache / Host要求后无法查看Zend Framework 1.0的index.php? - Can't view index.php of Zend Framework 1.0 after setting up Apache/Host requirements? Zend Framework应用程序超时并显示奇怪消息 - Zend Framework application times out with strange message
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM