Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

net::ERR_INCOMPLETE_CHUNKED_ENCODING since upgrading to Laravel 4.1

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.

like image 403
Pierlo Upitup Avatar asked May 05 '14 10:05

Pierlo Upitup


2 Answers

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.

like image 117
Jose Mujica Avatar answered Nov 18 '22 11:11

Jose Mujica


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.

like image 45
Amiga Avatar answered Nov 18 '22 13:11

Amiga