我只是在我的网站上安装一个新的组件,但是当我点击组件设置按钮,在后台我得到这个消息:致命错误
致命错误:调用一个成员函数loadByOption()上非对象/mysite.com/administrator/components/com_sigpro/models/settings.php在线32
文件包含以下代码:
defined('_JEXEC') or die ;
class SigProModelSettings extends SigProModel
{
protected $extensionID = null;
public function getForm()
{
$option = $this->getState('option');
if (version_compare(JVERSION, '2.5.0', 'ge'))
{
$component = JComponentHelper::getComponent($option);
$this->extensionID = $component->id;
JForm::addFormPath(JPATH_ADMINISTRATOR.'/components/'.$option);
$form = JForm::getInstance($option.'.settings', 'config', array('control' => 'jform'), false, '/config');
$form->bind($component->params);
}
else
{
$component = JTable::getInstance('component');
$component->loadByOption($option);
$this->extensionID = $component->id;
$form = new JParameter($component->params, JPATH_ADMINISTRATOR.DS.'components'.DS.$option.DS.'config.xml');
}
return $form;
}
PS我的网站正在运行的Joomla 1.7.5稳定的版本,我不能升级到2.5,因为该网站是在线和高效的一些组件不适用于2.5版本。 所以我会很感激,如果有人能帮我解决这个错误。
在此先感谢
用'com_sigpro',我假设你正在使用[Simple Image Gallery PRO](http://www.joomlaworks.net/extensions/commercial-premium/simple-image-gallery-pro)。这是一个商业扩展,因此您应该联系开发人员,因为这是他们在那里。这也假设你支付的扩展,而不是torrenting它或东西 – Lodder