Title: Error code &#8220;Warning: preg_match()&#8221; when publishing posts
Last modified: April 9, 2017

---

# Error code “Warning: preg_match()” when publishing posts

 *  Resolved [totalgeeks](https://wordpress.org/support/users/totalgeeks/)
 * (@totalgeeks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-code-warning-preg_match-when-publishing-posts/)
 * 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](https://wordpress.org/support/users/totalgeeks/)
 * (@totalgeeks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-code-warning-preg_match-when-publishing-posts/#post-9011828)
 * 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](https://wordpress.org/support/users/totalgeeks/).
    -  This reply was modified 9 years, 1 month ago by [totalgeeks](https://wordpress.org/support/users/totalgeeks/).
 *  Thread Starter [totalgeeks](https://wordpress.org/support/users/totalgeeks/)
 * (@totalgeeks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-code-warning-preg_match-when-publishing-posts/#post-9013729)
 * 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](https://wordpress.org/support/users/totalgeeks/)
 * (@totalgeeks)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-code-warning-preg_match-when-publishing-posts/#post-9029767)
 * 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](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years ago](https://wordpress.org/support/topic/error-code-warning-preg_match-when-publishing-posts/#post-9040554)
 * 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.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/error-code-warning-preg_match-when-publishing-posts/#post-9040554)
 * Status: resolved