Title: Minify php warning
Last modified: March 23, 2022

---

# Minify php warning

 *  Resolved [adriantbb](https://wordpress.org/support/users/adriantbb/)
 * (@adriantbb)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/minify-php-warning/)
 * Hi, we have a problem on one of our websites with minify option enabled, this
   message is appearing in every post.
    PHP message: PHP Warning: preg_match(): 
   Compilation failed: unmatched parentheses at offset 39 in /var/www/clients/client1/
   web6/web/wp-content/plugins/w3-total-cache/Minify_Plugin.php on line 977
 * I debugged a little on Minify_Plugin.php line 977 and find that $expr is returning
   sitemap_index.xmlmain-sitemap.xslsitemap?\.xml?[a-z0-9_\-]*sitemap[a-z0-9_\-]*\
   xml|xsl)?
    It’s closing a parentheses but never opens it.
 * We have last wordpress version and last plugin version.
    Can you help us ? Thanks
    -  This topic was modified 4 years, 2 months ago by [adriantbb](https://wordpress.org/support/users/adriantbb/).

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/minify-php-warning/#post-15488004)
 * Hello [@adriantbb](https://wordpress.org/support/users/adriantbb/)
 * Thank you for reaching out and I am happy to assist you with this.
    Can you please
   share if you added something to Performance>Minify>Advanced>Never minify the 
   following pages:
 * Thanks!
 *  Thread Starter [adriantbb](https://wordpress.org/support/users/adriantbb/)
 * (@adriantbb)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/minify-php-warning/#post-15488387)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/),
 * Code in that configuration was wrong, didn’t know that exists.
 * It’s solved, thank you and have a great day.

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

The topic ‘Minify php warning’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [adriantbb](https://wordpress.org/support/users/adriantbb/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/minify-php-warning/#post-15488387)
 * Status: resolved