ecms 帝国cm后台刷新文章出现问题解决方式
出现错误
able 'XXXX.***ecms_news_data' doesn't exist
select keyid,dokey,newstempid,closepl,infotags,writer,befrom,newstext from ***ecms_news_data where id='344297' limit 1
错误提示:Table '**.***_ecms_news_data_' doesn't exist select keyid,dokey,newstempid,closepl,infotags,writer,befrom,newstext from ***_ecms_news_data_ where id='36686' limit 1,检查了下,在_ecms_news_data_1这个表中,确实不存在36686这篇文章了。phome_ecms_news_index索引表中存在。
因此,出现这个问题的原因就很简单了:phome_ecms_news_data_1信息表中该信息已经删除了,但是phome_ecms_news_index索引表中还存在,所以就出错了。
因此出现这种情况都是非正常删除造成的,比如直接在数据表中删除文章,后台操作不会出现这种情况。
另外一个喜欢出现这种错误就是采集,采集入库的时候出错也会出现这种情况
Table '.***_ecms_news_data_' doesn't exist select keyid,dokey,newstempid,closepl,infotags,writer,befrom,newstext from ***_ecms_news_data_ where id='36686' limit 1解决方法
后台或者数据库执行以下sql语句即可:
delete from `phome_ecms_news_index` where id not in(select id from phome_ecms_news)
执行完成重新生成无错,完成解决,执行sql语句的时候记得备份哦。
select id from XXXX_ecms_video where id not in (select id from XXXX_ecms_video_data_1)
delete from XXXX_ecms_video where id not in (select id from XXXX_ecms_video_data_1)
delete from `XXXX_ecms_video_index` where id not in(select id from www_kaifatu_com_ecms_video)XXXX
ecms 帝国 刷新文章出现问题解决
Table 'empirecms.phome_ecms_'doesn't existselect titleurl,groupid,classid,newspath,filename,id,title from ***_ecms_ where id>225 andclassid='104'andchecked=1 order by id limit
解决方法如下:其实就是查找内容表和索引表不一样的地方,并且删除。
主要是因为索引表里面有记录而内容表没有
select id from phome_ecms_news where id not in (select id from phome_ecms_news_data_1) delete from phome_ecms_news where id not in (select id from phome_ecms_news_data_1)
或者如下也可以:
问:
Table 'news.phome_ecms_news_data_' doesn't exist
select keyid,dokey,newstempid,closepl,infotags,newstext from ***_ecms_news_data_ where id='888578' limit 1
答:原因是数据本身有问题,信息索引表phome_ecms_表名_index有不存在ID的记录。解决办法:phpmyadmin进数据库找到phome_ecms_表名_index 点击右侧的搜索按钮,输入对应的ID字段值=888578,然后删除索引表中不存在的ID记录即可解决。
select id from www_moban5_cn_ecms_news where id not in (select id from www_moban5_cn_ecms_news_data_1);
delete from www_moban5_cn_ecms_news where id not in (select id from www_moban5_cn_ecms_news_data_1)
select id from www_moban5_cn_ecms_game where id not in (select id from www_moban5_cn_ecms_game_data_1);
delete from www_moban5_cn_ecms_game where id not in (select id from www_moban5_cn_ecms_game_data_1)
delete from www_moban5_cn_ecms_news_index where id not in(select id from www_moban5_cn_ecms_news)
delete from www_moban5_cn_ecms_game_index where id not in(select id from www_moban5_cn_ecms_game)