Magento - zend - 后端错误

时间:2010-04-26 02:46:18

标签: php zend-framework magento autoload

当我在magento中登录后端时出现以下错误

致命错误:接口'Zend_Http_Client_Adapter_Interface'未在/homepages/45/d210005774/htdocs/websitename/lib/Varien/Http/Adapter/Curl.php第176行找到

此外,我之前在magento的索引管理部分中收到此错误

致命错误:调用未定义的方法Zend_Locale_Data :: disableCache()in /homepages/45/d210005774/htdocs/websitename/lib/Zend/Locale/Format.php 第153行

有人可以帮我解决这个问题吗?我认为问题与zend框架有关,但我不确定是什么导致这个

2 个答案:

答案 0 :(得分:0)

您的安装看起来有问题。要么你丢失了Magento的lib文件夹中的文件,你在Magento的lib文件夹中损坏了文件,要么(longshot)你的PHP包含路径指向不同的位置。

我要做的第一件事是下载您的Magento版本的全新安装,将其解压缩到一个单独的文件夹中,然后运行

diff -r /homepages/45/d210005774/htdocs/websitename/ /path/to/fresh/magento

这将为您提供标准核心文件与您自己的核心文件之间的差异列表。

如果要诊断特定文件,请检查

lib/Zend/Http/Client/Adapter/Interface.php

缺少接口

 interface Zend_Http_Client_Adapter_Interface
 {
 ...
 }

并检查

lib/Zend/Locale

缺少方法

public static function disableCache($flag)
{
    self::$_cacheDisabled = (boolean) $flag;
}

最后,检查PHP包含路径,确保没有包含Magento和/或Zend的旧版本。

答案 1 :(得分:0)

再次上传Zend文件夹。这对我有用。