Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 17 replies, has 3 voices.

Last updated by Marsel Nikolli 1 year, 11 months ago.

Assisted by: Marsel Nikolli.

Author Posts
May 31, 2024 at 1:10 pm #15692418

mircoM-5

Background of the issue:
I was trying to access a product category page in different languages on my website. The page works fine in Italian, Chinese, and Russian, but shows a 404 error in English. The issue can be seen at hidden link

Symptoms:
When switching to English on the product category page, it results in a 404 error, despite the category existing and being accessible in other languages.

Questions:
Why does the product category page result in a 404 error only in English while it works in other languages?
How can I resolve the 404 error for the English version of the product category page?

May 31, 2024 at 6:23 pm #15693734

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Please be sure to make a full backup of your site and database.

Then, go to WPML -> Support -> Troubleshooting.

Look for 'Clean up' and click the following:
- Synchronize posts taxonomies
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Synchronize local job IDs
- Fix Terms count
- Fix post assignment for translations

Let us know your results, please.

June 3, 2024 at 8:04 am #15696666

mircoM-5

The problem persist.
I did everything you suggested me

June 3, 2024 at 3:59 pm #15698627

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

1) According to your debug.info, the WP memory limit needs to be increased, WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the line: /* That's all, stop editing! Happy publishing. */

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

2) Also from the debug info the REST API seems to be disabled. The REST API is a crucial module that enables two applications to exchange data using a specific set of constraints. In particular, the WordPress REST API enables you to connect your WordPress website with external applications (like our services). Please check our documentation related for more information: https://wpml.org/documentation/support/rest-api-dependencies/

Please proceed by increasing the memory limit and enabling the REST API functionalities and check if the issue persists.

Looking forward to your reply,
Marsel

June 4, 2024 at 2:06 pm #15702391

mircoM-5

The problem remains.
I upgraded the wp memory limit but REST API was already enabled.

This seemed to me more like standard checks to do, but it didn't solve anything.
Let me know

June 4, 2024 at 2:15 pm #15702415

Marsel Nikolli

Hi,

Thank you for the update.

I would need temporary access to your site's WP-admin to investigate this issue and understand it better. Please create an administrator user using any email address you prefer.

Please fully back up your site (files and database) and confirm it in your next reply.

Your next reply is set to private so you can provide the username and password details.

Thanks,
Marsel

June 5, 2024 at 7:38 am #15705368

Marsel Nikolli

Hi,

Thank you for the access, I was able to check and I noticed that if you visit:
hidden link, the category page opens correctly.

Can you please tell me if this was working before or if this was giving you the 404 error page?

June 5, 2024 at 10:03 am #15706119

mircoM-5

You only see the page correctly when you are logged in?
I see the error it even if i'm logged.

June 5, 2024 at 10:40 am #15706220

Marsel Nikolli

Hi,

Yes, when I am logged in the issue doesn't happen (I tried with incognito mode on Chrome and I see that it occurs when logged out).

I've noticed that the WordPress Memory Limit is set to 40M (when checking on the Wp-Admin ->WPML -> Support page), please check the attached image.

If you followed the instructions I shared, please clear the website's cache (server-side included) and check if the issue persists.

Let me know how it goes,
Marsel

Screenshot 2024-06-05 123336.png
June 6, 2024 at 8:34 am #15709872

mircoM-5

Ok now WP Memory limit is solved, but I always still see the translation problem.
I also see the problem even if I'm logged in.
I need to solve this...

June 6, 2024 at 12:49 pm #15711066

mircoM-5

I now see the page only when logged in..

June 6, 2024 at 2:22 pm #15711811

Marsel Nikolli

Hi,

Thank you for the update, I've checked a bit further on the plugins page and I noticed that there are a few plugins that require an update. I suggest proceeding with the necessary update on your website.

Also, there is a notification "WooCommerce database update required", and another one saying that the WP-Optimize plugin may conflict with the LiteSpeed Cache plugin. Please proceed with the update and the necessary check/removal of the plugin that better fits your need for the cache part.

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

Let me know how it goes,
Marsel

June 6, 2024 at 2:49 pm #15712142

mircoM-5

I've done everything you suggested but still now working as expected

June 6, 2024 at 3:49 pm #15712514

Marsel Nikolli

Thank you for proceeding with the updates.

Would it be possible to check if the issue happens in a minimal setup, meaning:

- switch to a default theme
- keep active only WPML Plugins, WCML plugins, and must-have plugins
- disable all other plugins

After, check if the issue is still happening.

This would help check if there is any possible plugin conflict going on.

Note: Please make sure you have a full backup (files & database) before trying anything on your website.

June 7, 2024 at 8:27 am #15714141

mircoM-5

Ok I noticed that deactivating Yoast SEO solve the issue...
but I need it.. is it a conflict with WPML?

The topic ‘[Closed] Product categories pages not exist anymore’ is closed to new replies.