net::ERR_INCOMPLETE_CHUNKED_ENCODING since upgrading to Laravel 4.1

十年热恋 提交于 2019-12-12 07:48:24

问题


I've recently upgraded my app to Laravel 4.1 and I started getting this error (Chrome only)

net::ERR_INCOMPLETE_CHUNKED_ENCODING

in the console log. I have zero errors related to this in Laravel's logs and the same page works absolutely fine in Firefox or Safari. Can anyone help? I've been pulling my hair over this for quite a while now and I have no idea what else to try.

Any help is appreciated.


回答1:


I started having this issues with MAMP, Laravel and Chrome every time i created a new project. I use MAMP on Maverick so the solution for me was change on MAMP preferences -> php tab -> php extensions -> XCache to APC, that solved the problem. Good luck.




回答2:


Had the same issue on Laravel 4.2. My app has always been working on my local machine, but as soon as I put it on production server, it stopped working. As the answer above, XCache installed on the production server was the problem.

First of all you can check if XCache is enabled

$ php -v
...
with XCache v2.0.0, Copyright (c) 2005-2012, by mOo

What I did was to add this to my /public/.htaccess (to disable XCache)

php_flag xcache.cacher Off
php_flag xcache.size 0
php_flag xcache.stat Off

This way you check if XCache is the problem.



来源:https://stackoverflow.com/questions/23470537/neterr-incomplete-chunked-encoding-since-upgrading-to-laravel-4-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!