The minification does not work if $_SERVER[“DOCUMENT_ROOT”] is incorrectly confi
-
The minification depends on the $_SERVER[“DOCUMENT_ROOT”] as in ‘w3-total-cache/lib/Minify/Minify/Controller/MinApp.php’
if (0 === strpos($file, '//')) { $file = $_SERVER['DOCUMENT_ROOT'] . substr($file, 1); } $realpath = \W3TC\Util_Environment::realpath($file);
$_SERVER[“DOCUMENT_ROOT”] is not the file system root, it is the site’s document root as configured in your web server.
So in wicked cases (eg. shared hosting) it could probably fail. And it failed in my development server. The $_SEVER[“DOCUMENT_ROOT”] and DIR on root script had different paths… I fixed on my case by changing the DOCUMENT_ROOT manually. It would be better if the author can have a look on this issue.
You can see the debug info on this link Debug screenshot
Thx
LaxmanThe page I need help with: [log in to see the link]
- The topic ‘The minification does not work if $_SERVER[“DOCUMENT_ROOT”] is incorrectly confi’ is closed to new replies.