• Resolved oscarcr

    (@oscarcr)


    I get this error while editing long wordpress posts:

    Request-URI Too Long
    The requested URL’s length exceeds the capacity limit for this server.

    Shorter posts are ok.

    I don´t understand why, my url is really short:
    http://www.mywebsite.com/wp-admin/post.php?post=22512&action=edit

    I tried deleting my browser cache but it didn´t solve the problem. I believe I use POST to transfer data to wordpress, not GET.
    What is wrong with my wordpress installation?

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Matt Knowles

    (@aestheticdesign)

    If you’re using pretty permalinks the URL includes the title of the post. I would guess that on the pages that have the problem you have really long post titles.

    You can edit the permalink while editing the post so this doesn’t happen.

    What you have for your permalink setting?

    Thread Starter oscarcr

    (@oscarcr)

    Matt Knowles,

    If you’re using pretty permalinks the URL includes the title of the post. I would guess that on the pages that have the problem you have really long post titles.
    No, the titles are short, I think. What is considered long?
    My permalinks are between 50 and 150 characters, is that a problem?

    What you have for your permalink setting?
    Day and name, like this: http://www.mywebsite.com/2015/04/01/sample-post/

    I have added LimitRequestLine 999999 to my apache2.conf file but the problem is still there but only for larger posts.

    When I edit a larger post and save, I get Request-URI Too Long. if I reload the post again only half of the post is saved. I have to go back to an earlier revision to recover the whole post again.

    Thank you for answering.

    Matt Knowles

    (@aestheticdesign)

    Have you tried disabling your plugins and switching themes to see if the problem goes away?

    The fact that you have earlier revisions of longer posts shows this problem showed up recently. Any new updates or plugins installed just before this started happening.

    It might help to share the URL to your site and a short post that worked and a long post you had trouble with.

    Thread Starter oscarcr

    (@oscarcr)

    Have you tried disabling your plugins and switching themes to see if the problem goes away?
    Yes, it is still there.

    The fact that you have earlier revisions of longer posts shows this problem showed up recently. Any new updates or plugins installed just before this started happening.
    I have had problems before but I have tried to save a post several times until it worked. Now it never works regardless of how many times I try to save the post.

    It might help to share the URL to your site and a short post that worked and a long post you had trouble with.
    Here is a long post that is not working:
    http://www.get-digital-help.com/2010/07/17/create-dependent-drop-down-lists-containing-unique-distinct-values-in-excel/
    Here is a post that works:
    http://www.get-digital-help.com/2015/02/19/find-numbers-closest-to-sum/

    I moved my wordpress site to a new vps (Ubuntu 14.04) last month but the problems continued nevertheless.

    The apache access.log returns this 414 http error:
    myip – – [01/Apr/2015:10:26:05 +0200] “ant%3B%7D%0D%0A+++%7D%0D%0A+++%0D%0A%3C% (truncated, 7099 characters total) 22%3E%3C%2Fa%3E%3Ca+class%3” 414 0 “-” “-“

    Thank you for your suggestions.

    Matt Knowles

    (@aestheticdesign)

    I would edit the permalink when you create pages with such long titles as “create-dependent-drop-down-lists-containing-unique-distinct-values-in-excel”.

    Even if that isn’t the source of the problem, and I believe it might be, such long URLs can cause other problems. For example, say you wanted to give this URL to someone over the phone, or they are having to type it in for some other reason. I’ve also had a problem with one site I maintain that provides links to other sites stored in a database, and some sites have ridiculously long URLs that wouldn’t fit in the field length I set up on the form and in the database, and I thought I had been very generous.

    Looking at the article, you have links in the content that have really long URL’s and those might be what’s causing the problem rather than the URL of the page your working on. Is it truncating the page at one of those links when it happens?

    For example this URL is way too long:

    http://www.get-digital-help.com/2010/07/17/2009/05/25/create-a-drop-down-list-containing-only-unique-distinct-alphabetically-sorted-text-values-using-excel-array-formula/

    I usually create my permalink structure so I don’t use the date structure in the URL. The above URL could just as well be:

    http://www.get-digital-help.com/drop-down-list-excel/

    The URL doesn’t need to contain the whole title. Google may also see such long URLs as an attempt at keyword stuffing and actually penalize you for it.

    Thread Starter oscarcr

    (@oscarcr)

    Matt Knowles

    Thank you for helping me out.

    I am not sure what I did but the problems are now gone.
    However I did not change the permalink structure or permalinks, it just works now.

    Thanks again.

    Thread Starter oscarcr

    (@oscarcr)

    resolved

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Request-URI Too Long’ is closed to new replies.