• Resolved raha1988ab

    (@raha1988ab)


    [15-Dec-2023 07:15:58 UTC] PHP Warning:  preg_match_all(): Compilation failed: missing closing parenthesis at offset 126 in /home/site/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 545
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @raha1988ab,

    Thank you for contacting support.

    That happens when there’s a post/page on your website that has a missing closing parenthesis inside the content.

    Please check if you forgot to close the parenthesis and close it so this warning will go away.

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

    Thread Starter raha1988ab

    (@raha1988ab)

    Hello @rankmathsupport

    I have more than 400.000 pages and products and categories on my site,

    would you please give an example of how to solve that?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @raha1988ab,

    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 that include an opening parenthesis. Here’s an example of the SQL query: https://pastebin.com/dP3x29JN

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thread Starter raha1988ab

    (@raha1988ab)

    Hi @rankmathsupport

    Found a single post with that query you sent me, how should I fix that? I mean which parenthesis I should close?

    in rankmath of that page?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @raha1988ab,

    If you found the post with only an opening parenthesis in the focus keyword then you can either add the closing one “)” or you can remove the opening parenthesis. Here’s a screenshot for reference: https://i.rankmath.com/i/SyzKW9

    In case, you’re not comfortable editing directly on your database then you can access this post from your WordPress site by using the post ID and add a closing parenthesis in the focus keyword from the Rank Math SEO Meta box.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warning: preg_match_all(): Compilation failed’ is closed to new replies.