localhostDEDEloginphp页面空白,无法进入后台

localhostDEDEloginphp页面空白,无法进入后台,第1张

网上有两种解决方法:

一种是说你曾用记事本编辑过dede的php文件

2是说你得修改

找include/userloginclassphp里面的keepuser()函数,

把@session_register 全部改写, 虽然不知道这个@是什么意思

把@session_register($this->keepUserIDTag); 注释掉,然后改为

if (!isset($_SESSION[$this->keepUserIDTag]))

全部有6个。

如下:

if (!isset($_SESSION[$this->keepUserIDTag]))

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

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

if (!isset($_SESSION[$this->keepUserTypeTag]))

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

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

if (!isset($_SESSION[$this->keepUserChannelTag]))

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

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

if (!isset($_SESSION[$this->keepUserNameTag]))

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

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

if (!isset($_SESSION[$this->keepUserPurviewTag]))

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

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

if (!isset($_SESSION[$this->keepAdminStyleTag]))

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

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

然后就可以登入后台了。

我用的第二种方法解决的

首先可以在本地使用可视化工具查询语句:SELECT count(id) AS c FROM dede_archives WHERE pubdate > UNIX_TIMESTAMP( CURDATE( ) )

是否有有当天的数据。

这个我遇到过,你php版本应该是53以上吧dede不支持最新的php函数session_register()已经被弃用了直接注释掉就可以了,不用进行注册就可以声明session。

在include/userloginclassphp中查找function keepUser(),大概在281行

把keepUser()函数下的@session_register();整段删除

另外的解决方法就是在include/userloginclassphp 中声明一个函数

function session_register()

{

return true;

}

一、织梦CMS自带评论系统所需要用到的文件和文件夹:PLUS文件夹下feedback开头的三个PHP文件、member文件夹下的inc、space、templets三个文件夹,另外还有对应的CSS样式,如果大家不是用的织梦自带的CSS文件,那么就把下面涉及到评论框的CSS样式粘贴到自己的CSS文件中去:

mt1{/ ( margin-top  1 )/margin-top:8px;}

pright mt1{margin-top:0px;}

tbox{margin:0 0 8px 0;border-bottom:1px solid #DADADA;overflow:hidden;}

tbox dt{height:24px;border:1px solid #DADADA;overflow:hidden;clear:both;}

tbox dd{border-left:1px solid #DADADA;border-right:1px solid #DADADA;/padding:4px 4px 0px;/overflow:hidden;}

tbox dt strong{height:24px;line-height:24px;!important;line-height:25px;padding-left:8px;padding-right:4px;display:block;float:left;color:#316301;letter-spacing:1px;}

tbox dt strong a{color:#316301;}

tbox dt strong a:hover{color:#596F37;text-decoration:none;}

tbox dt spanmore{float:right;position:relative;line-height:25px;padding-right:8px;color:#596F37;}

tbox dt spanmore a{color:#596F37;text-decoration:none;}

tbox dt spanmore a:hover{color:#ff3333;text-decoration:underline;}

tbox dt spanlabel{height:25px;float:right;overflow:hidden;padding-right:1px;padding-top:2px;}

tbox dt spanlabel a{height:26px;display:block;padding:0px 7px 0px 8px;line-height:26px;border-left:1px solid #DADADA;float:left;color:#666;text-decoration:none;overflow:hidden;letter-spacing:1px;}

tbox dt spanlabel a:hover{color:#360;}

tbox dt spanlabel athisclass{background:#FFF;color:#333;border-top:3px solid #DADADA;}

tbox dt spanlinklabel{float:left;margin-left:10px;overflow:hidden;padding-right:1px;padding-top:2px;}

tbox dt spanlinklabel a{height:20px;display:block;padding:0px 7px 0px 8px;margin:0 5px;line-height:20px;border-left:1px solid #DADADA;border-top:1px solid #DADADA;border-right:1px solid #DADADA;float:left;color:#666;text-decoration:none;overflow:hidden;letter-spacing:1px;}

tbox dt spanlinklabel a:hover{color:#360;}

tbox dt spanlinklabel athisclass{color:#333;}

dede_comment_post{padding:5px;}

dcmp-title{line-height:25px;}

dcmp-title strong{color:#444;font-weight:normal;}

dcmp-title small{font-size:12px;color:#999999;}

dcmp-stand{float:right;margin-top:-18px;padding-right:10px;position:relative;clear:both;color:#999;}

dcmp-stand strong{font-weight:normal;color:#444;}

dcmp-stand input{margin-right:2px;}

dcmp-stand img{vertical-align:middle;margin-right:2px;}

dcmp-content{padding-top:8px;}

dcmp-content textarea{height:100px;width:450px;float:left;}

dcmp-content1{/width:700px;/padding-top:8px;}

dcmp-content1 textarea{height:100px;width:700px;float:left;}

dcmp-mood{height:25px;width:212px;margin-top:8px;float:right;}

dcmp-mood strong{float:left;color:#444;font-weight:normal;line-height:25px;}

dcmp-mood ul{float:left;}

dcmp-mood ul li{float:left;margin-right:8px;height:30px;}

dcmp-mood ul li input,dcmp-mood ul li img{vertical-align:middle;margin-right:4px;margin-right:0px;}

dcmp-post{height:35px;overflow:hidden;clear:both;color:#444;padding:5px 0 10px 0;}

dcmp-post dcmp-userinfo{float:left;margin-right:6px;}

dcmp-post dcmp-userinfo input{height:13px;padding-right:0px;}

dcmp-post dcmp-userinfo input,dcmp-post dcmp-userinfo img{vertical-align:middle;margin:5px;}

dcmp-post dcmp-submit{float:left;padding-top:6px;}

dcmp-post dcmp-submit input,dcmp-post dcmp-submit button{vertical-align:middle;}

dcmp-post dcmp-submit button{width:70px;height:25px;border:none;background:url(/bg/btn-bg2gif) no-repeat;line-height:25px;letter-spacing:1px;overflow:hidden;color:#444;cursor:pointer;margin-left:5px;}

decmt-box2{width:98%;padding:6px 5px;margin:0px auto;overflow:hidden;clear:both;}

decmt-box2 spanfr{float:right;}

decmt-box2 spantitle{float:left;line-height:20px;width:600px;}

decmt-box2 ul{}

decmt-box2 ul li{width:100%;border-bottom:1px dashed #ccc;padding-bottom:10px;overflow:hidden;}

decmt-box2 ul li aplpic{float:left;width:40px;height:40px;padding:2px;border:1px solid #DFD9B9;background:#F9FDED;margin-right:5px;overflow:hidden;}

decmt-box2 ul li p{float:left;width:630px;line-height:22px;}

decmt-box2 comment_act{float:left;width:630px;line-height:20px;color:#aeaeae;}

decmt-box2 comment_act a{color:#aeaeae;}

decmt-box{width:98%;padding:6px 5px;margin:0px auto;overflow:hidden;clear:both;}

decmt-box spanfr{float:right;}

decmt-box spantitle{float:left;line-height:20px;width:600px;}

decmt-box ul{}

decmt-box ul li{width:100%;border-bottom:1px dashed #ccc;padding-bottom:10px;overflow:hidden;}

decmt-box ul li aplpic{float:left;width:40px;height:40px;padding:2px;border:1px solid #DFD9B9;background:#F9FDED;margin-right:5px;overflow:hidden;}

decmt-box ul li p{float:left;width:630px;line-height:22px;}

decmt-box comment_act{float:left;width:630px;line-height:20px;color:#aeaeae;}

decmt-box comment_act a{color:#aeaeae;}

decmt-box1{width:98%;padding:6px 5px;margin:0px auto;overflow:hidden;clear:both;}

decmt-box1 spanfr{float:right;}

decmt-box1 spantitle{float:left;line-height:20px;width:600px;}

decmt-box1 ul{}

decmt-box1 ul li{width:100%;border-bottom:1px dashed #ccc;padding:10px 0;overflow:hidden;}

decmt-box1 ul li aplpic{float:left;width:40px;height:40px;padding:2px;border:1px solid #DFD9B9;background:#F9FDED;margin-right:5px;overflow:hidden;}

decmt-box1 ul li p{float:left;width:880px;line-height:22px;}

decmt-box1 comment_act{float:left;width:880px;line-height:20px;color:#aeaeae;}

decmt-box1 comment_act a{color:#aeaeae;}

二、在模板管理里面,把ajaxfeedback2htm里面的内容复制到ajaxfeedbackhtm中去,覆盖原来内容。

三、网站需要用到评论系统的地方使用{dede:include file='ajaxfeedbackhtm' /}标签调用即可。

找到default文件夹,在里面找到headhtm文件,打开,找到“主页”那个词,这个词上下的附近的代码都是导航条的,导航条跟搜索是连在一起的,导航条在上,搜索在下,代码有class这个东西,看它后面的css名字,这些css名字在style文件夹的某个文件可以找到同名css,这个 时候打开style文件夹里面的6个文件。逐一找下,找到了,修改同名字的 css,要自己试验就可以了 。

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » localhostDEDEloginphp页面空白,无法进入后台

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情