Title: PHP Errors Possible Issue?
Last modified: September 1, 2016

---

# PHP Errors Possible Issue?

 *  Resolved [tuccimane](https://wordpress.org/support/users/tuccimane/)
 * (@tuccimane)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/)
 * I get these in my query monitor report:
 * PHP Warning – Missing argument 1 for Minify_HTML::__construct(), called in /home/
   content/t/u/c/tucsontile/html/wp-content/plugins/autoptimize/classes/autoptimizeHTML.
   php on line 51 and defined
 * Location: wp-content/plugins/autoptimize/classes/external/php/minify-html.php:
   69
 * PHP Notice – Undefined variable: html
 * Location: wp-content/plugins/autoptimize/classes/external/php/minify-html.php:
   71
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506894)
 * well, it’s a notice, not an error and not even a warning, so no big issue, HTML
   minification works OK despite it. but i’ll try to see if I can make that disappear
   anyhow 🙂
 * frank
 *  Thread Starter [tuccimane](https://wordpress.org/support/users/tuccimane/)
 * (@tuccimane)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506898)
 * Frank,
 * Sorry! Just thought I’d post them here for your use if they are meaningful.
 * I only read the log as “PHP Errors”
 * And then it listed “Php warnings” and “Php Notices”.
 * Having a ton of trouble right now accessing my admin (500 errors like crazy) 
   and I saw that and didn’t attribute it to my issues but thought you would appreciate
   the info.
 * As a side note, your plugin + super cache has my actual site in a wonderful speedy
   zip land of fastness. As for the admin, well, hopefully it’s just something simple
   like PHP 5.3.x needs to be upgraded or something, because turning off theme and
   plugins isn’t even getting me in nowadays >.<
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506926)
 * no need to apologize tuccimane; one notice is one notice too many! 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506928)
 * ok, so as far as a fix is concerned, could you open up wp-content/plugins/autoptimize/
   classes/autoptimizeHTML.php and on line 51 change
 * `if (@is_callable(array(new Minify_HTML,"minify"))) {`
 * into
 * `if (@is_callable(array("Minify_HTML","minify"))) {`
 * and see if that makes the problem go away? 🙂
 * frank
 *  Thread Starter [tuccimane](https://wordpress.org/support/users/tuccimane/)
 * (@tuccimane)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506964)
 * Hey Frank,
 * I got back into my admin finally.
 * I had changed this piece of code in preparation for that, and after bouncing 
   around a bit with Query Monitor on, I am no longer seeing those notices.
 * I don’t expect you to know, but maybe you can point me in the direction of a 
   plugin you know works (an author friend perhaps? :p)…
 * After accessing myPHPadmin and removing TONS of old wp_options, wp_postmeta, 
   etc AND noticing that my ‘home’ url ended with a ‘/’ (and removing it of course)
   that’s when I was able to access the admin without 500 errors again…
 * It was still very slow, but somewhat faster than before. I ended up uninstalling
   the Query Monitor because I wasn’t seeing anything too interesting anymore, but
   then I installed WP SERVER STATS.
 * And now I am seeing the issue I think… Anywhere from 60-90% CPU Load on average.
 * And when I’m watching the “real time” bar, it spikes randomly from sitting dormant
   at about 35% to up to 90% again, and that’s just sitting on the dashboard page
   after logging in.
 * Crazy stuff, not sure how this is happening but it explains a lot. Memory was
   never an issue, it’s been a CPU Load issue all along that’s just dragging the
   admin panel into the ground. Your plugin and Super Cache are keeping the front
   end of the site like lightning, but loading my own site pages while logged in
   is terrifyingly slow as well (Super Cache not loading cached pages for logged
   in users obviously so I’m getting the ‘real’ speed and CPU Load of things when
   I’m logged in).
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506981)
 * > And when I’m watching the “real time” bar, it spikes randomly from sitting 
   > dormant at about 35% to up to 90% again, and that’s just sitting on the dashboard
   > page after logging in.
 * well, watching “real time” stuff will in itself cause CPU-load … all depends 
   on your hosting. are you on a shared server or on a VPS or … are you on linux
   or windows? do you have access to the server? do you have cpanel or some other
   management tool?
 * I, for example, am on a Linux VPS with command line access, so I can log in and
   run the `top` command to see server load. when you have access to cPanel, [you can look at graphs about CPU usage as well](http://www.webhostinghub.com/help/learn/website/website-help/monitor-cpu-resource-usage-graphs-in-cpanel).
 * hope this helps,
    frank

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

The topic ‘PHP Errors Possible Issue?’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/php-errors-possible-issue/#post-7506981)
 * Status: resolved