406 Not Acceptable Error with Wordpress

6 replies
  • WEB DESIGN
  • |
Myself and a friend that I have given a hosting account to, through a reseller service I have, are both having a error with Wordpress. Mine occurred when I activated a new theme, and I am not sure what caused his error. This is the context of the error below,

"Not Acceptable

An appropriate representation of the requested resource /wp-admin could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_bwlimited/1.4 Server at mydomain.ca Port 80"

Any thoughts ideas what might be causing this?

Thanks so much in advance!

Jeromy
#406 #acceptable #error #wordpress
  • Profile picture of the author Vanfenix
    Hi Jeromy,

    Open the .htaccess file in your blog root (ie. the folder which contains wp-includes) and add the line



    SecFilterEngine off


    This turns off the security filter. Note that this reduces the security of your server, as ModSecurity is put in place for a reason.


    Save it and try to publish the post that gave you the error – it should be fixed now. If this fix did not work for you, you may have to contact your web host.


    If you want a good host, let me know. I run my own firm and yes - We do give away free cookies with every website visit! :p
    Signature

    If you need a website, something cool, slick, and affordable - something with built in aweber, hosting included, extremely easy to use. Unlimited pages, Drag and drop functionality. E-mail me. vanfenix1 at gmail.com. || I'll set you up a site for 15 days to test out || Squeeze pages? no problem. Lightweight E-commerce? easy as pie. My Websites are not like you've ever seen. Try it today FREE!

    {{ DiscussionBoard.errors[3431969].message }}
    • Profile picture of the author Vanfenix
      Solution 2

      This is the solution that worked for me for my WordPress site. backup your '.htaccess' file if you have one in the 'public_html' directory. Open the '.htaccess' file with any text editor and observe the lines between the "# BEGIN WordPress" and "# END WordPress" tags. Make sure the lines look somewhat like the following. If not then update the file with the following content and upload it to the 'public_html' directory.
      # BEGIN WordPress
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      # END WordPress
      Signature

      If you need a website, something cool, slick, and affordable - something with built in aweber, hosting included, extremely easy to use. Unlimited pages, Drag and drop functionality. E-mail me. vanfenix1 at gmail.com. || I'll set you up a site for 15 days to test out || Squeeze pages? no problem. Lightweight E-commerce? easy as pie. My Websites are not like you've ever seen. Try it today FREE!

      {{ DiscussionBoard.errors[3431982].message }}
      • Profile picture of the author JeromyS
        Originally Posted by Vanfenix View Post

        Solution 2

        This is the solution that worked for me for my WordPress site. backup your '.htaccess' file if you have one in the 'public_html' directory. Open the '.htaccess' file with any text editor and observe the lines between the "# BEGIN WordPress" and "# END WordPress" tags. Make sure the lines look somewhat like the following. If not then update the file with the following content and upload it to the 'public_html' directory.
        # BEGIN WordPress
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
        </IfModule>
        # END WordPress
        I checked this, it appears ok, it does have an extra line though,
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
        </IfModule>

        Do you think that matters?

        Thanks,

        Jeromy
        {{ DiscussionBoard.errors[3432178].message }}
    • Profile picture of the author JeromyS
      Originally Posted by Vanfenix View Post

      Hi Jeromy,

      Open the .htaccess file in your blog root (ie. the folder which contains wp-includes) and add the line



      SecFilterEngine off


      This turns off the security filter. Note that this reduces the security of your server, as ModSecurity is put in place for a reason.


      Save it and try to publish the post that gave you the error - it should be fixed now. If this fix did not work for you, you may have to contact your web host.


      If you want a good host, let me know. I run my own firm and yes - We do give away free cookies with every website visit! :p
      I tried this too, with no luck. I think for my site I will just reinstall Wordpress? For my client, I will keep trying to figure this out. I have contacted the host I bought the reseller service from and am still waiting for their response.

      This is what is in the .htaccess file,

      # -FrontPage-

      IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

      <Limit GET POST>
      order deny,allow
      deny from all
      allow from all
      </Limit>
      <Limit PUT DELETE>
      order deny,allow
      deny from all
      </Limit>
      AuthName mydomain.ca
      AuthUserFile /home/mydomain/public_html/_vti_pvt/service.pwd
      AuthGroupFile /home/mydomain/public_html/_vti_pvt/service.grp

      Thank you again!

      Jeromy
      {{ DiscussionBoard.errors[3432225].message }}
      • Profile picture of the author whitsonp
        Hey Jerome,

        A friend of mine is having this same issue when editing a post with an image in it. He said it just started happening a few days back.

        Here is what I've tried to no avail:

        1. Installed WP 3.1 and tested to see if I could edit. Still same error.
        2. Re-installed WP 3.0.5 and tested. Still same error.
        3. Updated the WP Database and tested. Still same error.
        4. Uploaded new version of theme and tested. Still same error.
        5. Deactivated all plugins and tested. Still same error.
        6. Put Permalinks back to the default and tested. Still same error.
        7. Modified some options using an .htaccess file and tested (as noted above). Still same error.

        My friend is on a Linux server with apache. I believe it is something on the hosting companies server that is causing this issue. We will be getting in contact with them to resolve it.

        Thought I would share my experience for any others who are having this same problem.

        Patrick Whitson
        {{ DiscussionBoard.errors[3447058].message }}
  • Profile picture of the author JeromyS
    Hi Patrick,

    I think it is something to do with the hosting. Mod Security. I had my host deal with it, and it is now working for my client, but still not on my own domain. Luckily for me, I havn't any content on that domain, so I will just reinstall and hopefully will solve the problem. Please let me know how you make out and thanks for sharing your experience with this problem.
    Jeromy
    {{ DiscussionBoard.errors[3447542].message }}

Trending Topics