Warning: preg_match(): Compilation failed:

#80875
  • Resolved Eliav
    Rank Math free

    Hey
    I moved to Digital Ocean from AWS and updated the PHP from 5.6 to 7, and now I’m getting this error:

    Warning: preg_match(): Compilation failed: unrecognized character after (? or (?- at offset 7 in /home/xxxyyyzzz/mywmgaunzb/public_html/wp-content/plugins/seo-by-rank-math/vendor/mythemeshop/wordpress-helpers/src/helpers/class-str.php on line 95

    How can I solve this?

    • This topic was modified 4 years, 2 months ago by Eliav.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Don’t worry, it is just a warning and it doesn’t even cause any issue in your site. Anyway, I will share this thread with the devs so they can check it and maybe give you some insights.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Eliav
    Rank Math free

    Thank you!

    Hello,

    The preg_match warning you mentioned could appear due to the wrong regex rule added in the Redirection Settings. Have you created any Redirection rule or imported it from any other plugin. If yes, please try deactivating the Redirection rules one by one till you find the rule causing this problem.

    The other error you mentioned is from the theme. Please contact the theme team, they could help you with that.

    I hope that helps. Please let us know if you still need our help with anything else.

    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 ‘Warning: preg_match(): Compilation failed:’ is closed to new replies.