自己的一個dedecms網(wǎng)站在升級5.7后,發(fā)現(xiàn)后臺廣告管理有錯誤,提示:
---------------------------------------------------------------------------------
Error page: /dede/ad_main.php
Error infos: Unknown column ‘a(chǎn)d.clsid’ in ‘on clause’
Error sql: SELECT COUNT(*) AS dd FROM `dede_myad` ad LEFT JOIN `dede_arctype` tp on tp.id=ad.typeid LEFT JOIN `dede_myadtype` ap on ap.id=ad.clsid WHERE 1=1 LIMIT 0,1;
DedeCMS Error Warning!
Technical Support: http://blog.rekfan.com
Error page: /dede/ad_main.php
Error infos: Unknown column ‘a(chǎn)d.clsid’ in ‘field list’
Error sql: SELECT ad.aid,ad.clsid,ad.tagname,tp.typename as typename,ad.adname,ad.timeset,ad.endtime,ap.typename as clsname FROM `dede_myad` ad LEFT JOIN `dede_arctype` tp on tp.id=ad.typeid LEFT JOIN `dede_myadtype` ap on ap.id=ad.clsid WHERE 1=1 ORDER BY ad.aid desc LIMIT 0,20
---------------------------------------------------------------------------------
官方的解釋說這是因為數(shù)據(jù)庫myad缺少了clsid字段。
解決方法:
1.直接去進入PhpMyAdmin中修改數(shù)據(jù)表,或
2.進入『網(wǎng)站后臺』-『系統(tǒng)』-『SQL命令行工具 』執(zhí)行sql命令
ALTER TABLE `dede_myad` ADD COLUMN `clsid` int(10) NOT NULL DEFAULT 0 AFTER `aid`;
版權聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: dedecms5.5/5.7 廣告管理提示Unknown column‘a(chǎn)d.clsid’in‘on