我面临一个问题。我已经在网站上安装了 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;
}
请帮忙找出来。