WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Minify] Can't activate plugin – fatal error

[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!

    http://wordpress.org/extend/plugins/wp-minify/

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.

    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.

    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!

    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

    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.