WPML
ステータス
開発者により解決済み
関連するプラグイン/テーマ
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'));
            

すべての既知の問題 →