- 상태
- 개발자가 해결함
- 관련 플러그인/테마
- BeTheme
- 주제 태그
- Compatibility
문제 개요
WPML과 함께 BeTheme를 사용할 때, Muffin Builder로 생성한 제품을 업데이트하면 고급 번역 에디터(ATE)에서 번역이 완료되지 않는 문제가 발생할 수 있습니다. 이는 클래스 참조 누락으로 인해 발생하며, “WPML > 지원 > ATE > 오류 로그”에서 치명적인 오류가 기록된 것을 확인할 수 있습니다:
PHP Fatal error: Uncaught Error: Class "Mfn_Builder_Fields" not found in /wp-content/themes/betheme/functions/builder/class-mfn-builder-admin.php:77
임시 해결 방법
진행하기 전에 사이트의 전체 사이트 백업을 완료했는지 확인하세요.
- …/wp-content/themes/betheme/functions/theme-woocommerce.php 파일을 여세요.
- 1765번 줄을 찾으세요.
- 다음 코드를:
function mfn_on_product_updated( $post_ID, $post_after, $post_before ) { if ( get_post_type($post_ID) !== 'product' ) return; require_once(get_theme_file_path('/functions/builder/class-mfn-builder-admin.php'));
- 다음과 같이 교체하세요:
function mfn_on_product_updated( $post_ID, $post_after, $post_before ) { if ( get_post_type($post_ID) !== 'product' ) return; require_once(get_theme_file_path('/functions/builder/class-mfn-builder-admin.php')); require_once(get_theme_file_path('/functions/builder/class-mfn-builder-fields.php'));