preg_match_all() error on the front end of some web pages

  • Hello
    After adding Rank Math to my WordPress website I started seeing an error message on the front end of some of the web pages on my website.
    The error message says:
    Warning: preg_match_all(): Compilation failed: unmatched closing parenthesis at offset 44 in /mnt/data/home/ on line 545

    Please help me solve this problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    There might be a keyword you’ve added with the opening parenthesis which is not containing the closing parenthesis. For example, the keyword Sakib(s is there instead of Sakib(s).

    In order to fix this issue, you’ll need to add the closing parenthesis there. You may update the keyword from the post/page if you can remember something similar to this one.

    If you’re clueless about where the affected keyword can be, a quick way to spot them would be to access your database and make a query on your wp_postmeta table for the meta key rank_math_focus_keyword and in the values, you should filter the ones which include an opening parenthesis.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Thank you for your help. Is there a way for me to learn the steps to access the database and make the required query?


    Usually, most hosting providers give users the option to access the database via phpMyAdmin which is an easy-to-use GUI tool for databases.

    If you want to learn how to use it and find the fields we mentioned above you can refer to the following tutorial:

    Don’t hesitate to get in touch if you have any other questions.

    Thank you!


    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘preg_match_all() error on the front end of some web pages’ is closed to new replies.