织梦后台发布文章编辑出现一片空白

2025-08-02 0 17
下面修改是针对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();
}
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

版权声明:所有的源码、软件和资料,不得使用于非法商业用途,不得违反国家法律,一切关于该资源商业行为与本站无关。

免费cms模板 dedecms教程 织梦后台发布文章编辑出现一片空白 https://www.mianfeicms.com/584.html

相关文章

发表评论
暂无评论