Skip Navigation

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

Problem:
Avada containers lose their translations when using WordPress editor to translate the Library (Global) Elements.

Solution:
This is a known issue, please see https://wpml.org/errata/avada-library-element-type-not-copied-during-manual-translation/ for possible solutions.

Relevant Documentation:

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 9 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 7 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
November 3, 2023 at 12:36 pm #14725739

Wendy Vanhonacker

My website is by default in english and using Avada theme.
I create a new element container in Avada Livrary in english, set it as global.
I then want to go ahead and create the german version (using manual translation from wordpress top language switcher, not using the classic or advanced translation editor). I create the content, hit Publish.
It reloads the page but the page is empty. it deleted what I just did. See screenshot .

I would like to use manual translation instead of advanced or classic editor.
Is this a bug?

I have the latest version of all, wordpress, theme anbd plugins.
Thanks for your support,
Wendy

November 3, 2023 at 1:06 pm #14725843

Wendy Vanhonacker

Just for your information the debug log says this whenever this happens:

[03-Nov-2023 13:04:29 UTC] PHP Warning: Undefined array key 0 in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/fusion-builder/inc/templates/blank-page.php on line 31
[03-Nov-2023 13:04:29 UTC] PHP Warning: Attempt to read property "slug" on null in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/fusion-builder/inc/templates/blank-page.php on line 31

November 6, 2023 at 7:58 am #14735185

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Wendy,

Thank you for contacting the support.

Before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Deactivate all plugins except WPML and Avada builder (fusion builder) and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with parent theme, as well as, with a default theme of WordPress (i.e. 2021 or 2023).
- Also check the browser's console for any JavaScript errors. If you find any, copy that in your next reply. See https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ for details on how to find these errors.

Please let me know and I'll try my best to further help you on the matter.

Regards.

November 6, 2023 at 8:30 am #14735397

Wendy Vanhonacker

Yes I just did this:
Disabled all plugins except Fusion Builder Avada Core, keeping the Avada Theme, and WPML plugins (media, CMS and String Translation). And the bug still happens:
Here are the logs:
06-Nov-2023 08:24:07 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:07 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:27 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/shortcode/class-wpml-pb-register-shortcodes.php on line 151
[06-Nov-2023 08:24:34 UTC] PHP Warning: Undefined array key 0 in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/fusion-builder/inc/templates/blank-page.php on line 31
[06-Nov-2023 08:24:34 UTC] PHP Warning: Attempt to read property "slug" on null in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/fusion-builder/inc/templates/blank-page.php on line 31
[06-Nov-2023 08:24:51 UTC] PHP Warning: Undefined array key 0 in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/fusion-builder/inc/templates/blank-page.php on line 31
[06-Nov-2023 08:24:51 UTC] PHP Warning: Attempt to read property "slug" on null in /home/heylifeo/www/heylifeo.myhostpoint.ch/fitntasty2023/wp-content/plugins/fusion-builder/inc/templates/blank-page.php on line 31

I cannot test without the Avada theme as this is the theme that has this Library functionality to create Elements and this is where it bugs.

They way I proceed is:
Go to Avada/Library
Create a new element Container in default language
Click on + for the new language
Edit and Save the new language version
When it reloads, the page is blank, no title saved, no content saved. As if new.

Its clearly related to Avada, but something does not work with WPML.
Thanks for your help,
wendy

November 6, 2023 at 8:33 am #14735427

Wendy Vanhonacker

And with this logs, it mentions 'slug', but for a created element in Avada, there is not slug.. maybe this is the issue?
wendy

November 6, 2023 at 8:52 am #14735673

Wendy Vanhonacker

And I can give you access to my website as it is a test environement. How do I share this?

November 6, 2023 at 9:10 am #14735827

Wendy Vanhonacker

FYI, using the advanced editor, it works, but I would like to still be able to use the manualy wordpress editor.
thanks for helping,
wendy

November 6, 2023 at 12:03 pm #14737357

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Yes please provide temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

November 6, 2023 at 12:55 pm #14737907

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates. I'll check this as soon as possible and 'll update you accordingly (probably by tomorrow at earliest).

November 7, 2023 at 8:29 am #14744251

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

This issue is already known and has been reported. Our team offered a temporary fix at https://wpml.org/errata/avada-library-element-type-not-copied-during-manual-translation/.

Generally the issue isn't with the default language, but only the first one works fine regardless of the language you used to create it. While, adding other translations manually for that have the problem.

I tried the Option 1 and it is working fine, see this screen recording: hidden link

I couldn't try Option 2 as I didn't have permission to save the theme's functions.php file. So you can try that yourself if you think this alternate option is better than the first 1.

For Option 1 to work correctly, follow these exact steps:

- Create a new global container element in default language and save.
- Select "WordPress Editor" from Language sidebar metabox and opt for "This only".
- Click "Duplicate" checkbox for the translation you want to add and click "Duplicate" button.
- Then click the pencil icon for the one you just duplicated (i.e. having "duplicate" written after the language name).
- Then when the editor is loaded, click "Translate Independently" button and wait for the editor to reload.
- Now feel free to make your changes according to this language and save.

I've tried this a few times and it seems to work perfectly fine.

November 7, 2023 at 8:46 am #14744617

Wendy Vanhonacker

Thanks! indeed the option1 works.
I tried option 2 with editing functions php file but it did not work.
Anyway all good this way I guess, (but would be great to integrate the fix in future releases).
Thanks for the quick and professional response.