Skip Navigation

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

Problem:
The client encountered an error while running a wp-cli command, which resulted in a warning message about a missing closing parenthesis in the preg_replace() function within the WPML plugin file absolute-links.class.php.

Solution:
We asked the client to provide more details about the wp-cli command they were trying to run and any additional information that could be relevant. We also suggested that the issue might not be directly related to the WPML plugin, as similar issues have been reported with other plugins. We provided a link to a similar issue on the WordPress support forum:
https://wordpress.org/support/topic/preg_match_all-compilation-failed-missing-closing-parenthesis/
Additionally, we created a custom Google search for the client to explore other possible solutions:
https://www.google.com/search?q=wpml+Warning%3A+preg_replace()%3A+Compilation+failed%3A+missing+closing+parenthesis

If the provided solution is outdated or not applicable to your case, we recommend opening a new support ticket. We also 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.

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 9 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
February 25, 2024 at 9:31 pm #15341977

tarasL

When running the wp-cli command I received the following error:

Indexing post links 67 % [========================> ] 1449:14 / 1625:43 Warning: preg_replace(): Compilation failed: missing closing parenthesis at offset 107 in /var/www/**/data/www/**/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php on line 364

I have version 4.6.9

what to do?

February 25, 2024 at 10:54 pm #15341996

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Can you please elaborate a bit more?

What command did you try to run with wp-cli?

Any extra information that you can share about this?

There's a similar post here (https://wordpress.org/support/topic/preg_match_all-compilation-failed-missing-closing-parenthesis/) related to a totally different plugin so there's a chance that this might not have to do with the plugin (even if the "sitepress-multilingual" folder shows up in the warning message) but maybe to the actual command being used?

I also created this custom Google search:
hidden link

Please let us know.

Thank you!

Mihai