• Hello,

    I transferred a site to a new server and get a preg_match() error on some pages. I read in the forums that updating the permalinks helps. Under settings i clicked “save permalinks” several times but it didn’t help.

    Question: Should I set permalinks to “default”, click save and then set the permalinks back to the pretty URL? Can this refresh cause links to change?

    For example if the post title has been changed. Would the pretty permalink be re-created using the new post title or would the permalink go back to the previously stored pretty URL?

    Trying to find out if we have to do redirects, etc. after such a refresh.

    Thank you for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you share the exact error? Or a link to a page with the error on it?

    Thread Starter Tobi_w

    (@tobi_w)

    Hi Jacob, thank you for helping me!

    Here is the error:
    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /home/domainpath/wp-includes/class-wp.php on line 207

    does that help pinpoint the problem?

    Thread Starter Tobi_w

    (@tobi_w)

    From what I read many solved this by updating the permalinks. So my question is whether or not the permalinks change in case i save the default permalink settings and then go back to the pretty URL format of %postname%

    The permalinks should not change if you set them back to the original settings.

    Thread Starter Tobi_w

    (@tobi_w)

    ok. thank you Jacob. will give it a go and run a link checker afterwards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Transferred to new server – preg_match() error – Refresh Permalinks?’ is closed to new replies.