문제 개요
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로 업데이트하세요