• Resolved totalgeeks

    (@totalgeeks)


    Hi guys,

    I wonder if anyone can help…

    I’m receiving the following error whenever I publish any post on my site:

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /home/totalgee/public_html/wp-includes/class-wp.php on line 231

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /home/totalgee/public_html/wp-includes/class-wp.php on line 232

    It seems to be related to the Events Manager plugin, but I’ve been using it since 2014 without any issues. Suddenly, it’s started doing this – perhaps after a WP update though I can’t be sure. The error can be removed by flushing permalinks, but reoccurs EVERY time I publish a post… since I run a news site, this occurs often and the error has even been scraped by Google News as an excerpt. Not great. Weirdly, it doesn’t seem to happen when I publish Events (which I’m using to track release dates).

    I’ve tried cleaning up and optimizing my DB and have even tried completely removing and reinstalling Events Manager… but the errors persist. They only stop when EM is removed.

    Any help would be hugely appreciated – I’d love to continue using Events Manager as it really streamlines one of the more laborious processes of running my site.

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter totalgeeks

    (@totalgeeks)

    Update: Even weirder, I’ve taken a backup of the entire site and migrated it to localhost in order to do local testing… but I cannot replicate the error. Everything is exactly the same (from DB to files), but I simply can’t replicate the problem.

    Any ideas?

    Update 2: Seems it was a File Permissions issue on the server. All sorted.

    • This reply was modified 9 years, 1 month ago by totalgeeks.
    • This reply was modified 9 years, 1 month ago by totalgeeks.
    Thread Starter totalgeeks

    (@totalgeeks)

    Update 3: Problem has resumed. File Permission changes were only tested by ‘publishing’ in drafts category. Live articles result in the same error message.

    Thread Starter totalgeeks

    (@totalgeeks)

    Still having problems with this.

    have tried everything from purging my htaccess to addressing file permissions.
    Absolutely nothing seems to be helping. Essentially seems to be a problem with the permalinks (I think) in some way. Any help would be HUGELY appreciated. Have had to deactivate the plugin for now, but it would be great to get it back in working order!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know which php version you are currently using?

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

The topic ‘Error code “Warning: preg_match()” when publishing posts’ is closed to new replies.