This thread is resolved. Here is a description of the problem and solution.
Problem:
After resetting WPML on a development site, you received a message indicating that the 'product_type' field was set incorrectly due to the translation of the 'product_type' taxonomy.
Solution:
To resolve this issue, follow these steps:
1. Deactivate the WooCommerce Multilingual plugin. 2. Delete the plugin. 3. Download and manually install version 5.4.5 of WooCommerce Multilingual. 4. Navigate to WooCommerce → WooCommerce Multilingual → Settings tab and click the Troubleshooting link at the bottom-right corner. 5. Click the Start button for 'Fix product_type taxonomy terms'. 6. Refresh the page. 7. Upgrade to version 5.5.1 of the WooCommerce Multilingual plugin.
The “Fix product_type taxonomy terms” button will be added back in the next version of WooCommerce Multilingual (5.5.2)
Please check if the issue is resolved after following these steps. If the problem persists or if this solution becomes 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 necessary, please open a new support ticket at WPML support forum for further assistance.
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 did a reset to WPML according to the documentation for a site under development.
Symptoms:
I received a message stating: 'We detected that the product_type field was set incorrectly for some product translations. This happened because the product_type taxonomy was translated.'
Questions:
How can I fix the product_type field issue after resetting WPML?
Why didn't the troubleshooting steps in the documentation resolve the issue?
Welcome to the WPML support forum. I will do my best to assist you in resolving the issue.
Please go to WPML >> Settings >> Taxonomies Translation and ensure that the "product_type" taxonomy is set to "Not translatable".
If so, this looks like an exception or false alarm. Please try the following troubleshooting steps after a full site backup {mandatory} and make sure the issue exists or not.
1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
2) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
3) Open a Product for editing in the original language
4) Update a post after a minor change in the content to refresh the translation settings
5) Update the translation
6) Clear all types of caches (including the server-side caches)
3) Visit WPML >> Settings >> Custom Taxonomy Translation
4) Save the changes
5) Visit WPML >> Support >> Troubleshooting
6) Click on *Remove all messages and notifications* button
Thank you for the updates. Please fill in the private details fields after a full site backup (mandatory). I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.
Thank you for the updates and the login information. The settings appear to be correct, and this seems to be an exception.
Therefore, just to make sure, do you have any server-side caching enabled? If so, please clear it and check if the issue persists.
If the problem remains, please allow me to create a copy of your site using the Duplicator plugin. This will help us debug the issue safely on a local server without affecting your live site.
I've just confirmed that there's no server-side cache in place, but I went ahead and cleared the WordPress cache just in case — unfortunately, it didn't resolve the issue.
I've also installed Duplicator for you, so you're all set to proceed.
Thank you for the permission. I have created a copy of the site, and we will now proceed with debugging it locally. We will update you with our findings as soon as possible. Please wait.
I am getting the expected results both in my local copy and on your site after following the steps below. The "Fix product_type taxonomy terms" button will be reintroduced in the next version of WooCommerce Multilingual (5.5.2), which is currently in the final QA stage.
Steps followed:
- Deactivated the WooCommerce Multilingual plugin
- Deleted the plugin
- Downloaded and manually installed version 5.4.5
- Navigated to WooCommerce → WooCommerce Multilingual → Settings tab and clicked the Troubleshooting link (bottom-right corner)
- Clicked the Start button for Fix product_type taxonomy terms
- Refreshed the page
- Upgraded to version 5.5.1 of the WooCommerce Multilingual plugin