Title: preg_match(): Compilation failed
Last modified: April 20, 2019

---

# preg_match(): Compilation failed

 *  Resolved [filoz](https://wordpress.org/support/users/filoz/)
 * (@filoz)
 * [7 years ago](https://wordpress.org/support/topic/preg_match-compilation-failed-2/)
 * After updating to latest version I’m getting this warning in debug.log:
 * PHP Warning: preg_match(): Compilation failed: nothing to repeat at offset 0 
   in /wordpress/wp-content/plugins/w3-total-cache/PgCache_ContentGrabb
 * I didnt’ change nothing in settings and nothing changed in server.
    Is there 
   a way to understand what caused that error?

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years ago](https://wordpress.org/support/topic/preg_match-compilation-failed-2/#post-11450715)
 * Hello,
    Can you please share the entire message? You are missing the line on 
   which this issue occurred in PgCache_ContentGrabber.php.
 *  Thread Starter [filoz](https://wordpress.org/support/users/filoz/)
 * (@filoz)
 * [7 years ago](https://wordpress.org/support/topic/preg_match-compilation-failed-2/#post-11456999)
 * Hi,
    thank you for your reply. I’ve fixed the problem, it was caused by a wrong
   entry in “Never cache the following pages”. The value was: *test-page*
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years ago](https://wordpress.org/support/topic/preg_match-compilation-failed-2/#post-11457016)
 * Hello,
    Glad to know that the issue is resolved!
 *  [thefabgeo](https://wordpress.org/support/users/thefabgeo/)
 * (@thefabgeo)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/preg_match-compilation-failed-2/#post-11971640)
 * Hi [@filoz](https://wordpress.org/support/users/filoz/) where is that option?
   I have the same error

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

The topic ‘preg_match(): Compilation failed’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [thefabgeo](https://wordpress.org/support/users/thefabgeo/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/preg_match-compilation-failed-2/#post-11971640)
 * Status: resolved