Skip Navigation

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Bigul 9 months ago.

Assisted by: Bigul.

Author Posts
April 8, 2024 at 3:30 pm #15495297

mariaL-30

Debug log shows following warning

PHP Warning: preg_replace(): Unknown modifier 'f' in \wp-content\plugins\sitepress-multilingual-cms\classes\url-handling\class-wpml-endpoints-support.php on line 142

April 8, 2024 at 3:40 pm #15495318

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Maria,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

We will debug it further with the main ticket and get back to you tomorrow. Please wait. Thank you for your kind understanding.

--
Thanks!

Bigul

April 10, 2024 at 8:06 am #15502618

mariaL-30

Hi Bigul,
you have news? The problem is solved? I can't sleep at night thinking about this problem. I need the web to work properly again as soon as possible.
Thanks,
Maria

April 10, 2024 at 9:49 am #15503557

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi Maria,

Thank you for being so patient. We have fixed the issue on your site now. Please check it now and let us know your feedback. Refer to the following thread for more details.

https://wpml.org/forums/topic/spanish-and-italian-posts-shows-404-error/#post-15503525

--
Thanks!

Bigul