Title: [Plugin: Web Optimizer] getting PHP fatal errors
Last modified: August 19, 2016

---

# [Plugin: Web Optimizer] getting PHP fatal errors

 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/)
 * hi there. after activation I keep gettign these errors:
 * `PHP Fatal error: Class: 'web_optimizer' not found in ....web.optimizer.php`
 * any ideas? btw. I am running suPhp
 * [http://wordpress.org/extend/plugins/web-optimizer/](http://wordpress.org/extend/plugins/web-optimizer/)

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

 *  [anotherhero](https://wordpress.org/support/users/anotherhero/)
 * (@anotherhero)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215478)
 * I think it’s suPhp-related (with rights/paths) issue. From here
    [http://www.howtoforge.com/forums/archive/index.php/t-29617.html](http://www.howtoforge.com/forums/archive/index.php/t-29617.html)…
   Fatal error: Class ‘Mail’ not found in /var/www/web2/web/test.php on line 56 …
   Please make sure that the file Mail.php exists in this directory: /var/www/web2/
   web/ Files from outside the web root can not be included for security reasons
   under suphp. The pear documentation includes instructions on how to install pear
   in a specific local directory. … What’s the output of updatedb locate Mail.php?…
   usr/share/php/Mail.php … Add /usr/share/php to your php.ini’s include_path. …
 * Please write here whether you are successed in installation.
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215621)
 * sorry I don’t get this: why would Mail.php be in the www root???
 * btw. I am not using suexec only suPhp.
 * in the thread you linked I found this hint:
 * `You can not access scripts from /usr/share/php when using suphp for security
   reasons. You should install a copy of pear locally inside the web directory.`
 * This means without reinstalling php-pear into each vhost I cannot use this plugin.
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215633)
 * just to confirm: is this the end of the story? can’t use the plugin with suPhp
   without recompiling, etc?
 * Just checking if I understood this right.
 *  [anotherhero](https://wordpress.org/support/users/anotherhero/)
 * (@anotherhero)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215637)
 * I think, here are all instructions to get suPHP work with paths
    [http://www.howtoforge.com/forums/archive/index.php/t-29617.html](http://www.howtoforge.com/forums/archive/index.php/t-29617.html)
   there is a re-compilation way and some info about modules
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215639)
 * ok, I took care of the Mail.php story, now when activating I get:
 * `Plugin could not be activated because it triggered a fatal error. Fatal error:
   Cannot redeclare class admin in /var/www/clients/client1/web7/web/wp-content/
   plugins/web-optimizer/controller/admin.php on line 7`
 * the log files say this:
 *     ```
       [Sat Oct 03 08:10:04 2009] [error] [client 41.5.25.132] PHP Fatal error:  Cannot redeclare class admin in /var/www/clients/client1/web7/web/wp-content/plugins/web-optimizer/controller/admin.php on line 7, referer: http://pacura.ru/wp-admin/plugins.php?error=true&plugin=web-optimizer%2Fweb.optimizer.wordpress.php&_error_nonce=d375063f60
       [Sat Oct 03 08:10:30 2009] [error] [client 77.88.28.246] PHP Fatal error:  Class 'web_optimizer' not found in /var/www/clients/client1/web7/web/wp-content/plugins/web-optimizer/web.optimizer.php on line 70
       [Sat Oct 03 08:10:30 2009] [error] [client 77.88.28.246] PHP Fatal error:  Class 'web_optimizer' not found in /var/www/clients/client1/web7/web/wp-content/plugins/web-optimizer/web.optimizer.php on line 70
       ```
   
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215640)
 * now there seems there is a conflict with the phpspeedy plugin:
 *     ```
       [Sat Oct 03 08:16:46 2009] [error] [client 41.5.25.132] PHP Fatal error:  Cannot redeclare class admin in /var/www/clients/client1/web7/web/wp-content/plugins/web-optimizer/controller/admin.php on line 7, referer: http://pacura.ru/wp-admin/options-general.php?page=php_speedy_wp/php_speedy_wp.php&sub=activate_deactivate
       ```
   
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215641)
 * deactivated php speedy, now no more errors in the log files, but my page stays
   blank (front end) I have now officially given up on this plugin, especially after
   reading the hints about buying the full version for 99$
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215642)
 * I couldn’t get the CSS minify to work and what I did get working added a second
   to my load time.
 * It’s a nice idea but the delivery is a bit off.
 * Oh, and the code’s not really GPL either. “Permission to copy, modify, and distribute
   this software and its documentation, with or without modification, for non-commercial
   purposes only” (the sentence does complete, I’m being brief).
 *  [anotherhero](https://wordpress.org/support/users/anotherhero/)
 * (@anotherhero)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215643)
 * [@jdembowski](https://wordpress.org/support/users/jdembowski/): code was initially
   under MIT license. It seems free functions will be returned to MIT in a few monthes(
   when we completely separate paid part from free one).
 * [@ovidiu](https://wordpress.org/support/users/ovidiu/): there is ‘blank screen’
   trouble on several environments, on a few it was fixed with 0.6.0.1 release. 
   What version have you tried?
    We are going to release debug edition to get Web
   Optimizer logs and make it workable on environments that we can’t cover by current
   test system. $99 is only for a full version, free version now is more powerfull
   that PHP Speedy (but maybe covered another part of known systems). And we are
   improving it every day, every hour. If you could help us to improve Web Optimizer
   we can make this amazing tool functioned for you.
 * Of course it’s not compatible (or it can lead to seriuos misfunctions) with PHP
   Speedy. But you don’t install Super-Cache and Hyper-Cache plugins on the same
   blog, do you?
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215644)
 * of course I deactivated php-speedy then, I mean you jsut need one plugin of a
   kind 🙂 but still had the blank page problem 🙁
 * I was running 0.6.0.1 and like I said: nothing more in the error logs 🙁
 * Ok, found more, now when activating I get this:
 *     ```
       Plugin could not be activated because it triggered a fatal error.
       Can't write to the directory (please chmod it to 0775): /var/www/clients/client1/web7/web/wp-admin/cache/
       ```
   
 * now why on earth would the plugin not use the default cache folder in wp-content
   but rather make its own one in wp-admin?
 * Besides that I am on suPhp meaning I have to use 755 for permissions if I use
   775 suPhp won’t even start, it will jsut complain that I have given too much 
   rights to the web server 🙁
 *  [anotherhero](https://wordpress.org/support/users/anotherhero/)
 * (@anotherhero)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215646)
 * [@ovidiu](https://wordpress.org/support/users/ovidiu/): can you please set all
   3 cache directories (CSS/JS/HTML) on Web Optimizer Settings page to
    /var/www/
   clients/client1/web7/web/wp-content/plugins/web-optimizer/cache/ Web Optimizer
   directory (also there) to /var/www/clients/client1/web7/web/wp-content/plugins/
   web-optimizer/ and document root (is this actually root?) to /var/www/clients/
   client1/web7/web/
 * It seems automatic calculation of directories won’t work in suPHP case. We will
   try to pathc plugin for this king of environment.
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215648)
 * sorry for the late response, but all paths are setup right (automatically) still
   the logifle shows access errors to that wrong path?
 *  Thread Starter [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215649)
 * I see you fixed that .htaccess problem with the newest version, could you please
   also answer my other questions? its still enabled on the link I gave above, wodnering
   about the same issues except for the .htacccess problem which is solved now 🙂

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

The topic ‘[Plugin: Web Optimizer] getting PHP fatal errors’ is closed to new replies.

 * 13 replies
 * 3 participants
 * Last reply from: [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-web-optimizer-getting-php-fatal-errors/#post-1215649)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
