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

Last updated by Yvette 3 months, 1 week ago.

Assigned support staff: Yvette.

Author Posts
July 2, 2019 at 12:10 pm

emelieC

Hello,

We just tried to activate WPML on one of our sites running Avada.

We believe there might be a conflict with the Fusion Builder of Avada.

We get the following error message:

Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /var/www/vhosts/quartiersmarbella.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:76 Stack trace: #0 /var/www/vhosts/quartiersmarbella.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/compatibility/fusion_builder/wpml-compatibility-plugin-fusion-global-element-hooks.php(48): WPML_Translation_Element->get_translation(false) #1 [internal function]: WPML_Compatibility_Plugin_Fusion_Global_Element_Hooks->replace_global_id(Array) #2 /var/www/vhosts/quartiersmarbella.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/compatibility/fusion_builder/wpml-compatibility-plugin-fusion-global-element-hooks.php(42): preg_replace_callback('/\\[fusion_globa...', Array, '[fusion_builder...') #3 /var/www/vhosts/quartiersmarbella.com/httpdocs/wp-includes/class-wp-hook.php(288): WPML_Compatibility_Plugin_Fusion_Global_Element_Hooks->translate_global_element_ in /var/www/vhosts/quartiersmarbella.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 76
The site is experiencing technical difficulties.

What can we do?

Kind regards,

Marcus

July 2, 2019 at 1:16 pm #4127313

Yvette
Supporter

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

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

Hello

1. FTP access
I´m not able to open FTP access for some reason, so I am hesitate to try to activate the WPML plugins to see the error first-hand since I won´t have a way to deactivate it easily.

2. Fusion Builder v. WPML
We don´t have any current reports of problems with Avada Fusion Builder and WPML.

As a diagnostic, please temporarily change you active theme to Twenty Nineteen and deactivate your non-WPML plugins.
- In this state, can you activate WPML?
- If you start activating the non-wpml plugins one-by-one, are you still able to reach your dashboard?

3. Error message
The message indicates the problem is with the global elements in your library. So, I don´t think it is with the Fusion Builder in general. It may be that you need to duplicate your global elements to all languages and therefore, have these elements as "translatable" in
WPML > Settings > Custom Post Type Translation

I wait for your feedback

July 2, 2019 at 10:44 pm #4130317

emelieC

1. try host hidden link. But dont worry. You can access wp-admin to deactivate the plugins.

2. I have made the tests you requested. Problem occurs only with Avada theme (both child and default theme) But only when Fusion Builder is active. No problems running ninteen theme.

3. I doubt it because I have not even made the basic setup for wpml, so I don't even have a tanslation language set. Maybe I am missing something.

Please have a look!

Thanks!

Marcus

July 3, 2019 at 6:23 am #4132185

Yvette
Supporter

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

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

OK.

I temporarily deactivated the Fusion Builder plugin to then complete the WPML setup.

After doing this, I reactivated the Fusion Builder plugin and I did not receive any error messages in the dashboard. What action was done in the past to receive the error that you described?

Note: in the setup process I selected Spanish as the 2nd language (you can change this) and you should now register the site with your wpml.org acct if you have not already done this.

I wait for your feedback

The topic ‘[Closed] We get a fatal error with Avada theme’ is closed to new replies.