WP Minify
Can't activate plugin - fatal error (6 posts)

  1. Naz
    Posted 4 years ago #


    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!


  2. richo67
    Posted 4 years ago #

    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.

  3. Naz
    Posted 4 years ago #

    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.

  4. Naz
    Posted 4 years ago #

    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.


  5. apotropaic
    Posted 4 years ago #

    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

  6. Naz
    Posted 4 years ago #

    Wow! Thanks for the help, apotropaic! I can't believe it was that easy to fix! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Minify
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic