Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to translate the user notification of an Avada form and encountering a critical error when translating the 'Register Course' Avada Form.
Solution:
We recommend the following steps to address the issue:
1) Ensure you back up your site.
2) Add the following code to the functions.php file of your theme:

add_action('init', function () {<br />    if (!is_admin()) {<br />        return;<br />    }<br /><br />    $option_name = 'icl_sitepress_settings';<br />    $settings = get_option($option_name);<br />    if (isset($settings['translation-management']['custom_fields_attributes_whitelist'])) {<br />        $settings['translation-management']['custom_fields_attributes_whitelist'] = null;<br />        update_option($option_name, $settings);<br />        error_log("Successfully nullified custom_fields_attributes_whitelist.");<br />    } else {<br />        error_log("custom_fields_attributes_whitelist not found in settings.");<br />    }<br />});

3) After adding the code, visit the backend of your site to ensure the code executes.

If this solution does not resolve your issue or seems irrelevant due to updates or specific circumstances, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 15 replies, has 0 voices.

Last updated by Marcel 1 month, 2 weeks ago.

Assisted by: Marcel.

Author Posts
July 1, 2025 at 6:54 am #17186678

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

As mentioned, please run it once on your server. You can delete it afterward — no re-translation is needed.

Best regards,
Marcel