double requests - validation messages not displayed |
The problem is, my requests are doubled in production server (apache, shared hosting). The first response is correct, but the second is empty ie. without values passed. As result no validation error messages are displayed. The problem occurs only in production. I am not sure it does matter but I use parser templates for generating response. However I don't modify the response beside setting body to it.
Additionaly I receive the following errors after requests in hosting server error logs (it is probably related): AH10157: FastCGI: An error happened during Fastcgi processing, fallback to CGI, referer: www.xxx.xx/xx AH10144: FastCGI: comm with server "xxx xxx" aborted: error parsing headers: duplicate header 'Content-Type', referer: www.xxx.xx/xx Has anyone any idea, what causes that problem and what could be a solution?
FuelPHP had a problem with fastcgi, this is their ,htaccess file save yours and try this one may help.
Code: # Multiple Environment config, set this to development, staging or production What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
It didnt help. It looks like not FastCGI is the problem, but the sending headers OR content-type header twice by my application. It is strange because I logged it and locally it is only one request logged and indeed, in the production there are two requests (the first is correct and the second one is empty).
|
Welcome Guest, Not a member yet? Register Sign In |