致命错误:在非对象上调用成员函数loadByOption()

时间:2014-10-16 05:46:17

标签: joomla joomla3.3

我遇到了问题。我在网站上安装了Vodes 1.5。在管理面板中,当我点击保存按钮时,我收到错误"

  

致命错误:在第58行和第34行的/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;
}

请帮忙寻找它。

1 个答案:

答案 0 :(得分:0)

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

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

你必须找到Vodes的替代品或使整个扩展Joomla 3.x兼容,我可以向你保证,不会是一个5分钟的工作