>  기사  >  백엔드 개발  >  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으로 문의하세요.