帝国CMS刷新内容页出现以下错误
Table '***.phome_ecms_news_data_' doesn't exist select keyid,dokey,newstempid,closepl,infotags,address from ***_ecms_news_data_ where id='xxxx' limit 1
这个主要是因为信息表中该信息已经删除了,但是索引表中还存在,所以就出错了。
执行SQL语句处理掉多余的id既可解决问题:
delete from `phome_ecms_news_index` where id not in(select id from phome_ecms_news)
当然,如果要查询可以用如下指令:
select id from `phome_ecms_news_index` where id not in(select id from phome_ecms_news);
如果清空index,可以用如下指令添加:
update phome_ecms_news_index set checked=1,newstime=1451024707,truetime=1451024748,lastdotime=1451031902,havehtml=1;