WordPress.org

Ready to get started?Download WordPress

Forums

Header and Footer
[resolved] 406 Not acceptable error (8 posts)

  1. bartk
    Member
    Posted 10 months ago #

    I've had a weird issue on my site the last few days - a blank page except for "Not acceptable" when trying to add text before a post using the Header & Footer plugin. Once the error occurs I become locked out of the admin area, getting this error on all admin pages, although the public facing pages are still all fine.

    Have spent hours trying to resolve it, but to cut a long story short it appears the cause is a cookie. I'm not savvy enough on the technical details to explain why, but anyone else experiencing this problem, if you delete the cookies for your WordPress domain from your browser, you should be able to get back into the admin area again. At least that did the trick for me.

    http://wordpress.org/extend/plugins/header-footer/

  2. Stefano Lissa
    Member
    Plugin Author

    Posted 10 months ago #

    Before saving move t another tab, like the seo tab or the general tab. If this solves your problem you have the mod_security installed on apache and it's badly configured. It is checking the cookies and it find the one storing the current tab believing it is a SQL injection.

    Ask the provider to correct the mod_security installation or configuration.

    If changing the tab does not solve the problem, let me know.

    [ Signature moderated. ]

  3. bartk
    Member
    Posted 9 months ago #

    Thanks Stefano, moving to another tab before saving did the trick.

    I also found deleting only the cookie "ui-tabs-1" allows access to the admin panel again after being locked out.

    The site is hosted at Arvixe. I will ask them to look at their mod_security configuration.

  4. Stefano Lissa
    Member
    Plugin Author

    Posted 9 months ago #

  5. Jacob Gotwals
    Member
    Posted 8 months ago #

    I just ran into this same problem last night. My hosting company is "A Small Orange". I did not know what was causing the problem, and it took four hours of working with my hosting company to get it all sorted out last night. I ended up restoring my site from backup. Then I discovered this thread this morning, which clarified the cause of the problem.

    Stefano, since jQuery will not be fixing this on their end, is there a way you can revise your plugin to prevent this issue from occurring?

  6. Stefano Lissa
    Member
    Plugin Author

    Posted 8 months ago #

    I'm renaming the tabs to help on this problem, but the problem is not by jquery or my plugin, is the configuration of the mod_security used by your provider.

    Anyway, when I finished to rename the tabs it should solve.

    Stefano.

  7. Jacob Gotwals
    Member
    Posted 8 months ago #

    Okay, great!

  8. Jacob Gotwals
    Member
    Posted 8 months ago #

    I just filed a bug report with owasp modsecurity also.

Reply

You must log in to post.

About this Plugin

About this Topic