Compilation failed: quantifier does not follow a repeatable item

#203003
  • Resolved Ade A
    Rank Math pro

    Hello,

    Can you please advise on this error noticed in my website’s error_log file?

    [26-May-2021 21:07:19 UTC] PHP Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 50 in /home/theinfo1/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 489
    [26-May-2021 21:07:19 UTC] PHP Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 50 in /home/theinfo1/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 489
    [27-May-2021 07:42:19 UTC] PHP Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 50 in /home/theinfo1/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 489
    [27-May-2021 07:42:19 UTC] PHP Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 50 in /home/theinfo1/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 489

    Thanks.

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.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it seems like the auto-generated description from the focus keyword or metadata is throwing this error.

    This error can be caused if you happen to have parenthesis not closed in your focus keyword or metadata.

    Can you please let us know what focus keyword & content you have added in the post/page so we can try and replicate this from our end?

    I hope that helps.

    Thank you, and looking forward to your update.

    Hi,

    There is no such occurrence in the focus keyword. I have recently sorted this out (https://support.rankmath.com/ticket/php-warning-preg_match_all-compilation-failed/)

    I also checked my DB now and could not see any occurence.

    How do I check the metadata?

    Thanks.

    Ankit
    Rank Math business

    Hello,

    Thank you for your reply.

    The PHP warning might be related to some special characters that are in use on the page that is reporting the warning. Please try to create a staging site and enable debugging mode so that the warning can be visible on the affected page/post.

    Looking forward to helping you. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Compilation failed: quantifier does not follow a repeatable item’ is closed to new replies.