1

Topic: 406 Error When Editing Profile

I am trying to mod one of my members but when I try to save their changes i get

Not Acceptable
An appropriate representation of the requested resource /profile.php could not be found on this server.

I have re-uploaded it twice and still same error. I go into the users profile set status to Moderator hit Save but it gives me that

2

Re: 406 Error When Editing Profile

Talk to your host smile

Re: 406 Error When Editing Profile

That's mod_security using an old, out-dated ruleset which incorrectly stops PunBB from working. As Elzard said, talk to your host about it

4 (edited by Roeland 2007-09-10 16:21)

Re: 406 Error When Editing Profile

With trying with DOM inspector in firefox I found out that changing the action attribute of the form element solves the problem: remove "&action=foo". I don't know why, but it works.

before: "path/to/forum/profile.php?section=admin&id=35&action=foo"
after: "path/to/forum/profile.php?section=admin&id=35"

implementation in Greasemonkey:

// ==UserScript==
// @name           solve 406 error on punbb
// @namespace      personal
// @description    deletes "action=foo"
// @include        path/to/forum/profile.php?section=admin*
// ==/UserScript==

(function() {
    //remove "&action=foo"
    var form = document.getElementById('profile7');
    if (form){
        form.action = form.action.replace("&action=foo", "");
    }
})();

Re: 406 Error When Editing Profile

Moved to Troubleshooting
It's a known problem caused by an old, outdated, incorrect mod_security ruleset. Not a bug.