织梦dedecms登录后台出现500错误

  大概在281行,把keepUser()函数下的 @session_register(); 整段注释掉(删除也可以),结果如下:

  function keepUser()

  {

  if($this->userID != ” && $this->userType != ”)

  {

  global $admincachefile,$adminstyle;

  if(emptyempty($adminstyle)) $adminstyle = ‘dedecms’;

  //@session_register($this->keepUserIDTag);

  $_SESSION[$this->keepUserIDTag] = $this->userID;

  //@session_register($this->keepUserTypeTag);

  $_SESSION[$this->keepUserTypeTag] = $this->userType;

  //@session_register($this->keepUserChannelTag);

  $_SESSION[$this->keepUserChannelTag] = $this->userChannel;

  //@session_register($this->keepUserNameTag);

  $_SESSION[$this->keepUserNameTag] = $this->userName;

  // @session_register($this->keepUserPurviewTag);

  $_SESSION[$this->keepUserPurviewTag] = $this->userPurview;

  //@session_register($this->keepAdminStyleTag);

  $_SESSION[$this->keepAdminStyleTag] = $adminstyle;

  PutCookie(‘DedeUserID’, $this->userID, 3600 * 24, ‘/’);

  PutCookie(‘DedeLoginTime’, time(), 3600 * 24, ‘/’);

  $this->ReWriteAdminChannel();

  return 1;

  }

  else

  {

  return -1;

  }

  }

  另外的解决方法就是在include/userlogin.class.php 中声明一个函数

☉免责声明:本站所有模板均来自用户分享和网络收集,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服,我们核实后会立即删除。
☉本站提供的源码、模板、软件工具等其他资源,都不包含技术服务,请大家谅解!
pbootcms模板网 » 织梦dedecms登录后台出现500错误

Pbootcms模板网 提供优质的模板集合

立即查看 了解详情