- 상태
- 미해결
- 보고된 제품
- WPML Multilingual CMS 4.6.7
- 관련 플러그인/테마
- Flux Checkout
- 주제 태그
- Bug, Compatibility
문제 개요
Flux Checkout과 같은 플러그인을 사용하는 경우, WPML 문자열 번역 플러그인을 활성화하고 관리 화면 언어를 보조 언어로 전환할 때 치명적인 오류가 발생할 수 있습니다:
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
임시 해결 방법
진행하기 전에 사이트의 전체 백업을 생성했는지 확인하세요.
- …/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php 파일을 여세요.
- 다음 줄 뒤에:
private function get_file_path_pattern( $file_path, $original_domain ) { $pathinfo = pathinfo( $file_path ); $file_type = isset( $pathinfo['extension'] ) ? $pathinfo['extension'] : null; - 다음을 추가하세요:
$file_path = str_replace('%', '', $file_path);