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 Dennis 10 months, 3 weeks ago.

Assigned support staff: Dennis.

Author Posts
July 4, 2019 at 8:57 pm #4146339


I am trying to: Translate a Woocommerce product with the "Translate Woocommerce-products" function.

Every time I press the + sign in the translation window, I get a Fatal error, as shown below.

Note: When I disable the Elementor plugin, everything works fine.
The products I try to translate has been imported from another WordPress/Woocommerce install. I exported the products with the native Woocommerce export function for products, and imported them from the csv file with the native Woocommerce importer for products.

When I make a new product directly in the site, everything works as expected. No errors then.

Link to a page where the issue can be seen: Only on my development server

I expected to see:Well, I wish I coould see the translation interface for the product, instead I get a nasty fatal error.

Instead, I got:

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 /srv/users/nilu/apps/defineme2019/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/compatibility/class-wpml-page-builders-register-strings.php on line 57 and defined in /srv/users/nilu/apps/defineme2019/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-register-strings.php:12 Stack trace: #0 /srv/users/nilu/apps/defineme2019/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/compatibility/class-wpml-page-builders-register-strings.php(57): WPML_Elementor_Register_Strings->register_strings_for_modules(NULL, Array) #1 /srv/users/nilu/apps/defineme2019/public/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 in /srv/users/nilu/apps/defineme2019/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-register-strings.php on line 12

From my experience, it seems like the system get a null, where it should be an array.
As it seems to have something to do with string translations, I have tried to translate all missing Elementor strings, but to no avail. The error still remains.

July 5, 2019 at 6:07 am #4147853



Welcome to WPML Support forum.

I would like to request temporary access (/wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. Your next reply will be set to private.

Maybe I'll need to replicate your site locally to continue debugging and escalate if necessary. For this I’ll need to temporarily install a plugin called “Duplicator” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Please confirm if this okay with you.

Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to BACKUP the site before providing us access.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:

Kind regards,

July 5, 2019 at 7:48 am #4148651


Hi Dennis,
Thanks for returning to me and trying to help.

The site is a on a local development server, so its a bit difficult to give you access to it.

Can I instead send you a Duplicator archive of the site? I have prepared one, and checked that it´s working.
I left out all images, so the Duplicator archive file is only 59 MB.

In the archived site, Elementor is disabled. You will need to enable it to identify the problem.

If this is ok with you, please give me instructions about how to upload the archive and the installer file.

Best regards,

July 5, 2019 at 8:20 am #4149003


Hi Nicklas,

Thank you for your reply.

Yes, if you can provide me a duplicator package of your site, it would be great.

I will enable the Duplicator package information box and set your next reply as private so you can leave the download links for your snapshot files (2 files) - installer and archive files .

Kind regards,

July 5, 2019 at 9:46 am #4149835



Thank you for your reply.

I have successfully deployed the package on my local test environment. I will continue debugging your site locally and will give you feedback when I got some results.

Kind regards,

July 8, 2019 at 6:17 am #4159271



Thank you for waiting. I did the following steps to solve the issue.

-edit the product having issue. edit it on the original language.
-click 'edit with Elementor'.
-make a small change of some text. (e.g. add a period on the product description text.). Save.
-undo the small change previously made. Save.
-exit to dashboard.
-try to translate the product to secondary language.

Does it help? Please let me know.

Kind regards,