今天遇到一个问题,记录一下!
很早前用帝国二次开发的一个网站,在采集数据生成内容页时出现了如下错误提示:
Table '*table_ecms_a' doesn't exist......update ***_ecms_ set havehtml=1 where id='' limit 1
根据官方的解释是
原因是你修改了栏目所属系统模型导致,因为栏目原来所属系统模型本身就有信息,而你改动了所属系统模型,使得这些信息无法找出所属栏目导致出错。
解决办法:修改栏目改回原来所属系统模型,然后进管理信息删除栏目所有的信息,最后再修改栏目改回所属新系统模型就可以解决。
但是我并没有修改过栏目啊,所以据我判断,应该是 主表中入库的数据在附表中没有入库,附表中缺少主表的ID,写一个SQL查询下就知道真伪了
解决方法如下:
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)

Last modification:October 31st, 2018 at 01:12 pm
If you think my article is useful to you, please feel free to appreciate