dedecms发布文章编辑出现一片空白的解决办法

  • 打开 dede/archives_do.php
  • 大约在39行(dedecms5.7版本)
    if($dopost=='editArchives'){     $query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon FROM `dede_arctiny` arc LEFT JOIN `dede_arctype` tp ON tp.id=arc.typeid LEFT JOIN `dede_channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' ";     $row = $dsql->GetOne($query);     $gurl = $row['editcon'];     if($gurl=='') $gurl='article_edit.php';     header("location:{$gurl}?aid=$aid");     exit(); }
  • 替换为以下代码
    // 编辑文档 function editArchives() { } --------------------------- if($dopost=='editArchives'){     $query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon FROM `dede_arctiny` arc LEFT JOIN `dede_arctype` tp ON tp.id=arc.typeid LEFT JOIN `dede_channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' ";     $row = $dsql->GetOne($query);     $gurl = $row['editcon'];     if($gurl=='') $gurl='article_edit.php';     echo '<META HTTP-EQUIV="REFRESH" CONTENT="1; URL='.$gurl.'?aid='.$aid.'">';     exit(); }

     

本页面信息来源互联网,如您认为该页面内容侵犯您的权益,请拨打电话处理。 备案号:陕ICP备2022008266号-1陕公网安备61030302000361