Skip Navigation

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

Problem:
The client was experiencing a PHP warning on all product pages with the error message:

preg_match(): Unknown modifier '-'

in the

absolute-links.class.php

file.
Solution:
We recommended the client to search for existing support tickets that might contain the solution to the issue by using a custom Google search URL. Additionally, we provided a link to our errata page that addresses the specific PHP warning issue:

The client found a solution through the provided resources and confirmed that the issue was resolved.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we 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. If none of these resources help, please do not hesitate to open a new support ticket with us for further assistance.

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 2 months ago.

Assisted by: Mihai Apetrei.

Author Posts
March 28, 2024 at 8:07 pm #15462526

joshuaM-15

I am getting the following error on all my product pages:

preg_match(): Unknown modifier '-' in /home/customer/www/vsep.com/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php on line 186

Example URL: hidden link

Not sure how to correct this.

PHP version is 7.4.33

Capture1.JPG
Capture.JPG
March 28, 2024 at 9:34 pm #15462680

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

I created a custom search URL for you so that you can quickly find the existing support tickets that are based on the same topics and that already contain solutions shared by my colleagues:
hidden link

Errata:
https://wpml.org/errata/php-warning-preg_match-unknown-modifier/

This way, you might find the solution faster and we might spend less time on this ticket.

Please take a look over the first results and let me know if you managed to get this resolved.

I will be waiting for your response.

Mihai Apetrei

March 28, 2024 at 9:46 pm #15462689

joshuaM-15

Thank you. From your search I found the following solution, and it worked for me:

https://wpml.org/forums/topic/error-php-warning-preg_match-unknown-modifier-2/

Thanks again!

Resolved.