WPML

问题概述

如果您使用的是 PHP 8.1 并且启用了 WPML 字符串翻译,您会在 debug.log 中遇到以下通知:

`Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in wp-contentpluginswpml-string-translationclassesslug-translationcustom-typeswpml-st-slug-translations.php on line 31`

临时解决方法

此问题已在 WPML 4.6.5 中修复。 更新即可在您的站点上解决此问题,因此只有在您还无法更新时,才需要此临时解决方法。

将 WPML 更新至 4.6.5 版本

所有已知问题

仍然遇到此问题?

如果更新无法解决问题,请提出支持问题,我们将与您一起排查。