2012-01-10 70 views
0

我必须尽量模拟和开发一些Zend的项目 的基础和第一步我&文件夹复制所有FTP文件到我的本地计算机 但应用程序给我下面的错误(从源加载插件)Zend_Loader_PluginLoader_Exception ERROR

(!) Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name '_' in C:\wamp\Mina\library\Zend\Loader\PluginLoader.php on line 398 
(!) Zend_Loader_PluginLoader_Exception: Plugin by name '_' was not found in the registry; used paths: Mina_View_Helper_: Mina/View/Helper/ App_View_Helper_: App/View/Helper/ Zend_View_Helper_: Zend/View/Helper/;C:/wamp/Mina/application/modules/default/views\helpers/ in C:\wamp\Mina\library\Zend\Loader\PluginLoader.php on line 398 

甚至有些插件exsist隐藏在var_dumped错误阵列中pluginloader.php线398 这样的:

string 'Db' (length=2) 
array 
    'Zend_Application_Resource_' => 
    array 
      0 => string 'Zend/Application/Resource/' (length=26) 
string 'Translate' (length=9) 
array 
      'Zend_Application_Resource_' => 
     array 
     0 => string 'Zend/Application/Resource/' (length=26) 
string 'Layout' (length=6) 
array 
     'Zend_Application_Resource_' => 
    array 
     0 => string 'Zend/Application/Resource/' (length=26) 
string 'Frontcontroller' (length=15) 
array 
    'Zend_Application_Resource_' => 
    array 
     0 => string 'Zend/Application/Resource/' (length=26) 
string 'ViewRenderer' (length=12) 
array 
    'Zend_Controller_Action_Helper_' => 
    array 
     0 => string 'Zend/Controller/Action/Helper/' (length=30) 
string 'Navigation' (length=10) 
array 
    'Mina_View_Helper_' => 
    array 
     0 => string 'Mina/View/Helper/' (length=16) 
    'App_View_Helper_' => 
array 
    0 => string 'App/View/Helper/' (length=16) 
    'Zend_View_Helper_' => 
     array 
      0 => string 'Zend/View/Helper/' (length=17) 
      1 => string './views\helpers/' (length=16) 
    string 'View' (length=4) 
    array 
     'Zend_Application_Resource_' => 
     array 
     0 => string 'Zend/Application/Resource/' (length=26) 
    string 'Modules' (length=7) 
    array 
     'Zend_Application_Resource_' => 
     array 
       0 => string 'Zend/Application/Resource/' (length=26) 
     string 'Router' (length=6) 
    array 
     'Zend_Application_Resource_' => 
     array 
      0 => string 'Zend/Application/Resource/' (length=26) 
    string 'Word_CamelCaseToDash' (length=20) 
    array 
     'Zend_Filter_' => 
     array 
      0 => string 'Zend/Filter/' (length=12) 
    string 'StringToLower' (length=13) 
    array 
     'Zend_Filter_' => 
     array 
      0 => string 'Zend/Filter/' (length=12) 

地雷一些插头插件不存在 但原来的项目与这种情况

在进一步传达我发现的index.php引用一些库,我不能与FTP服务器上的任何伎俩 (5号线下面的代码:)

defined('APPLICATION_PATH') 
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); 

set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../../library'), 
    realpath(APPLICATION_PATH . '/../library'), 
    realpath(APPLICATION_PATH . "/models"), 
    realpath(APPLICATION_PATH . "/forms"), 
    get_include_path(), 
))); 

tree map of original project Going on this link

在进一步的没有在我的库文件夹中的任何navigation.php不是那样的错误说(除zendframework类)

,每这个名称空间(和视图助手)在application.ini中注册012.

因为没有插件运行,所以没有页面显示。 分享我,如果你有关于这个错误的任何想法

+0

我不是粗鲁。我明白英语不是你的语言。但是请尽量表达自己,因为我不知道你在说什么。 – Iznogood 2012-01-10 19:52:09

+0

如果有东西是不透明的,请告诉我描述更多。我的项目在服务器上工作,但不能在本地Windows机器上工作。带有一些不存在于ftp文件夹中的库传递。 – hadi 2012-01-11 10:23:35

回答

0

我不知道这是否是正确的答案,但它值得一试...

我能想到的最简单的方式重现这个错误我自己是插入下面的代码到我的意见之一:

<?php echo $this->_('Some text');?> 

这表明,我认为也许应用程序所使用的语言翻译gettext的模块,也许它是你的服务器上配置,但不是在ÿ我们的本地机器。运行phpinfo()应该很快证实这一点。这是我从我的问题中收集的信息中唯一可以解释的解释。

当然,如果有人使用的gettext到多lingualize的应用程序,我敢肯定下划线之前,他们就不会列入“$这个 - >”,所以这是一个位的在我的答案异常。

+0

嗨 关于引用不存在的库,你有什么看法?(在index.php的第5行) – hadi 2012-01-12 09:29:06

+0

从技术角度来看,在包含不存在的包含路径的文件夹中不存在问题,这是不必要的也是不清洁的,并且暗示有人在某个地方不太清楚他们在做什么,所以他们只是添加了一些东西,直到应用程序工作,但是没有花费时间去除那些没有“工作。只需删除第5行,如果应用程序中断,将其添加回去,然后尝试删除第4行,因为可能只需要其中一个引用(除非,当然,您实际上*有*有两个库文件夹...) – JamesG 2012-01-12 22:22:20