Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Would you mind sharing a copy of the focus keywords that you are using on the page so that we can test this further?
Looking forward to helping you. Thank you.
Starting today I have the same error
Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 104 in public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 317
I removed all these lines, and I have no error.
// 4. Paragraph with the focus keyword.
if ( ! empty( $keywords ) ) {
$regex = ‘/<p>(.*’ . str_replace( [ ‘,’, ‘ ‘, ‘/’ ], [ ‘|’, ‘.’, ‘\/’ ], $keywords ) . ‘.*)<\/p>/iu’;
\preg_match_all( $regex, $post_content, $matches );
if ( isset( $matches[1], $matches[1][0] ) ) {
return $matches[1][0];
}
}
This is till next update, so is about focus keyword bla bla bla
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
This is issue tends to happen with certain symbols in keywords. Would you mind sharing the specific keyword you are using so we can check this issue further
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.