This thread is resolved. Here is a description of the problem and solution.
Problem: You are using Elementor with the Astra Pro theme and have a WooCommerce shortcode on your homepage to display featured products. This shortcode works correctly in the main language but fails in the translated version. Disabling the 'WooCommerce Multilingual' plugin allows the shortcode to function, but then the product shop page does not display translated products. Solution: We found that the 'icl_sitepress_settings' key in your site's wp-options table was corrupted. Here are the steps to resolve the issue: 1. Open your database manager, such as PhpMyAdmin. 2. Navigate to the wp_options table. 3. Search for 'icl_sitepress_settings'. 4. Delete this key. 5. Go to your site's dashboard. 6. Click 'Configure WPML'. 7. Complete the setup. 8. Check the translated homepage. Please ensure to backup your database before performing these steps.
If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
Background of the issue:
I'm using Elementor on my website with the Astra Pro theme. On the homepage, I've included a WooCommerce shortcode to display featured products. It works perfectly on the main language home page. However, when I switch to another language (in my case, the second language is English), the shortcode doesn't function properly. If I disable the 'WooCommerce Multilingual' plugin, the shortcode works, but the product shop page doesn't show translated products. Link to a page where the issue can be seen: hidden link
Symptoms:
The shortcode for displaying featured products does not function properly on the translated homepage. Disabling the 'WooCommerce Multilingual' plugin makes the shortcode work, but the product shop page doesn't show translated products.
Questions:
Why does the WooCommerce shortcode not function properly on the translated homepage?
How can I get the shortcode to work without disabling the 'WooCommerce Multilingual' plugin?
Why doesn't the product shop page show translated products when the 'WooCommerce Multilingual' plugin is disabled?
Thanks for contacting WPML forums support. I'll be glad to help you today.
Please edit the translated home page using Elementor and check the shortcode while WooCommerce Multilingual is enabled.
If it's copied correctly, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Thank you for support. Please ask me questions and I will give you all information about problem. I can't give you access to site without owner permission, Im sorry.
After that, I compared the two sites and found that the "icl_sitepress_settings" key in the wp-options table on your site was corrupted, so I deleted it, which fixed the issue.
Kindly check the following steps:
1- Open your database manager, for example, PhpMyAdmin
2- Open the wp_options table
3- Search for "icl_sitepress_settings"
4- Delete this key
5- Go to your site's dashboard
6- Click Configure WPML
7- Finish the setup
8- Check the translated home page
❌ Please backup your database before performing the above steps ❌
I did what you recommended for me but it not works. Now I decide to delete wpml fully and reistal it again. Later I will inform you about results. thank you
Sure, please take your time and let me know if you need further help.
Best regards,
Osama
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.