Title: PHP error: Compilation Failed
Last modified: January 26, 2022

---

# PHP error: Compilation Failed

 *  Resolved [jessausource](https://wordpress.org/support/users/jessausource/)
 * (@jessausource)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/)
 * Hi,
 * We got this error everywhere in the site except the homepage whenever the plugin
   is activated.
 * `Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable
   item at offset 1`
 * Can you please check and provide fix for this?
 * We can’t deactivate this as we’re using this plugin currently.

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

 *  [Amanda Giles](https://wordpress.org/support/users/shedonist/)
 * (@shedonist)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/#post-15313623)
 * I’m having this error too. It goes away if the plugin is deactivated. Things 
   still seem to work though. It shows onscreen if debugging is off, but can be 
   hidden if I turn debugging on and debug display off as follows:
 *     ```
       define('WP_DEBUG',         true);  // Turn debugging ON
       define('WP_DEBUG_DISPLAY', false); // Turn forced display OFF
       define('WP_DEBUG_LOG',     true);  // Turn logging to wp-content/debug.log ON
       ```
   
 *  Thread Starter [jessausource](https://wordpress.org/support/users/jessausource/)
 * (@jessausource)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/#post-15318107)
 * I’ve resolved this by resaving the permalinks in Events > Settings > Pages > 
   Permalink Slugs. This works for me.
 *  [Amanda Giles](https://wordpress.org/support/users/shedonist/)
 * (@shedonist)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/#post-15318339)
 * I tried that as well based on what I saw on another thread, but it did not work.
   Did you specifically do it while the plugin was inactive? I’m not sure if I tried
   it then.
 *  Thread Starter [jessausource](https://wordpress.org/support/users/jessausource/)
 * (@jessausource)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/#post-15318683)
 * I did this while the plugin is enabled as the settings will not be available 
   if the plugin is inactive.
 *  [Amanda Giles](https://wordpress.org/support/users/shedonist/)
 * (@shedonist)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/#post-15321026)
 * Ahhh, thank you. Sorry I skimmed the first time and thought you went to Settings
   > Permalinks. My bad.
 * This worked perfectly. Thank you so much.

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

The topic ‘PHP error: Compilation Failed’ 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/)

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 5 replies
 * 2 participants
 * Last reply from: [Amanda Giles](https://wordpress.org/support/users/shedonist/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-compilation-failed/#post-15321026)
 * Status: resolved