DedeCMS文章属性跳转后页面空白


在DedeCMS织梦后台中文章后面都会有属性预览的功能,点击跳转的时候是空白的,在后台编辑的时候也是空白的,可能是使用使用header(location:url)函数跳转时,前面可能有输内容。

解决办法:

前台:

打开include\arc.archives.class.php

找到以下代码(默认是第499行):

header(“location:{$this->Fields[‘redirecturl’]}”);

替换成:

echo ‘<META HTTP-EQUIV=”REFRESH” CONTENT=”0; URL=’.$this->Fields[‘redirecturl’].'”>’;

后台:admin\archives_do.php,第33行header(“location:{$gurl}?aid=$aid”);替换为echo ‘<META HTTP-EQUIV=”REFRESH” CONTENT=”0; URL=’.$gurl.’?aid=’.$aid.'”>’;