Title: [Plugin: WP Minify] Can&#039;t activate plugin &#8211; fatal error
Last modified: August 20, 2016

---

# [Plugin: WP Minify] Can't activate plugin – fatal error

 *  [Naz](https://wordpress.org/support/users/naz/)
 * (@naz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/)
 * Hello,
 * This looks like a really awesome plugin and I would love to be able to use it.
 * Unfortunately, when I activate the plugin I get the following error:
 * > Fatal error: Cannot redeclare class PEAR_Common in C:\PHP5\PEAR\PEAR\Common.
   > php on line 1123
 * Any help is appreciated. Thanks!
 * [http://wordpress.org/extend/plugins/wp-minify/](http://wordpress.org/extend/plugins/wp-minify/)

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

 *  [richo67](https://wordpress.org/support/users/richo67/)
 * (@richo67)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/#post-2792519)
 * I had different problem. After enabling plugin my web was returning http 500 
   error. After looking into the /var/log/messages (Debian 6) i found out that curl
   extension for PHP was not installed.
 * I have installed it, installation did only apache reload but it didn’t refresh
   the curl.ini so only after apache restart all is working fine.
 * I see you are suing apache on Win and it looks like plugin is using PEAR library
   which already some of your other plugin possibly using as well.
 *  Thread Starter [Naz](https://wordpress.org/support/users/naz/)
 * (@naz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/#post-2792530)
 * Thanks for your response. Yes, I am using Windows hosting. It does seem like 
   some other plugin is using the PEAR library as well. I have no idea where to 
   look, though.
 *  Thread Starter [Naz](https://wordpress.org/support/users/naz/)
 * (@naz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/#post-2792604)
 * Well, here’s an update. I installed WP Minify on a clean installation on the 
   same server and I got the same fatal error, so it’s not a problem with other 
   plugins I am using. I hope there’s a fix for this.
 * Thanks!
 *  [apotropaic](https://wordpress.org/support/users/apotropaic/)
 * (@apotropaic)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/#post-2792806)
 * I had this same problem and found a solution. Under the plugins directory, if
   you open the file wp-minify.php, change line 929 from this:
 * `require_once('common.php');`
 * to this:
 * `require_once(dirname(__FILE__).'/common.php');`
 * it appears that on some setups, like mine, the php include path includes the 
   PEAR directory, which happens to have a file called common.php
 *  Thread Starter [Naz](https://wordpress.org/support/users/naz/)
 * (@naz)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/#post-2792816)
 * Wow! Thanks for the help, apotropaic! I can’t believe it was that easy to fix!
   🙂

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

The topic ‘[Plugin: WP Minify] Can't activate plugin – fatal error’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-minify.svg)
 * [WP Minify](https://wordpress.org/plugins/wp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-minify/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Naz](https://wordpress.org/support/users/naz/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-minify-cant-activate-plugin-fatal-error/#post-2792816)
 * Status: not resolved