Title: [Plugin: Events Manager] rewrite rules trigger &quot;Compilation failed&quot; warnings
Last modified: August 20, 2016

---

# [Plugin: Events Manager] rewrite rules trigger "Compilation failed" warnings

 *  Resolved [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/)
 * FYI: PHP=5.3.14
 * Events manager 5.1.8.5 is generating warnings as follows:
 * Warning: preg_match() [/phpmanual/function.preg-match.html]: Compilation failed:
   nothing to repeat at offset 1 in /data/websites/angove/wp-includes/class-wp.php
   on line 201
 * Warning: preg_match() [/phpmanual/function.preg-match.html]: Compilation failed:
   nothing to repeat at offset 1 in /data/websites/angove/wp-includes/class-wp.php
   on line 202
 * This is due to an unescaped “?” in the following regexes, which PHP is trying
   to interpret as a shortcut for {0,1}:
 * ?page_id=871/(\d{4}-\d{2}-\d{2})$
    ?page_id=871/rss$ ?page_id=871/feed$ ?page_id
   =871/event/(.+)$ ?page_id=871/location/(.+)$ ?page_id=871/category/(.+)$ ?page_id
   =871/?$
 * s/871/your events page/g
 * In all cases, I reckon you should be escaping the “?” as “\?”
 * cheers,
    Ross
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923829)
 * I’m guessing this is when you’re not using permalinks?
 *  Thread Starter [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923830)
 * Ha… now that you mention it, it seems that this website hasn’t been configured
   for events yet (no events page selected, for example). So, maybe this can be 
   ignored? 🙂
 * [NB: someone else set this one up, I was just seeing the warnings on my dev copy
   when working on some other aspects of the website]
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923901)
 * I’ve noted this down and will fix asap (probably after the 5.1.9 update)
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923902)
 * btw, in case I don’t reproduce this, are you getting this on every page, or on
   specific instances?
 *  Thread Starter [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923903)
 * G’day Marcus, sorry if I wasn’t clear before, this was happening because Events
   Manager hadn’t been configured. I went to the Permalink Slugs section of Events
   settings and saw that there were the usual slugs, hit Save All Changes, and it’s
   fixed. It was simply a matter of someone installing the plugin but not configuring
   it.
 * FYI: yes, it was all pages, because it was in the rewrite rules; but fixed now
   since above done.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923909)
 * I guess I’ll leave it at that for now then 🙂

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

The topic ‘[Plugin: Events Manager] rewrite rules trigger "Compilation failed" warnings’
is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-events-manager-rewrite-rules-trigger-compilation-failed-warnings/#post-2923909)
 * Status: resolved