- 状态
- 已解决
- 报告针对
- WPML Multilingual CMS 4.7.0
- 解决于
- WPML 4.7.2
- 主题标签
- Compatibility, Performance
问题概述
在 WPML 4.7.0 和 WPML 4.7.1 中,如果激活了大量语言,由于数据库错误,翻译管理插件将无法加载:
“WordPress database error: Too many tables; MySQL can only use 61 tables in a join for query”
WordPress database error Too many tables; MySQL can only use 61 tables in a join for query
SELECT p.post_type
FROM wp_posts p
INNER JOIN wp_icl_translations source_t
ON source_t.element_id = p.ID
AND source_t.element_type = CONCAT('post_', p.post_type)
AND source_t.language_code = 'en'
LEFT JOIN wp_icl_translations target_t_sq
ON target_t_sq.trid = source_t.trid
AND target_t_sq.language_code = 'sq'
LEFT JOIN wp_icl_translation_status target_ts_sq
ON target_ts_sq.translation_id = target_t_sq.translation_id
... etc for all languages
此问题会导致翻译管理无法正常运行。
临时解决方法
我们的开发团队正在积极调查此问题。在此期间,您可以回退到上一版本作为临时解决方案:
或者,您可以在“WPML > 语言”中移除几种语言。