dede後臺沒法寫新文章也沒法編輯之前的文檔,文章編輯的地方沒法寫入,出現沒法顯示該頁面的問題,這是怎麼回事?個人dede在ftp中換過文件夾,是否是跟這個有關?該如何解決這個問題?php
如下修改是針對dedecms 後臺發佈後的文章不能進行編輯修改,點擊編輯出現一片空白的解決辦法但願能幫助的你們!
找到該文件dede/archives_do.php
大約在39行(dede5.7版本)
if($dopost=='editArchives')
{
$query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon
FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__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 `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__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();
}sql