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.

