Pular navegação

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using BeTheme with WPML, you might experience an issue where updating a product created with the Muffin Builder prevents its translation from completing in the Advanced Translation Editor (ATE). This happens due to a missing class reference, and you will see a fatal error logged in “WPML > Support > ATE > Error Logs”:

PHP Fatal error:  Uncaught Error: Class "Mfn_Builder_Fields" not found in /wp-content/themes/betheme/functions/builder/class-mfn-builder-admin.php:77

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/themes/betheme/functions/theme-woocommerce.php file.
  • Look for line 1765.
  • Replace:
    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'));
            
  • With:
    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'));
            

Deixe uma resposta

Por favor, mantenha-se no tópico e seja respeitoso com os outros. Se precisar de ajuda com questões não relacionadas a este post, use nosso Fórum de Suporte para iniciar um chat ou enviar um ticket.

Você pode usar estas tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>