Discuz!X出错common_member_archive’ doesn’t exist 3.1解决办法

Discuz! Database Error(1146) Table ‘sz.common_member_archive’ doesn’t exist SELECT COUNT(*) FROM common_member_archive 

PHP Debug

No. File Line Code
1 admin.php 57 require(%s)
2 source/admincp/admincp_tools.php 36 updatecache()
3 source/function/function_cache.php 26 build_cache_userstats()
4 source/function/cache/cache_userstats.php 16 table_common_member->count()
5 source/class/table/table_common_member.php 172 table_common_member_archive->count(%d)
6 source/class/table/table_common_member_archive.php 48 discuz_database::result_first(%s, Array)
7 source/class/discuz/discuz_database.php 117 discuz_database::query(%s, Array, false, false)
8 source/class/discuz/discuz_database.php 136 db_driver_mysql->query(%s, false, false)
9 source/class/db/db_driver_mysql.php 153 db_driver_mysql->halt(%s, %d, %s)
10 source/class/db/db_driver_mysql.php 224 break()

解决方法:

登陆后台,站长—数据库—升级(Discuz! 数据库升级 – 请将数据库升级语句粘贴在下面:)中执行语句 :

  1. DELETE FROM `pre_common_setting` WHERE `skey` = 'membersplit'

就可以了,若没有找到执行语句的输入窗口 则修改config/config_global.php 当中的 $_config[admincp][runquery] 设置修改为 1 (为了安全执行完该语句后 确认解决了1146错误后 再将配置该回来 )  刷新后再输入执行。

提示:为了数据安全执行该语句前建议备份数据。