• dedecms 后台发布后的文章不能编辑出现一片空白的解决办法


    dede后台无法写新文章也无法编辑以前的文档,文章编辑的地方无法写入,出现无法显示该页面的问题,这是怎么回事?我的dede在ftp中换过文件夹,是不是跟这个有关?该如何解决这个问题?

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

  • 相关阅读:
    idea 连接 hive
    css img自适应
    测试视频文件
    ubuntu不显示ipv4地址的解决办法
    nginx path捕获
    union all两个结果集报ORA-12704: character set mismatch错误
    润乾报表试用指南
    报表工具对比之润乾报表与锐浪报表对比
    项目微管理36
    docker远程调用
  • 原文地址:https://www.cnblogs.com/lanne/p/4901018.html
Copyright © 2020-2023  润新知