[Resolved] Products shown in categories do not appear as they should
This thread is resolved. Here is a description of the problem and solution.
Problema:
El cliente estaba experimentando problemas con la interfaz en árabe de su sitio web. Las traducciones al árabe se habían eliminado repentinamente y al hacer clic en cualquier categoría de producto en la interfaz en árabe, el sitio redirigía a una página de producto individual o a una página en blanco en lugar de a la categoría correspondiente.
Solución:
Identificamos dos problemas en el sitio del cliente:
1. Los slugs de las categorías de productos tenían un espacio en lugar de un guion. Corregimos esto utilizando el mismo slug en inglés para ambos idiomas.
2. El interruptor de idioma en la parte superior no fue creado por WPML y estaba redirigiendo a una URL incorrecta. Agregamos un interruptor de idioma en el pie de página para demostrar que funciona correctamente.
Si estás experimentando este problema, te recomendamos que sigas los pasos que proporcionamos. Sin embargo, ten en cuenta que la solución podría no ser relevante si está desactualizada o si no se aplica a tu caso. Si es así, te sugerimos abrir un nuevo ticket de soporte. También recomendamos encarecidamente revisar los problemas conocidos en https://wpml.org/known-issues/, verificar la versión de la solución permanente y confirmar que has instalado las últimas versiones de temas y plugins.
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.
There is a video link explaining the situation I experienced. I've been experiencing this since last night. suddenly all Arabic translations were deleted. can you help please? The site gets traffic and the majority of our users use the Arabic interface.
hidden link
Is there any documentation that you are following?
While waiting for one of my colleagues to help you, could you please provide some additional information to help us better understand the issue?
From the screencast you shared, it's a bit difficult to grasp the problem fully. Can you confirm if the Arabic version of the site is missing when you navigate to your pages and products? Additionally, do you see any count for the content?
Could you also let us know the results when WPML is temporarily deactivated? Does the content display correctly then?
Your input will help us troubleshoot the issue more effectively.
Hi there,
Thanks for your help,
This problem only exists in the Arabic interface. The English interface works smoothly. I can summarize the situation as follows; When I click on any brand in the Arabic interface, the page that opens displays the brand's products without any problems, I do the same thing when I press the category icon on the shop page, when you click on any of the opened categories, the website takes you to the single product page, not to that category, and shows something complicated.
Thank you
Hello,
My name is Carlos and I will continue working on this ticket
I watched the video and I can see the problem in the product category. Could you tell me if the categories are using an Elementor template to display the products?
Hi Carlos,
I purchased this theme and ı m not good with it. I m not sure but ı think yes, 3 days ago Whatever happened to the WPML plugin suddenly most of my translations were deleted and many widgets disappeared. I created some widgets, but I could not solve this problem. My site had a lot of sales, but my business stopped due to this situation. so I need urgent help. I'm leaving the theme files here, maybe it might help. hidden link
Thank you
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. The information you will enter is private which means only you and I can see and have access to it.
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 back up the site before providing us access. If we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
I think I found the source of the problem, but I don't know what the solution is. The problem is; There is an error in the linking of categories in the Arabic interface. When you click on any category in the Arabic interface, it does not direct you to the category. It either sends to a blank page or a single product page. If we solve this situation, I think the problem will be solved.
Thank you. This time I was able to log into the site.
There were two problems on the site:
- The slugs of the product categories had a space, instead of a hyphen. I fixed this by using the same slug in English in both languages
- The language switcher at the top is not created by WPML and is redirecting to the incorrect URL. I added a language switcher in the footer so you can see that it works correctly.