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

Last updated by Laura 1 week, 4 days ago.

Assigned support staff: Laura.

Author Posts
September 3, 2019 at 2:16 pm #4505205

Pedro Martins

I am trying to:
Use WPML for the first time

Link to a page where the issue can be seen:
It can no longer be seen, since I had to deactivate the plugin, so the site could work properly.

I expected to see:I expected to use WPML while the site is functioning

Instead, I got: the site wasn't loading, I had to deactivate the 4 plugins.

September 3, 2019 at 2:53 pm #4505583

Pedro Martins

[03-Sep-2019 14:37:44 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:76
Stack trace:
#0 /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/compatibility/visual_composer/class-wpml-compatibility-plugin-visual-composer-grid-hooks.php(61): WPML_Translation_Element->get_translation(false)
#1 [internal function]: WPML_Compatibility_Plugin_Visual_Composer_Grid_Hooks->replace_grid_id(Array)
#2 /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/compatibility/visual_composer/class-wpml-compatibility-plugin-visual-composer-grid-hooks.php(46): preg_replace_callback('/(\\[vc_basic_gr...', Array, '[vc_column][vc_...')
#3 /home/u370665036/domains/3ncrypt3d.com/public_html/wp-includes/class-wp-hook.php(288): WPML_Compatibility_Plugin_Visual_Composer_Grid_Hooks->v in /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 76
[03-Sep-2019 14:38:15 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Argument $language_code must be a non empty string. in /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:76
Stack trace:
#0 /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/compatibility/visual_composer/class-wpml-compatibility-plugin-visual-composer-grid-hooks.php(61): WPML_Translation_Element->get_translation(false)
#1 [internal function]: WPML_Compatibility_Plugin_Visual_Composer_Grid_Hooks->replace_grid_id(Array)
#2 /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/compatibility/visual_composer/class-wpml-compatibility-plugin-visual-composer-grid-hooks.php(46): preg_replace_callback('/(\\[vc_basic_gr...', Array, '[vc_column][vc_...')
#3 /home/u370665036/domains/3ncrypt3d.com/public_html/wp-includes/class-wp-hook.php(288): WPML_Compatibility_Plugin_Visual_Composer_Grid_Hooks->v in /home/u370665036/domains/3ncrypt3d.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 76

September 3, 2019 at 3:18 pm #4505777

Pedro Martins

Are you there, Laura?

September 4, 2019 at 8:49 am #4509343

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

could you try to deactivate WP Bakery and see if you manage to activate WPML? Once you complete the WPML setup you can try to reactivate WP Bakery.

September 4, 2019 at 10:51 pm #4514251

Pedro Martins

Hi, Laura.
I can't do that, unless I put the site offline. We need WP bakery for it to appear properly.
Do you have other solution?

September 5, 2019 at 8:13 am #4516577

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

I can take a copy of the site and check if this will work, but in case this is the solution you'll have to do it anyway.

September 5, 2019 at 9:52 am #4518025

Pedro Martins

Ok, do you need something for me to take a copy and check this?

September 6, 2019 at 2:19 pm #4525833

Pedro Martins

Hello, Laura.
The migration is completed. What happens next?

September 7, 2019 at 7:03 am #4528687

Alejandro
Supporter

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

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

Hello,

Laura is off today so I'll continue with you until she gets back.

As a next step, please access the migrated site (it kept your live site credentials so you can access with those) and try to deactivate WP Bakery and see if you can activate WPML now.

Let me know how it goes.

September 9, 2019 at 9:02 am #4534971

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

I'm back. Please let me know the results of the testing.

September 9, 2019 at 7:05 pm #4539805

Pedro Martins

Hello,
After I deactivate wp bakery, activated WPML and started the configuration (didn't finished it though), activated WP bakery and the site lost some configurations. (see in attachment)
I guess WPML it is not compatible with incubator, after all?

September 10, 2019 at 7:38 am #4542569

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

Hi,

if the lost configurations are the missing images, that's because we delete them when moving the site to Cloudways (to avoid taking too much space).

From what I can see in the front end, apart from images everything seems fine.

Incubator wasn't tested by our compatibility team, but it doesn't mean it wouldn't work. Most themes are WPML compatible, with maybe some small adjustment needed.

You should try to translate something and see if there are specific issues - then we can check them.

September 16, 2019 at 3:12 pm #4581895

Pedro Martins

Hi, Laura. I was on vacations, sorry. I'm going to test it, then.
Thank you, I'll be get back to you.

September 16, 2019 at 3:52 pm #4582331

Laura
Supporter

Languages: English (English ) Italian (Italiano ) Portuguese (Brazil) (Português )

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

No problem, let me know how it goes.

September 16, 2019 at 5:21 pm #4582865

Pedro Martins

Laura, since I'm using a copy of the website, shall I register WPML, putting the wbsite key in the registration step? (for automatic updates)