聊点啥好呢 發表於 2013-12-13 14:56:34

帝国cms升级到7.0 出现Unknown column 'checked' in 'field list' 错误的解决方法

<p><strong>&nbsp;问题描述:</strong></p>
<p>帝国cms从6.6升级到帝国cms7.0,一路正常,但是当我进入后台点管理信息以后就出现了</p>
<p>Unknown column 'checked' in 'field list'<br />select id,classid,titleurl,groupid,newspath,filename,checked,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from ***_ecms_movie order by id desc limit 0,100</p>
<p align="center"><img alt="1.jpg" width="634" height="329" src="https://img.jbzj.com/file_images/article/201312/201312131459402.jpg" /></p>
<p><strong>问题原因:</strong></p>
<p>看提示应该是说checked这个字段不存在了。</p>
<p>出现这个是因为我自己写了个信息列表模板</p>
<p align="center"><img alt="2.jpg" width="664" height="357" src="https://img.jbzj.com/file_images/article/201312/201312131459403.jpg" /></p>
<p>这个文件帝国cms是升级不到的,所以里面存在之前的checked字段没有去掉</p>
<p>&nbsp;</p>
<p><strong>问题解决办法:</strong></p>
<p>打开/e/data/html/list/alllistinfo_movie.php</p>
<p>找到下面这段sql,大概在第9行</p>
<p>$query=&quot;select id,classid,titleurl,groupid,newspath,filename,<strike><strong>checked</strong></strike>,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_&quot;.$tbname.$where.&quot; order by &quot;.$doorder.&quot; limit $offset,$line&quot;;</p>
<p>改成</p>
<p>$query=&quot;select id,classid,titleurl,groupid,newspath,filename,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_&quot;.$tbname.$where.&quot; order by &quot;.$doorder.&quot; limit $offset,$line&quot;;</p>
<p>&nbsp;</p>
<p>覆盖上传即可</p>
頁: [1]
查看完整版本: 帝国cms升级到7.0 出现Unknown column 'checked' in 'field list' 错误的解决方法