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.


This topic contains 5 replies, has 2 voices.

Last updated by kennethD-8 10 months ago.

Assigned support staff: Marcos Vinicios Barreto.

Author Posts
August 7, 2019 at 5:04 pm #4356999


I just brought and testing it with my local setup before using it on live. I got fatal error while using it with Elementor plugin.

The issue is in while editing the pages with for translation. After clicking the + icon I get fatal error as below:

Warning: json_decode() expects parameter 1 to be string, array given in /shared/httpd/wp-redlighthaiti/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-data-settings.php on line 94

Fatal error: Uncaught TypeError: Argument 1 passed to WPML_Elementor_Register_Strings::register_strings_for_modules() must be of the type array, null given, called in /shared/httpd/wp-redlighthaiti/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/compatibility/class-wpml-page-builders-register-strings.php on line 58 and defined in /shared/httpd/wp-redlighthaiti/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-register-strings.php:12 Stack trace: #0 /shared/httpd/wp-redlighthaiti/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/compatibility/class-wpml-page-builders-register-strings.php(58): WPML_Elementor_Register_Strings->register_strings_for_modules(NULL, Array) #1 /shared/httpd/wp-redlighthaiti/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/class-page-builder-integration.php(61): WPML_Page_Builders_Register_Strings->register_strings(Object(WP_P in /shared/httpd/wp-redlighthaiti/htdocs/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-register-strings.php on line 12

August 7, 2019 at 6:25 pm #4357345

Marcos Vinicios Barreto

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

Timezone: America/Bahia (GMT-03:00)


Thank you for contacting WPML Support. Before a more detailed look, please, try this basic troubleshooting:

1 - Make sure your server environment meets our minimum requirements as described at:, you can see your current values at your WordPress Dashboard > WPML > Support > Info menu.

2 - Disable all the plugins except the WPML related ones and Elementor itself from your WordPress Dashboard > Plugins and see if the issue is gone, if so, activate one plugin at a time untill the culprit one is found.

3 - If the issue persists, temporary change to a default WordPress theme such as the 'TwentySeventeen' theme from your WordPress Dashboard > Appearance > Themes menu.

IMPORTANT: Please, note, a backup is required for security reasons and to avoid any data loss, you can use the plugin for these backup needs.

Please, let me know if the steps above help to fix your issue. Have a nice day.

August 8, 2019 at 8:16 am #4360833


I checked all the requirements. Following are my local setup versions:
Version 7.2.19
Memory limit 512M
Memory usage 19.66 MB
Max execution time 600
Max input vars 8000
Utf8mb4 charset Yes
Multibyte String extension Loaded
SimpleXML extension Loaded
WP version 5.2.2

Also I deactivated all the plugins and activated default TwentyNinteen theme and the issue was with the Elementor pages which have advanced blocks from Elementor. The error does not occur while translating simple pages like default "Sample Page".

Does WPML works by default with Elementor or do i need some extra configuration for the plugin?

August 8, 2019 at 8:51 am #4361163


The issue is regenerated while using Advanced WPML editor.

August 8, 2019 at 12:04 pm #4362571

Marcos Vinicios Barreto

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

Timezone: America/Bahia (GMT-03:00)


Thank you for the updates. While WPML is fully compatible with Elementor, in this case we need to test it in a clean sandbox environment in order to confirm a possible new compatibility issue specific blocks/modules. These are the procedures:

  • Install the theme/plugin in a clean installation and reproduce the problem in this new installation. So we can isolate it and do some testing without the interference of server settings or other plugins
  • After this, I will check the problem in this new installation and look for a quick solution
    If I can not find a solution, I will forward the problem to our compatibility team.
  • The compatibility team will do some more testing and will contact the product author to fix the issue

I created a test website with a clean WordPress install. You can access it through this link:
hidden link - Through this link you will be automatically logged in.

Please upload the (theme/plugin) to this test install, setup it the same way as in your website (using the same options) and create some dummy content to reproduce the issue. Please note that we only need the (theme/plugin) and the related functionality, you don't need to setup a entire website or clone your existing site. The fewer plugins the better.

After that, please send us clear steps on how to see/reproduce the issue on this test install. We will run some tests.

Please, let me know when you are ready, thank you for your collaboration, have a nice day.

August 9, 2019 at 9:19 am #4368933


My issue is resolved now. Thank you! There is no issue on the live site.

The issue could be such that the fatal error occured for already created pages but not for newly created pages.

Thanks again.