This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's debug log displayed a PHP warning related to the
preg_replace()
function in the WPML Endpoints Support file, indicating an unknown modifier 'f'.
Solution:
We discovered that the client had translated some non-translatable WooCommerce Endpoints, which was causing the problem. We advised the client to:
1. Not translate non-translatable endpoints.
2. Only translate endpoints that appear in the frontend for users.
3. Remove the incorrect translations of the endpoints from their site.
4. Use hyphens between words when translating Endpoint strings to prevent further issues.
After following these steps, the issue was resolved.
Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we encourage you to open a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
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 is split from https://wpml.org/forums/topic/spanish-and-italian-posts-shows-404-error/