Drupal “406 Not Acceptable” Error message

asked Feb 9, 2013 in Website Builder by DruNew (1,930 points)
Hi all..
I have a Drupal 7 website and when I try to submit a comment with sql syntax, I get the error message :
Not Acceptable
“An appropriate representation of the requested resource /site/ could not be found on this server.”
“404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”
Please note if the comment doesn’t have any sql syntax it works well with no error messages.

2 Answers

0 like 0 dislike
answered Feb 9, 2013 by RalphK (5,800 points)
This error is related to server security, I think it’s a server setting issue and a  Drupal  problem.  Try to track down what’s being sent as the trigger. If the sql code without code tags work then you can try writing a custom filter text that would parse for your custom tag then reformat the display content.
0 like 0 dislike
answered Feb 9, 2013 by randy999 (4,520 points)
check all your log files and look for a  mod_security or any host of other server  or security apps. These can sometimes cause errors on the side .  If you dont find anything in the logs, you might need to contact your webhost