Skip Navigation

Resolved

Overview of the issue

When configured to use AJAX submission, Avada forms are not sending emails in secondary languages. This happens due to a JavaScript error.

Workaround

  1. Please, be sure to make a full backup of your site before proceeding.
  2. Open the /wp-content/plugins/fusion-builder/inc/helpers/class-fusion-builder-form-helper.php file.
  3. Replace the following snippet (around line 232):
     // If form post exists. if ( false !== get_post_status( $id ) ) { $fusion_form = [ 'id' => $id, 'field_types' => [], 'form_meta' => self::fusion_form_get_form_meta( $id ), 'field_labels' => [], 'field_logics' => [], 'form_number' => $id, 'text_config' => [], ]; } 

    With this:

     // If form post exists. if ( false !== get_post_status( $id ) ) { $id = apply_filters( 'wpml_object_id', $id, 'fusion_form' , TRUE ); $fusion_form = [ 'id' => $id, 'field_types' => [], 'form_meta' => self::fusion_form_get_form_meta( $id ), 'field_labels' => [], 'field_logics' => [], 'form_number' => $id, 'text_config' => [], ]; }