简体   繁体   English

Zend致命错误未捕获的异常'Zend_Loader_PluginLoader_Exception',带有消息

[英]Zend Fatal Error Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message

am working with a Zend framework project fine in localhost, but when I put it in a public web server the folowing error comes: 我正在与在本地主机上很好的Zend框架项目一起工作,但是当我将其放在公共Web服务器中时,出现以下错误:

Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'DocType' was not found in the registry; used paths: Zend_View_Helper_: Zend/View/Helper/:../application/views/helpers/' in /path/to/my/appli/application/library/Zend/Loader/PluginLoader.php:412 
Stack trace: 
#0 /path/to/my/appli/application/library/Zend/View/Abstract.php(1182): Zend_Loader_PluginLoader->load('DocType') 
#1 /path/to/my/appli/application/library/Zend/View/Abstract.php(618): Zend_View_Abstract->_getPlugin('helper', 'docType') 
#2 /path/to/my/appli/application/library/Zend/View/Abstract.php(344): Zend_View_Abstract->getHelper('docType') 
#3 [internal function]: Zend_View_Abstract->__call('docType', Array) 
#4 /path/to/my/appli/appli in /path/to/my/appli/application/library/Zend/Loader/PluginLoader.php on line 412

thanks for your help 谢谢你的帮助

doctype区分大小写,您应该编写$ view-> doctype而不是$ view-> docType

problem solved i just removed the folowing lines from my bootstrap: 问题解决了,我只是从引导程序中删除了以下内容:

protected function _initDoctype() {
    $this->bootstrap('view');
    $view = $this->getResource('view');
    $view->docType('XHTML1_TRANSITIONAL');
}

and i dont know why that works fine when i delete it :/ (this function cause no problem in my localhost, but not in the remote server) 而且我不知道为什么当我删除它时效果很好:/(此函数在我的本地主机上没有问题,但在远程服务器上没有问题)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Zend_Loader_PluginLoader_Exception错误 - Zend_Loader_PluginLoader_Exception ERROR 将我的Zend Framework应用程序从Windows移动到Linux并收到致命错误:未捕获的异常'Zend_Loader_PluginLoader_Exception' - Moved my Zend Framework app from Windows to Linux and recieve a Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' 异常“Zend_Loader_PluginLoader_Exception”与消息“按名称为“朋友”的插件未在注册表中找到; 使用的路径: - exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'Friends' was not found in the registry; used paths: 为什么我的zend应用程序可以在本地主机上运行,​​但在服务器上却显示“ Zend_Loader_PluginLoader_Exception”失败? - Why does my zend application work on my localhost but fail on my server with 'Zend_Loader_PluginLoader_Exception'? 致命错误:在消息中,未捕获的异常“ Zend_Loader_Exception”带有消息“资源加载器同时需要名称空间和初始化的基本路径” - Fatal error: Uncaught exception 'Zend_Loader_Exception' with message 'Resource loader requires both a namespace and a base path for initialization' in 致命错误:未捕获的异常'Zend \\ ServiceManager \\ Exception - Fatal error: Uncaught exception 'Zend\ServiceManager\Exception (ZEND)致命错误:带有消息'SQLSTATE [23000]的未捕获异常'PDOException': - (ZEND) Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: 致命错误:未捕获的异常 'Zend_Session_Exception' 带有消息 'Zend_Session::start() - Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() 致命错误:消息为“ Zend_Db”未注册任何条目的未捕获异常“ Zend_Exception” - Fatal error: Uncaught exception 'Zend_Exception' with message 'No entry is registered for key 'Zend_Db'' 致命错误:Zend ServiceManager 中未捕获的异常 - Fatal error: Uncaught exception in Zend ServiceManager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM