Skip Navigation

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

Problem:
After translating a website into multiple languages using WPML, some languages displayed a 404 error page. The issue persisted even after modifying permalinks, with some languages starting to work and others not.
Solution:
1. We recommended downgrading the PHP version to v8.1 and increasing the WordPress memory limit to at least 256MB by adding the following code to the wp-config.php file:

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

This code should be placed above the line /* That's all, stop editing! Happy blogging. */.
2. After these adjustments, we performed WPML troubleshooting steps and re-saved the permalink structure.
3. We changed the slug from 'escursioni' to 'tour' and flushed the cache memory several times.

If this solution does not resolve your issue or seems 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 the problem persists, please open a new support ticket at WPML 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.

Tagged: 

This topic contains 4 replies, has 0 voices.

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

Assisted by: Carlos Rojas.

Author Posts
February 12, 2025 at 3:47 pm #16697671

mohabM-4

Background of the issue:
I translated my website into 4 languages using WPML. One language is displaying correctly, but the others are showing a 404 error page. I modified the permalinks, and now some languages that were working are also showing a 404 error, while others that weren’t working have started to work.

Symptoms:
404 error page appears for some languages after translating the website.

Questions:
Why are some languages showing a 404 error after translation?
How can I fix the 404 error for the translated pages?

February 13, 2025 at 10:28 am #16701127

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

Please share the debug information of the site as described in this guide: https://wpml.org/faq/provide-debug-information-faster-support/ so I can get more information and understand the situation better.

Looking forward to your message.
Regards,
Carlos

February 13, 2025 at 12:42 pm #16702099

mohabM-4

[REMOVED]

February 13, 2025 at 1:28 pm #16702584

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thank you for sharing the debug information.

1.- Contact your hosting providers and ask them to downgrade the PHP version to v8.1

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

Once the steps above are finished, double-check if the issue disappeared.

February 14, 2025 at 12:03 am #16704688

mohabM-4

The host has been increased and what you requested in the host has been added, but the problem is still the same, a 404 page appears.

b905cda1-4513-4a23-bcb4-54c663d40792.jpeg
February 14, 2025 at 10:26 am #16705772

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

I didn't ask to increase the host memory limit, but the WordPress memory limit by following the steps I described. The PHP memory limit is different than the WordPress memory limit.

Also, did the PHP version was downgraded?

If the issue persists after increasing the WordPress memory limit, I kindly ask you to share the access credentials to the site in the next message that I have set private.

Please confirm you created a full site backup before sharing the credentials.

February 17, 2025 at 9:16 am #16712328

Carlos Rojas
WPML Supporter since 03/2017

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

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

Thank you very much for sharing the access credentials.

I ran some WPML troubleshooting steps and re-saved the permalink structure. Can you confirm that the issue is solved?

February 17, 2025 at 3:35 pm #16715363

mohabM-4

The problem has not been solved and the 404 command is present in the flight not appearing in the remaining languages, Italian, Russian and Turkish. When clicking on the flight, the problem 404 NOT FOUND PAGE appears. Please review the problem and its solution, as it is important.

hidden link

صورة واتساب بتاريخ 1446-08-18 في 12.46.02_d5c94ab7.jpg
February 18, 2025 at 11:08 am #16718313

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,

Please check it now: hidden link

The slug had to be changed from 'escursioni' to 'tour' and the cache memory had to be flushed several times.