以下修改是针对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();
}