cztomczak / phpdesktop

Develop desktop GUI applications using PHP, HTML5, JavaScript and SQLite
https://groups.google.com/d/forum/phpdesktop
2.7k stars 574 forks source link

Error while loading start page may be caused not only by firewall, but also by PHP scripts #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Currently if the start page fails loading you will see a message like: Error while loading start page. An internal local server was blocked by your firewall. Please check your firewall setting. Application will terminate immediately. It might not always be true that firewall is causing this. There may be other causes for this error message. A php script failing is one of them, this can happen when for example php script throws a 500 error code.

Maybe it is possible to differentiate whether this was an error caused by firewall, or for example error 500 (or other) caused by PHP application. It would need to be checked what http status code is returned when firewall blocks application. For all other status codes we could display a different message to avoid confusion, for example "Error while loading the start page. Application throwed an unknown error (500 status code).".

To debug issue with your script set error log in php/php.ini and see that file for errors. See also here: https://github.com/cztomczak/phpdesktop/wiki/Knowledge-Base#problem-running-php-script

sarathmohan commented 8 years ago

I got the same issue when i tried some scripts i phpdesktop. When i start the phpdesktop application it fails and error message is shown like "Some of the internal server is blocked by firewall". The log says a 310 error. Then i figured it out that it was due to an infinite redirection loop in the start page.

asadjaved63 commented 6 years ago

Same Error in windows 10.. Any solution?

cztomczak commented 6 years ago

The solution is to fix php script. Please ask questions on the Forum.