Skip to content Skip to sidebar

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

Problem:
The client is experiencing 404 errors on translated pages in a second language, which resolve after refreshing the page multiple times.
Solution:
We investigated the issue and found that it persists even with WPML deactivated, indicating it is not directly related to WPML. The problem also occurred with only the default language active. After further testing, we identified that flushing the cache from WP Rocket could temporarily resolve the issue, but the error would return. This behavior suggests a potential known issue with WP Rocket, which can affect how pages are displayed and lead to 404 errors. For more details, please refer to the WP Rocket documentation on this issue: WP Rocket Documentation.

If this solution does not apply to your case, or if it becomes outdated, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum 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.

This topic contains 5 replies, has 2 voices.

Last updated by Bobby 4 years ago.

Assisted by: Bobby.

Author Posts
May 5, 2022 at 4:39 am

kang-xiangL

I am trying to:
I have translated all pages to second language, however when i browse the website and change to the second language, it will shows 404 error page. After i refresh the page few times, it will back to normal.

Link to a page where the issue can be seen: hidden link

I expected to see:
It should be showing the translated pages with no error

Instead, I got:
404 error page, but it back to normal after i refresh the same page few times

Screenshot 2022-05-05 at 12.32.54 PM.png
May 5, 2022 at 4:57 am #11156061

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi There,

I have tested your site a few times both from my mobile and from my computer but I cannot reproduce the 404 error.

Is there a specific page where this can be reproduced?

May 5, 2022 at 5:05 am #11156065

kang-xiangL

Hi, I have cleared the wp rocket cache, you may try it again.

For example this page: hidden link

May 5, 2022 at 6:21 am #11156275

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you! I was able to reproduce this.

Please go to pages and verify that the team page is not located in the "trash" area

Also, go to WPML => Support , and click on "Troubleshooting" while in the Troubleshooting page please perform the actions.

Let me know your results, please.

May 5, 2022 at 7:15 am #11156813

kang-xiangL

The team page is not in trash and not only this page will be showing the error. Some of the pages will show this error when i change the language to second language.

What do i need to do in "Troubleshooting" page?

May 5, 2022 at 6:00 pm #11161925

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me!

I did run the troubleshooting actions for you.

However, I was able to reproduce the issue again with WPML deactivated and with just your default language.

After flushing the cache from wp rocket the 404 came back - see my screenshot.

It looks like this might be a known issue from WP ROCKET see their documentation here:
hidden link.

Screen Shot 2022-05-05 at 10.54.29 AM.png