PHP Warning: preg_match_all(): Compilation failed

#827171
  • Resolved Sven Möller
    Rank Math free

    Hello,

    We can see a Warning in
    PHP Warning: preg_match_all(): Compilation failed: quantifier does not follow a repeatable item at offset 34 in /home/jzv4lkm/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 545

    It is caused because a product title is includes a “+”.
    Should rank math be compatible with products that has “+” in their names?

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

    We apologize for the issue you are facing with the PHP Warning related to the "+" character in the product title causing a compilation failure in Rank Math.

    Rank Math should be compatible with products that have special characters like "+", but in this case, it seems there is a conflict causing the warning. To resolve this, we recommend updating to the latest version of Rank Math and checking if the issue persists. If it does, you may need to reach out to our dedicated support team by submitting a ticket here for further assistance in resolving this specific compatibility issue.

    Thank you for bringing this concern to our attention, and we appreciate your understanding as we work to address this issue promptly.

    Closing spiel.

    Sources:
    How to Fix Undefined Offset: 0 Warning » Rank Math
    How to Resolve Wordfence Warning for update-1.0.42.php? » Rank Math
    Google Search Console Missing Field Warning » Rank Math

    Hello,

    We think this should be revised.

    Hello,

    The warning is due to the special character added to the focus keyword.

    Please remove any special characters from the focus keyword like *, +, etc.. and try again.

    Also, please check if you have focus keywords with more than one question mark, if you see that, remove them and use only one ? in the focus keyword to get rid of the errors.

    Looking forward to helping you.

    Hello @Reinelle,

    Thanks for your reply.
    We were wondering, should Rank Math be compatible with focus keywords including those characteres?
    Like one of our products name include a +

    Best regards!

    Hello,

    At the moment some of those special characters might cause such warning when used in the focus keyword. We are continuously improving our plugin to provide the best experience for our users.

    Please note that the Content analysis test is only for your reference and serves as a guide on technical SEO best practices for your site. The score does not translate directly to your SEO.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Would it be possible to request an update of the symbols accepted by Rank Math?
    That would leave us calm that on future versiones the message would be gone.

    Thank you !

    Hello,

    The symbols in the focus keyword don’t make much sense from an optimization perspective.

    The focus keyword is essentially the search term you would like to be ranked for on Google and other search engines and if we check our users usually search for data on search engines they don’t the plus sign unless they are using modifiers to append to the query which is outside the scope of the search term at that time.

    We appreciate the suggestions but we don’t see much value in adding allowing those sings in the focus keyword.

    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 7 replies - 1 through 7 (of 7 total)

The ticket ‘PHP Warning: preg_match_all(): Compilation failed’ is closed to new replies.