Exception Zend_Loader_PluginLoader_异常错误

Exception Zend_Loader_PluginLoader_异常错误,exception,ftp,zend-framework,Exception,Ftp,Zend Framework,我尝试模拟和开发某个zend项目的基础 在第一步中,我将所有FTP文件和文件夹复制到本地计算机 但应用程序发送给我以下错误(从源代码加载插件时) 甚至有些插件存在于pluginloader.php第398行的var_转储错误数组中 像这样: string 'Db' (length=2) array 'Zend_Application_Resource_' => array 0 => string 'Zend/Application/Resource/

我尝试模拟和开发某个zend项目的基础 在第一步中,我将所有FTP文件和文件夹复制到本地计算机 但应用程序发送给我以下错误(从源代码加载插件时)

甚至有些插件存在于pluginloader.php第398行的var_转储错误数组中 像这样:

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行:)

此外,在我的库文件夹中没有任何navigation.php与错误所说的不同(zendframework类除外)

并且每个名称空间(和视图帮助程序)都在application.ini中注册

因为没有插件运行,所以不会显示任何页面。
如果您对这个错误有任何想法,请与我分享。

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

我自己能想到的复制此错误的最简单方法是在我的一个视图中插入以下代码:

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

这向我建议,也许您的应用程序使用gettext模块进行语言翻译,也许它是在您的服务器上配置的,而不是在您的本地机器上配置的。运行phpinfo()应该可以很快确认这一点。这是我从你的问题中收集到的信息中能推断出的唯一解释


当然,如果有人使用了gettext将应用程序进行多语言化,我很确定他们不会在下划线前加上“$this->”,所以这在我的回答中有点反常。

我不是在粗鲁。我知道英语不是你的语言。但是请尽量更好地表达自己,因为我不知道你在说什么。如果有什么不清楚的,请告诉我描述更多。我的项目在服务器上工作,但在本地windows计算机上不工作。使用ftp文件夹中不存在的一些库通行证。您好,您对引用不存在的库有什么看法?(在index.php的第5行)虽然从技术角度来看,在您的包含路径中包含一个不存在的文件夹没有问题,但这是不必要的,不干净的,并向我建议,在开发过程中的某个地方,他们不太清楚自己在做什么,所以他们只是在应用程序工作之前添加了一些东西,但没有花时间删除那些不工作的部分。只需删除第5行,如果应用程序中断,请将其重新添加,然后尝试删除第4行,因为可能只需要其中一个引用(当然,除非您确实有两个库文件夹…)
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(),
)));
<?php echo $this->_( 'Some text' );?>