codeIgniter项目给予303 /通讯pression错误 [英] CodeIgniter Project Giving 303/Compression Error
问题描述
试图建立地方发展(LAMP堆栈)一个codeIgniter基础的项目,一旦所有的配置文件进行了更新(这意味着我成功了C $ cIgniter为$有意义的引导错误),我得到了这个错误我浏览器:
- 铬
错误330(净值:: ERR_CONTENT_DECODING_FAILED):未知的错误块引用>
- 火狐
内容编码错误:您要查看的页面无法显示,因为它使用COM pression的无效或不支持的格式块引用>。
- 火狐
只需使用wget来获取文件工作正常,没有错误,我得到我期待的内容。不知道这是一些与CI和服务器,或者只是一些奇怪的项目。 有没有人见过这个?
codeIgniter似乎有它自己的gzip压缩输出(为什么,我不知道的方法,但我不是很熟悉的CI。 )
根据这个论坛进入,可能会出现这样的错误时,PHP错误信息搞砸了COM pressed内容。调整使用error_reporting到 E_ALL ^ E_NOTICE
的伎俩那里。
更新:看起来也似乎是一个CI配置设置:
$配置['COM press_output'] = FALSE;
Trying to setup a CodeIgniter based project for local development (LAMP stack), and once all the config file were updated (meaning I successfully had meaningful bootstrap errors for CodeIgniter), I get this error in my browsers:
- Chrome
Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.
- Firefox
Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Just using wget to fetch the file works fine, no errors and I get the content I'm expecting. Not sure if this is something with CI and the Server, or just something weird with the project. Has anyone seen this before?
CodeIgniter seems to have its own method of gzipping its output (Why, I don't know, but I'm not very familiar with CI.)
According to this forum entry, such an error can occur when PHP error messages screw up the compressed content. Adjusting error_reporting to E_ALL ^ E_NOTICE
did the trick there.
Update: There also seems to be a CI config setting:
$config['compress_output'] = FALSE;
这篇关于codeIgniter项目给予303 /通讯pression错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!