用dedecms时,跳转页面什么都不显示,后台编辑时,也全是空白页。
原因:使用header(location:url)函数跳转时,前面可能有输内容。
推荐学习:织梦cms
解决办法:
前台:
代码如下:
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.'">';
以上就是dedecms文章跳转属性打开后页面空白怎么办的详细内容。
