0

我面临一个问题。我已经在网站上安装了 Vodes 1.5。在管理面板中,当我单击保存按钮时出现错误“

致命错误:在第 58 行的 /var/www/Joomla/administrator/components/com_vodes/models/config.php 中的非对象上调用成员函数 loadByOption() 。

这是我们正在使用的代码:

function save(){
    // initialize variables.
    $table          = JTable::getInstance('component');
    $params         = JRequest::getVar('params', array(), 'post', 'array');
    $row            = array();
    $row['option']  = 'com_vodes';
    $row['params']  = $params;

    // load the component data for com_ajaxregister
    if (!$table->loadByOption('com_vodes')) {
        $this->setError($table->getError());
        return false;
    }

    // bind the new values
    $table->bind($row);

    // check the row.
    if (!$table->check()) {
        $this->setError($table->getError());
        return false;
    }

    // store the row.
    if (!$table->store()) {
        $this->setError($table->getError());
        return false;
    }

    return true;
}

请帮忙找出来。

4

1 回答 1

0

刚刚查看了 Vodes 的开发者网站。该扩展仅与 Joomla 1.0 和 1.5 兼容,有可能或在 Joomla 2.5 上运行,但绝对不是 Joomla 3.x

Joomla 1.5 和 3.x 之间存在极大的编码差异,因此扩展会到处抛出错误,或者更糟的是,根本不起作用。

您将不得不找到 Vodes 的替代品或使整个扩展 Joomla 3.x 兼容,我可以向您保证,这不是 5 分钟的工作

于 2014-10-16T09:45:19.193 回答