2014-01-29, 12:08 AM
Hi All,
I have a plugin that goes off and does some xmlrpc stuff with wordpress. When I am logged in as the administrator this all works fine, however when I am logged in as a user I get the following error only when gzip is enabled
ERR_CONTENT_DECODING_FAILED
This is a browser error, usually displayed when the headers say the page is encoded but it is not encoded.
So I am wondering what may lead to this as I can't see anything that would cause it. I even tried doing an ob_flush() before the output just in case.
The output code is simple
I cant see why this would end up causing an encoding error, but am I missing something here?
This is all called via a plugin and used on misc.php
As soon as I turn of gzip it all works fine.
Dan
I have a plugin that goes off and does some xmlrpc stuff with wordpress. When I am logged in as the administrator this all works fine, however when I am logged in as a user I get the following error only when gzip is enabled
ERR_CONTENT_DECODING_FAILED
This is a browser error, usually displayed when the headers say the page is encoded but it is not encoded.
So I am wondering what may lead to this as I can't see anything that would cause it. I even tried doing an ob_flush() before the output just in case.
The output code is simple
//show them a message saying thanks
$title = "Your article has been submitted";
$error = $message;
eval("\$html .= \"".$templates->get("error")."\";");
ob_flush();
output_page($html);
exit();
I cant see why this would end up causing an encoding error, but am I missing something here?
This is all called via a plugin and used on misc.php
As soon as I turn of gzip it all works fine.
Dan