ocean90
Member
Posted 1 month ago #
Hi,
I have a problem with your plugin. All works fine until I activate the option for minify HTML. Then I get a blank page.
Is there a log, where I can find an error message?
I deactivate all plugins, but the error is still there.
I use WPMU 2.8.4.
Thx.
http://wordpress.org/extend/plugins/w3-total-cache/
There's likely a parse error in the document somewhere. Try disabling minify options and see if the issue disappears, if not you will have to troubleshoot the issue with your document in order to fully minify it.
The error log lives in: wp-content/w3tc/log/minify.log
ocean90
Member
Posted 1 month ago #
Hi, your log doesn't exist, but I create another log and I get this errors:
[27-Oct-2009 14:46:46] PHP Fatal error: Can't load Minify/HTML.php, open_basedir restriction. in ##/wp-content/plugins/w3-total-cache/lib/W3/Plugin/Minify.php on line 262
[27-Oct-2009 14:46:46] PHP Fatal error: Can't load Minify/CSS.php, open_basedir restriction. in ##/wp-content/plugins/w3-total-cache/lib/W3/Plugin/Minify.php on line 263
Do you habv a solution for that?
There are PHP.ini issues that are causing files to not be properly installed/created/parsed. Try installing via FTP or sharing your PHP.ini settings. Unfortunately troubleshooting is quite difficult, especially with such limited information.
ocean90
Member
Posted 1 month ago #
Hi,
I ask my webhoster and he couldn't find an error. So I replaced the lines with fix paths and now it works.
Thx for your great plugin!
I have the same problem...
"PHP Fatal error: Can't load Minify/HTML.php, open_basedir restriction."
Maybe it's to late, but I don't understand the solution for it ;-)
Can you give me one more hint?
So I replaced the lines with fix paths and now it works.
@ocean90, what was your fix exactly?
ocean90
Member
Posted 1 month ago #
Hi,
open /wp-content/plugins/w3-total-cache/lib/W3/Plugin/Minify.php.
First I removed the line (~260) with set_include_path... and add the path of the DOCUMENT_ROOT to require_once:
require_once ($_SERVER['DOCUMENT_ROOT'].'/wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php');
But today I have looked over it again and now I have a solution which is more flexible:
require_once (W3TC_LIB_MINIFY_DIR . '/Minify/HTML.php');
The line with set_include_path... is here removed too.
I hope it works for gregma too.
Works fine now!
Thanks, ocean :-)
a.verdeja
Member
Posted 3 weeks ago #
It seems that I have the same problem. I have tried with ocean90 solution, but it doesn't function to me.
Any ideas? My blog is in a subdirectory.
ocean90
Member
Posted 3 weeks ago #
@a.verdeja
Do you replace all three lines? It should be:
require_once (W3TC_LIB_MINIFY_DIR . '/Minify/HTML.php');
require_once (W3TC_LIB_MINIFY_DIR . '/Minify/CSS.php');
require_once (W3TC_LIB_MINIFY_DIR . '/JSMin.php');
I get the error also in /wp-content/plugins/w3-total-cache/lib/W3/Cache/File.php on line 75
The fix (line 75):
if ((is_dir($path) ||
Instead $dir you should use $path.