【问题标题】:zend framework website not running by localhost, how to configure it in htdocs in xampp serverzend 框架网站未由 localhost 运行,如何在 xampp 服务器的 htdocs 中配置它
【发布时间】:2020-08-21 09:20:06
【问题描述】:

当我尝试运行我的网站时出现错误

Fatal error: Uncaught Zend_Controller_Dispatcher_Exception: Invalid controller specified (error) in
C:\xampp\htdocs\dms\library\Zend\Controller\Dispatcher\Standard.php:248 Stack trace: #0
C:\xampp\htdocs\dms\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1
C:\xampp\htdocs\dms\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #2
C:\xampp\htdocs\dms\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #3
C:\xampp\htdocs\dms\index.php(93): Zend_Application->run() #4 {main} thrown in
C:\xampp\htdocs\dms\library\Zend\Controller\Dispatcher\Standard.php on line 248

【问题讨论】:

    标签: zend-framework frameworks fatal-error


    【解决方案1】:

    来自文档

    https://framework.zend.com/manual/1.12/en/zend.controller.plugins.html

    默认情况下,Zend_Controller_Plugin_ErrorHandler 将转发到默认模块中的 ErrorController::errorAction()。您可以使用插件可用的各种访问器为这些设置替代值:

    因此,您的应用程序可能会生成错误,然后尝试分派错误控制器但它不存在。检查您的应用程序中是否有 ErrorController。

    【讨论】:

    • 我没有得到文件名包含错误处理。
    • 如果你有“application/controllers/ErrorController.php”文件,请检查你的应用程序,你有吗?
    猜你喜欢
    • 2017-06-06
    • 2012-12-02
    • 1970-01-01
    • 2023-02-22
    • 1970-01-01
    • 2012-12-01
    • 1970-01-01
    • 2011-03-24
    • 2015-10-08
    相关资源
    最近更新 更多