欢迎光临 - 我的站长站,本站所有资源仅供学习与参考,禁止用于商业用途或从事违法行为!

帝国cms教程

Table 'XX.***_enewspubtemp_2' doesn't exist错误详解

帝国cms教程 我的站长站 2020-06-28 共257人阅读

我的站长站测试帝国CMS在恢复数据库的时候,有时候会以下报错。

Table 'px.***_enewspubtemp_2' doesn't exist
select indextemp from ***_enewspubtemp_2 limit 1

我们首先去看下数据库phome_enewspubtemp是什么表,enewspubtemp为公共模板表,indextemp字段为首页模板,所以报错的意思就是,查询不到enewspubtemp_2数据表

我的站长站又去安装一份默认的模板,发现帝国CMS默认模板没有enewspubtemp_2的表,所以可以确认enewspubtemp_2为后期添加的。

基本可以肯定Table 'px.***_enewspubtemp_2' doesn't exist的错误,为搬家或恢复数据库的时候才有。

Table 'XX.***_enewspubtemp_2' doesn't exist错误详解

备份的数据库的配置文件都在config.php内,导致这个原因一般是数据库和配置文件不匹配,比如说数据库里面一个模板组,但是配置文件config.php中有两个模板组,这样两边就不能匹配,导致上面的错误,我自己排查的原因就是这样的,替换config.php之后就解决了,没有再往细处深究,希望对看到这个的人有帮助。

解决方法

这个错误其实可以直接无视,直接输入你的后台地址登录就可以了,并不影响实际使用。

如果你觉得碍眼,就在备份之前,删除管理首页方案的备用模板。

或者替换config.php为默认的。

相关推荐
  • 帝国CMS报错
  • Table 'XX.***_enewspubtemp_2' doesn't exist错误详解

    我的站长站测试帝国CMS在恢复数据库的时候,有时候会以下报错。Table 'px.***_enewspubtemp_2' doesn't existselect indextemp from ***_enewspubtemp_2 limit 1我们首先去看下数据库phome_enewspubtemp是什么表,enewspubtemp为公共模板表...

    帝国cms教程 257 3年前
  • 帝国CMS报错Fatal error: Maximum execution time of

    帝国CMS有时候可能会提示Fatal error: Maximum execution time of …错误,出现这个问题的原因是php运行超时,解决办法如下:去帝国后台参数设置那里把每组备份(刷新)数改小一点,或者去服务器里面把php.ini文件中的max_execution_t= 的值改大一点,如果文件...

    帝国cms教程 79 6年前
  • 帝国CMS数据库报错Parse error: syntax error, unexpected $end in的修复方法

    我的站长站准备修复一些网络上的精品老模板,在升级的时候遇到报错Parse error: syntax error, unexpected $end in D:\TDDOWNLOAD\zhao\e\admin\ebak\bdata\empirecms_20110413031059\phome_ecms_news_data_1_12.php on line 20网上找了一下...

    帝国cms教程 180 3年前
  • 帝国CMS安装时You have an error in your SQL syntax报错

    帝国CMS安装时报如下错误:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE=MYISAM'这种报错提示语法有错误,安装的时候就提示语法有错误,只...

    帝国cms教程 215 1年前
  • 帝国CMS登录报错Table phome_enewsdolog is marked as解决方法
    帝国CMS登录报错Table phome_enewsdolog is marked as解决方法

    帝国cms提示报错Table '.\zh\phome_enewsdolog' is marked as crashed and should be repairedinsert into ***_enewsdolog(username,logip,logtime,enews,doing,pubid,ipport) values...

    帝国cms教程 78 3年前