- 状态
- 已解决
- 相关插件/主题
- Kadence
- 主题标签
- Compatibility
问题概述
如果您使用的是 Kadence PRO 插件,在 WPML > 主题和插件本地化页面对其进行扫描时,将会出现以下错误:
Warning: sprintf(): Too few arguments in .../wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php on line 100
或者,如果您使用的是 PHP 8.+,则会出现此致命错误:
Fatal error: Uncaught ValueError: Unknown format specifier "t" in .../wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:100
临时解决方法
要暂时解决此问题并消除警告消息,请按照以下步骤操作:
- 前往 WPML > 字符串翻译页面。
- 按
%TEXTDOMAIN%; 域筛选字符串。 - 选择此域下的所有字符串并将其删除。