Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP error, no data received

Tags:

php

I keep getting this error:

No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

I know it's part of my script, but I don't know which part. It divides certain text into a few different files, and those files are being created, but it's also supposed to zip them, but it's not getting to that part, so I have a vague idea of the general area the problem is occurring. I know this entire question is lacking detail, but I'm hoping that someone who has more experience with PHP and who may have seen the error before would be able to tell me what's happening.

http://gyazo.com/12ba55613011a115bb7507040f4d3ddf

EDIT: It works on Firefox... How can it be different between browsers if it's server-side script?

like image 780
mowwwalker Avatar asked Aug 19 '11 22:08

mowwwalker


4 Answers

It's a Chrome thing: http://www.google.com/support/forum/p/Chrome/thread?tid=7d50c093bd4f8f6c&hl=en

like image 69
AlienWebguy Avatar answered Nov 04 '22 03:11

AlienWebguy


I don't know if you've already solved this, if it's a different problem causing the same symptoms or whatever, but yesterday I noticed this same error on my development machine, running Apache+PHP+MySQL under Linux, when accessing my local phpMyAdmin:

http://localhost/phpMyAdmin

It was running fine until that day, and I realized that by the same time I changed some settings related to sessions in my php.ini.

The problem was caused by having session.save_handler set to user instead of files. So I switched back to

session.save_handler = files

and voilà... everything is working fine again.

Also be sure to have set the proper session.save_path. In my case, and probably in most Linux systems,

session.save_path = "/tmp"

Be sure to set the proper permissions to that directory, too. Mine is chmod'ed to 777.

like image 22
Pere Avatar answered Nov 04 '22 03:11

Pere


Restart apache and mysql

service httpd restart

service mysqld restart

Hopefully this answer helps someone.

like image 8
Jtek Grafix Avatar answered Nov 04 '22 05:11

Jtek Grafix


A little late to the draw here, but I received this error while working on a local copy of a php project (on Chrome), and although Firefox loaded some parts of the pages, it was still throwing similar errors.

The really weird part was that if I commented out includes or a few functions it would load partially.

I got around it by restarting the local server. I was using MAMP. You can tell for sure that this is the issue if you're running MAMP by going to the home page - it'll likely throw the same error.

like image 1
Cameron Hurd Avatar answered Nov 04 '22 03:11

Cameron Hurd