dede 织梦编辑框显示不出来的问题

1.找到dede文件夹中的article_add.php和article_edit.php两个文件,对比旧版的两个文件,发现在大约186行开始的语句有不同:

$query = "INSERT INTO `dede_archives`(id,typeid,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,  color,writer,source,litpic,pubdate,senddate,mid,notpost,description,keywords,filename,dutyadmin,weight)  VALUES ('$arcID','$typeid','$typeid2','$sortrank','$flag','$ismake','$channelid','$arcrank','$click','$money',  '$title','$shorttitle','$color','$writer','$source','$litpic','$pubdate','$senddate',  '$adminid','$notpost','$description','$keywords','$filename','$adminid','$weight');"; 

旧版缺少typeid和weight两个字段

在网站后台执行SQL语句创建这个字段就解决问题了:注意选择执行多行命令。ALTER TABLE `dede_archives` ADD `weight` int(10) not null AFTER `mtype`;

ALTER TABLE `dede_archives` ADD COLUMN `voteid` int(10) NOT NULL DEFAULT 0 AFTER `mtype`;

至此,问题解决

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/3db55973167ea8b49d99ec3b15fa722d.html