错误提示 Table '.***_ecms_news_data_' doesn't exist select keyid,dok
错误提示: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 _yisvip__ecms_video where id not in (select id from _yisvip__ecms_video_data_1)
delete from _yisvip__ecms_video where id not in (select id from _yisvip__ecms_video_data_1)
delete from `_yisvip__ecms_video_index` where id not in(select id from _yisvip__ecms_video)
相关推荐
-
帝国cms错误提示您的PHP配置文件php.ini配置有问题解决方法
一些php环境在安装帝国cms的时候会提示错误信息比如:您的PHP配置文件php.ini配置有问题该怎么解决呢?其实还是很简单的,PHP环境没有打开支持短标签的功能,只要找到php目录下面的php.ini按上面的提示修改基本就可以解决问题。请按下面操作即可解决:1、修改php.ini,搜索:shor
-
帝国cms错误提示:Use of undefined constant can - assumed 'can'解决办法
在使用php7版本以后,在安装或者后台使用过程中经常会碰到Warning:Usofundfindconsntcan-assumd'can'(thiswillthrowanrrorinafuturvrsionofPHP)in......这样的错误提示。
-
帝国cms后台登录出现"您还未登录"错误提示解决方法
帝国cms后台输入用户名密码提交登录提示:您还未登录错误的原因及解决方法: