繁体   English   中英

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

[英]Fatal error: Call to a member function load() on a non-object Joomla

我有Joomla! 1.7.2稳定,当我尝试登录管理区域时收到此错误

 Fatal error: Call to a member function load() on a non-object in /home/shomos1/public_html/portal/libraries/joomla/user/user.php on line 822

这是我的user.php中的错误行

    public function load($id)
    {
        // Create the user table object

        $table  = $this->getTable();
var_dump($table);
        // Load the JUserModel object based on the user id or throw a warning.
        if (!$table->load($id)) {
            JError::raiseWarning('SOME_ERROR_CODE', JText::sprintf('JLIB_USER_ERROR_UNABLE_TO_LOAD_USER', $id));
            return false;
        }

        // Set the user parameters using the default XML file.  We might want to
        // extend this in the future to allow for the ability to have custom
        // user parameters, but for right now we'll leave it how it is.

        $this->_params->loadString($table->params);

        // Assuming all is well at this point lets bind the data
        $this->setProperties($table->getProperties());

        return true;
    }
}

我的Joomla不好,我不明白那里是什么问题,请帮助我该怎么办才能解决此问题

默认的com_user组件与您的组件冲突,因此您必须重命名其组件文件,它们的名称不能为“ user”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM