[Resolved] Category shows double products, in different languages
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where product categories were showing duplicate products in different languages, alternating between German (DE) and English (EN), despite not being new products and having worked correctly for many years.
Solution: We identified that the issue might be due to a conflict with cache settings, specifically involving the Redis cache and the Breeze plugin with Varnish cache configured. We recommended the following steps: 1. Disable the Redis cache or configure it properly. 2. Disable the Varnish cache or configure it properly. As a workaround, we suggested changing the Product Category slug for the German version from
ktm-250-exc
to
ktm-250-exc-de
and then clearing the caches to see if the issue persists.
If the solution provided here is not relevant to your case, because it might be outdated or not applicable, we highly 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 issue still exists, please open a new support ticket at our support forum.
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.
We have created staging sites and clones and the problem does not transfer over to the clones.
The problem is only on the live website. We can do work on the live website as long as we agree a timeframe with the client
Thank you for the feedback. 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.
Also, please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the bug without affecting your live site.
When cloning the website the duplication problem is not being duplicated so we are going to create a fresh clone of the website tomorrow and will make the clone the new live website.
We are going to keep the version with the problem live so we can work together in a solution for this. I will create a dev account for you guys to perform any test you need.
I believe this is the safest option we have at the moment and the best option without affecting the client any further.
Thank you for the details and login information. I made a copy of the site using Duplicator for further debugging. A couple of doubts for a tracking this tricky bug.
1) Please let us know the exact steps you have done for the following action.
When I change the domain of the clone to the pro-carbon domain the problem appears.
2) Have you marked the staging sites as copy of live like recommended in the following article
1) The steps that I took to change the domain were.
After creating the clone of the website I deleted from the old version the domain records and on the clone version I added the domain records on it. The domain records are as follows:
hidden link - Primary
pro-carbonracing.co.uk - Alias hidden link - Alias
pro-carbonracing.com - Alias
The old website now without those 4 records has no problem and the clone website (now the new live website) has problems. Before adding the records the problem was not showing.
2) yes we have
Have you been able to replicate the problem in your staging local site?
Thank you for the details. I am not able to reproduce the issue exactly in my local copy. So the bug happened in the new clone just after you have changed the DNS records from the hosting control panel, am I correct?
Which hosting service & plan you are currently using? Please share more details on this.
Sorry if I explained this incorrectly.
The problem only happened when I changed the domain information from the original site to the cloned version. Both websites are in the same private server so no need to change any DNS information just changing the domain name to go from one application to another.
I added a screenshot of the domain records I am talking about
We have the website hosted with Cloudways on 4GB of RAM. We have no details on the processor.
The ticket is forwarded to our second-tier team for further checking. The result is the same when we change the translation preference of Product Categories to *Translatable only show translated items* from *Translatable use translation if available or fallback to default language*, from WPML>>Settings>>Taxonomies Translation.
One request. Please upgrade to the latest version of plugins including WooCommerce and WooCommerce Multilingual after a full site backup{mandatory} and make sure the issue exists or not.
Thank you for the updates. Please try the following steps after a full site backup{mandatory} and check whether there is any difference in the result.
1) Visit hidden link
2) Clear all types of transients
3) Click on Term counts>>Recount terms button
4) Switch to the secondary languages via the dashboard language switcher(of top header)
5) Click on Term counts>>Recount terms button again for each language
6) Then try the WPML Troubleshooting steps we have suggested in the following threads
I have done the work you requested but the problem still exists.
You do have login details so if you think it's worth you doing any work let me know in advance so I can backup the website and setup maintenance mode. Just please let me know.
Can you think about any other thing we can do to fix this?