[Plugin: W3 Total Cache] Disk enhanced fails with URL rewrite (patch included)
-
I tried submitting a bug report from the Support > Submit bug report inside WP but it fails, without a further explanation. So I’m writing it here.
Disk enhanced page caching is not working at all for me (apache and litespeed tested) on W3TC 0.9.2.4. It always fails with the message:
“It appears Page Cache URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration.”
Which is not very specific, really. After some close debugging, I found the bug in TotalCacheAdmin.php, line 5294. It should be changed from:
$result = (!is_wp_error($response) && $response['response']['code'] == 200 && trim($response['body']) == 'OK');
to
$result = (!is_wp_error($response) && $response['response']['code'] == 200 && trim($response['response']['message']) == 'OK');
$response['body']
actually holds the html body of the response, not the response message (e.g. “OK”). Also, I may add that checking for 200 should be enough, there isn’t really a need to check for “OK” as well.Regards,
- The topic ‘[Plugin: W3 Total Cache] Disk enhanced fails with URL rewrite (patch included)’ is closed to new replies.