joomla组件中出现致命错误


Fatal error in joomla component

我刚刚在我的网站上安装了一个新组件,但当我点击后端的组件设置按钮时,我会收到以下消息:

致命错误:在第32行/mysite.com/administrator/components/com_sgpro/models/settings.php中的非对象上调用成员函数loadByOption()

该文件包含以下代码:

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版本上不起作用。因此,如果有人能帮我纠正这个错误,我将不胜感激。

提前感谢

您1.6需要1.6特定的模块、组件&插件。您需要找到1.6兼容的版本或替代版本,或者检查/configuration.php 的权限

文件系统中似乎不存在表类。它应该在/mysite.com/administrator/components/com_sgpro/tables文件夹中的某个位置(可能因代码而异,但看起来没有包含自定义路径)。该类应该扩展JTable类。