ホームページ  >  記事  >  バックエンド開発  >  wordpress安装插件导致报错:Content Encoding Error?

wordpress安装插件导致报错:Content Encoding Error?

WBOY
WBOYオリジナル
2016-06-06 20:46:54998ブラウズ

我在wordpress后台安装了一个插件:html in categores and pages,然后导致打开页面出现这样的错误:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an
invalid or unsupported form of compression.

<code>Please contact the website owners to inform them of this problem.
</code>

PHP版本是5.24 。网上搜搜索了一下,千篇一律都是这种方法:

2、PHP代码ob_start('ob_gzhandler')导致的,导致的原因有两种:

a、服务器不支持这种压缩格式,可使用function_exists('ob_gzhandler')判断,解决方法
ob_start('ob_gzhandler')改为ob_start();

b、使用ob_start('ob_gzhandler')时候前面已经有内容输出,检查前面内容以及require
include调用文件的内容。若无法找到可以在调用其它文件前使用ob_start(),调用之后使用 ob_end_clean ()
来清除输出的内容;

3、set_magic_quotes_runtime()函数:

但是我不知道在哪里改,我的PHP版本是5.24。求解。

回复内容:

我在wordpress后台安装了一个插件:html in categores and pages,然后导致打开页面出现这样的错误:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an
invalid or unsupported form of compression.

<code>Please contact the website owners to inform them of this problem.
</code>

PHP版本是5.24 。网上搜搜索了一下,千篇一律都是这种方法:

2、PHP代码ob_start('ob_gzhandler')导致的,导致的原因有两种:

a、服务器不支持这种压缩格式,可使用function_exists('ob_gzhandler')判断,解决方法
ob_start('ob_gzhandler')改为ob_start();

b、使用ob_start('ob_gzhandler')时候前面已经有内容输出,检查前面内容以及require
include调用文件的内容。若无法找到可以在调用其它文件前使用ob_start(),调用之后使用 ob_end_clean ()
来清除输出的内容;

3、set_magic_quotes_runtime()函数:

但是我不知道在哪里改,我的PHP版本是5.24。求解。

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。