dsdfd2322 2013-06-16 09:02
浏览 25
已采纳

too long

I have Joomla! 1.7.2 Stable and when I try to Log in to administration area I get this error

 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

this is the error line in my 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;
    }
}

I am not good in Joomla and I can't understand what is the problem there please need help what can I do to solve this problem Thanks

  • 写回答

1条回答 默认 最新

  • duanran8648 2013-12-17 12:26
    关注

    the default com_user component is conflicting with your component so you must rename your component files they must not have name "user" ...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 在matlab中Application Compiler后的软件无法打开
  • ¥15 想问一下STM32创建工程模板时遇到得问题
  • ¥15 Fiddler抓包443
  • ¥20 Qt Quick Android 项目报错及显示问题
  • ¥15 而且都没有 OpenCVConfig.cmake文件我是不是需要安装opencv,如何解决?
  • ¥15 oracleBIEE analytics
  • ¥15 H.264选择性加密例程
  • ¥50 windows的SFTP服务器如何能批量同步用户信息?
  • ¥15 centos7.9升级python3.0的问题
  • ¥15 安装CentOS6时卡住