使用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.'">';

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-09-19
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-29
  • 2021-06-20
  • 2021-08-27
  • 2022-12-23
  • 2021-11-17
  • 2021-10-16
相关资源
相似解决方案