Support » Plugin: WP Minify » [Plugin: WP Minify] Can't 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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


    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


    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.


    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:


    to this:


    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


    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.