Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing a 404 error when switching between language versions using category-based URLs on your multilingual WordPress site with WPML, and you have already linked all categories correctly, flushed permalinks, and cleared cache, the issue might still persist.
Solution:
We recommend the following steps:
1. Contact your hosting provider to ensure the mod_rewrite Apache extension is active.
2. Create a full site backup.
3. Update any outdated plugins or themes.
4. Flush any existing cache memory.
5. Deactivate all plugins, including WPML ones, and activate a default WordPress theme.
6. Activate WordPress debug mode as described in this guide: Debug WordPress
7. Reactivate the WPML plugins and re-save the permalinks.
8. If the issue is resolved, reactivate your theme and plugins one by one to identify the culprit.
9. Increase the WP memory limit to at least 128Mb as detailed here: WPML Minimum Requirements
Add the following code to your wp-config.php:

/* Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');

Place it above the line /* That's all, stop editing! Happy blogging. */
You can verify the WordPress memory limit in WPML -> Support.

If these steps do not resolve your issue, or if the solution seems outdated or not applicable to your case, 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 needed, please do not hesitate to 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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Carlos Rojas 2 months, 4 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
July 1, 2025 at 5:00 am #17186406

mcwI

Background of the issue:
I am currently experiencing a persistent issue with our multilingual WordPress site using WPML. When I switch between English and Bengali versions of a post or page that uses category-based URLs, only one language works at a time. I have linked all English and Bengali categories correctly via WPML → Taxonomy Translation, verified that translated posts are assigned only their corresponding language categories, flushed permalinks, cleared all LiteSpeed Cache, and confirmed translated slugs are accurate and matched.

Symptoms:
When the English version of the post is assigned its category (e.g. /en/games/live-table-games/), it works—but the Bengali version returns a 404 error. When I switch the post to the Bengali category (e.g. /bn/গেমস/লাইভ-টেবিল-গেমস/), the Bengali version works—but the English version breaks.

Questions:
Is there a way to resolve the 404 error when switching between language versions using category-based URLs?

July 1, 2025 at 6:06 am #17186513

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

1.- I kindly ask you to contact your hosting providers and verify that the mod_rewrite Apache extension is active (if applicable). Then follow these steps:
- Create a full site backup
- Update any outdated plugins or themes
- Flush any cache memory that might exist
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme
- Activate the WordPress debug mode as described in this guide: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
- Activate the WPML plugins
- Re-save the permalinks
- If the issue disappeared, start by activating the theme and then the plugins, one by one, until the issue appears again and you find the culprit

Can you tell me the results of the steps described above?

2.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`

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

- Add it above the line /* That's all, stop editing! Happy blogging. */

You can double-check the WordPress memory limit in WPML -> Support

Regards,
Carlos