PHP Server Side Scripting Forum

Before posting this post i have searched Werbmasterworld, but did not found any solution :( except explanation of error code, so i am putting my problem here.

My site was running fine yesterday, and today suddenly it is flashing Http 406 error message. I did not make any changes in code today, i am not able to trap what's the issue. Can any one please help me in solving this issue.

406 error message is appearing in alert box so i guess error is coming in any ajax file.

The accept range of headers are sent by your browser to tell the server what your browser can accept. So to look at these and the returned Content headers you would need a tool to look at the raw http headers. If you use Firefox then there is an extension called liveheaders that lets you look at these.

As you may find that when you look at the Content- headers returned by the page giving you the 406 that there is something wrong...like someone misspells and puts Content-Type: text/hmtl - as opposed to text/html. As your browser didnt ask for any text/hmtl you get a 406 error. It may not be that simple, but it is worth checking.

Thanks PHP_Chimp i will check it, One point i was thinking, it can be problem of mod_security = on? as i am on shared server i am not able to change it's value. I have tried to change it using htaccess but still value of mod_security is not changed.