PHP Warnings

#517451
  • Resolved Des H
    free

    Hello, I was looking at my PHP error log and noticed a lot of warnings from the Rank Math plugin.

    The error is:
    preg_match_all(): Compilation failed: missing closing parenthesis at offset 44 in /*/*/*/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 545

Viewing 3 replies - 1 through 3 (of 3 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 opening parenthesis which is not containing the closing parenthesis. For example, a 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 on 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.

    Wow, thanks! I use the function to automatically update the focus keyword with the post title found on the Rank Math website. I didn’t even think about the fact that my titles contained commas inside of parentheses so Rank Math was cutting the title off early and not including the closing parentheses.

    I ended up using str_replace to remove the commas and it seems to be good now.

    Hello,

    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 https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘PHP Warnings’ is closed to new replies.