使用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.'">';
posted on 2013-04-20 17:06  晓晨  阅读(867)  评论(0编辑  收藏  举报