- Trạng thái
- Đã được giải quyết bởi nhà phát triển
- Plugin/giao diện liên quan
- BeTheme
- Thẻ chủ đề
- Compatibility
Tổng quan về lỗi
Khi sử dụng BeTheme với WPML, bạn có thể gặp phải sự cố trong đó việc cập nhật sản phẩm được tạo bằng Muffin Builder ngăn bản dịch của nó hoàn thành trong Trình biên tập dịch thuật nâng cao (ATE). Điều này xảy ra do thiếu tham chiếu class và bạn sẽ thấy một lỗi nghiêm trọng được ghi lại trong “WPML > Hỗ trợ > ATE > Nhật ký lỗi”:
PHP Fatal error: Uncaught Error: Class "Mfn_Builder_Fields" not found in /wp-content/themes/betheme/functions/builder/class-mfn-builder-admin.php:77
Giải pháp tạm thời
Vui lòng đảm bảo có bản sao lưu toàn bộ trang web trước khi tiếp tục.
- Mở tệp …/wp-content/themes/betheme/functions/theme-woocommerce.php.
- Tìm dòng 1765.
- Thay thế:
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'));
- Bằng:
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'));