【问题标题】:Fatal error: Call to undefined method Zend_XmlRpc_Value::getGenerator() magento致命错误:调用未定义的方法 Zend_XmlRpc_Value::getGenerator() magento
【发布时间】:2012-10-18 21:17:52
【问题描述】:

当出现问题时我正在升级 magento,现在当我尝试登录管理员时,我无法登录到 magento 的后端管理员,并且出现以下错误

Fatal error: Call to undefined method Zend_XmlRpc_Value::getGenerator() in /home/boutique/public_html/app/code/core/Zend/XmlRpc/Request.php on line 413

各行的代码是

/**
     * Create XML request
     *
     * @return string
     */
    public function saveXml()
    {
        $args   = $this->_getXmlRpcParams();
        $method = $this->getMethod();

        $generator = Zend_XmlRpc_Value::getGenerator();
        $generator->openElement('methodCall')
                  ->openElement('methodName', $method)
                  ->closeElement('methodName');

我不明白为什么会发生这个问题,我尝试从新下载的 magento 中替换 request.php 和 response.php 文件..

身体可以帮助我吗?为什么会出现这个错误?

【问题讨论】:

    标签: php xml zend-framework magento


    【解决方案1】:

    您的 PHP 和 Magento 安装出现问题 — 由于某种原因,被实例化的 Zend_XmlRpc_Value 对象不包含 getGenerator 方法。该对象的类通常在

    中定义
    lib/Zend/XmlRpc/Value.php
    

    但是,可能有一个类覆盖

    app/code/core/Zend/XmlRpc/Value.php
    app/code/community/Zend/XmlRpc/Value.php
    app/code/local/Zend/XmlRpc/Value.php
    

    您的系统也可能在 PHP 包含路径的某处安装了另一个版本的 zend 框架。

    【讨论】:

    • 你有什么建议?我应该再次升级吗?因为我现在收到新错误?我正在使用下载器方法,出了点问题
    • 我建议卷起袖子,以此作为学习经验。
    • awesome cmets ,,, 我正在努力,谢谢兄弟的指导
    猜你喜欢
    • 2015-01-28
    • 2015-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-03
    • 2012-01-06
    • 2014-07-20
    相关资源
    最近更新 更多