WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] "400 Bad Request", header field & cookies??? (17 posts)

  1. dscottangle
    Member
    Posted 11 months ago #

    1st off: Thanks for putting out a great plugin. It is so helpful I just had to go premium...!

    Issue at hand: When a user votes on several images at the same time (using stars) and then tries to go to the next page a 'Bad Request' screen (see below) is coming up and completely locking the site down to that browser (testing in FireFox).

    Cleared the browser cache, but that didn't work.

    At the moment there aren't (are not) any caching plugins or code active, as I'm developing on a local environment...

    --::--

    In reference to an earlier post, I thought it might be an ajax issue (still may be), so I went looking for the "<!-- this is a comment -->" marker mentioned, but I couldn't find it (!!). Did I delete it in a fury of indelicate hacking (??) - it happens - , but then I re-downloaded both the free and premium files to search for the marker and can't find it anywhere in those, so I don't have a clue... (as if you couldn't tell).

    --::--

    Bad Request page:

    Bad Request
    
    Your browser sent a request that this server could not understand.
    Size of a request header field exceeds server limit.
    
    Cookie: nggv_vote_10_0=voteDetails%255B10%255D%255B0%255D%255Bpid%255D%3D10%26amp%3BvoteDetails%255B10%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B10%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_444_0=voteDetails%255B444%255D%255B0%255D%255Bpid%255D%3D444%26amp%3BvoteDetails%255B444%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B444%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_439_0=voteDetails%255B439%255D%255B0%255D%255Bpid%255D%3D439%26amp%3BvoteDetails%255B439%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B439%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_429_0=voteDetails%255B429%255D%255B0%255D%255Bpid%255D%3D429%26amp%3BvoteDetails%255B429%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B429%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_254_0=voteDetails%255B254%255D%255B0%255D%255Bpid%255D%3D254%26amp%3BvoteDetails%255B254%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B254%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_255_0=voteDetails%255B255%255D%255B0%255D%255Bpid%255D%3D255%26amp%3BvoteDetails%255B255%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B255%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_266_0=voteDetails%255B266%255D%255B0%255D%255Bpid%255D%3D266%26amp%3BvoteDetails%255B266%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B266%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_308_0=voteDetails%255B308%255D%255B0%255D%255Bpid%255D%3D308%26amp%3BvoteDetails%255B308%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B308%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_309_0=voteDetails%255B309%255D%255B0%255D%255Bpid%255D%3D309%26amp%3BvoteDetails%255B309%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B309%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_313_0=voteDetails%255B313%255D%255B0%255D%255Bpid%255D%3D313%26amp%3BvoteDetails%255B313%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B313%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_307_0=voteDetails%255B307%255D%255B0%255D%255Bpid%255D%3D307%26amp%3BvoteDetails%255B307%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B307%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_541_0=voteDetails%255B541%255D%255B0%255D%255Bpid%255D%3D541%26amp%3BvoteDetails%255B541%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B541%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_554_0=voteDetails%255B554%255D%255B0%255D%255Bpid%255D%3D554%26amp%3BvoteDetails%255B554%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B554%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_321_0=voteDetails%255B321%255D%255B0%255D%255Bpid%255D%3D321%26amp%3BvoteDetails%255B321%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B321%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_329_0=voteDetails%255B329%255D%255B0%255D%255Bpid%255D%3D329%26amp%3BvoteDetails%255B329%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B329%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_531_0=voteDetails%255B531%255D%255B0%255D%255Bpid%255D%3D531%26amp%3BvoteDetails%255B531%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B531%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_527_0=voteDetails%255B527%255D%255B0%255D%255Bpid%255D%3D527%26amp%3BvoteDetails%255B527%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B527%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_339_0=voteDetails%255B339%255D%255B0%255D%255Bpid%255D%3D339%26amp%3BvoteDetails%255B339%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B339%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_532_0=voteDetails%255B532%255D%255B0%255D%255Bpid%255D%3D532%26amp%3BvoteDetails%255B532%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B532%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_525_0=voteDetails%255B525%255D%255B0%255D%255Bpid%255D%3D525%26amp%3BvoteDetails%255B525%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B525%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_341_0=voteDetails%255B341%255D%255B0%255D%255Bpid%255D%3D341%26amp%3BvoteDetails%255B341%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B341%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_535_0=voteDetails%255B535%255D%255B0%255D%255Bpid%255D%3D535%26amp%3BvoteDetails%255B535%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B535%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_468_0=voteDetails%255B468%255D%255B0%255D%255Bpid%255D%3D468%26amp%3BvoteDetails%255B468%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B468%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_478_0=voteDetails%255B478%255D%255B0%255D%255Bpid%255D%3D478%26amp%3BvoteDetails%255B478%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B478%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_483_0=voteDetails%255B483%255D%255B0%255D%255Bpid%255D%3D483%26amp%3BvoteDetails%255B483%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B483%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_473_0=voteDetails%255B473%255D%255B0%255D%255Bpid%255D%3D473%26amp%3BvoteDetails%255B473%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B473%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_474_0=voteDetails%255B474%255D%255B0%255D%255Bpid%255D%3D474%26amp%3BvoteDetails%255B474%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B474%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_472_0=voteDetails%255B472%255D%255B0%255D%255Bpid%255D%3D472%26amp%3BvoteDetails%255B472%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B472%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_498_0=voteDetails%255B498%255D%255B0%255D%255Bpid%255D%3D498%26amp%3BvoteDetails%255B498%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B498%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_502_0=voteDetails%255B502%255D%255B0%255D%255Bpid%255D%3D502%26amp%3BvoteDetails%255B502%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B502%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_506_0=voteDetails%255B506%255D%255B0%255D%255Bpid%255D%3D506%26amp%3BvoteDetails%255B506%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B506%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_500_0=voteDetails%255B500%255D%255B0%255D%255Bpid%255D%3D500%26amp%3BvoteDetails%255B500%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B500%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_351_0=voteDetails%255B351%255D%255B0%255D%255Bpid%255D%3D351%26amp%3BvoteDetails%255B351%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B351%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_356_0=voteDetails%255B356%255D%255B0%255D%255Bpid%255D%3D356%26amp%3BvoteDetails%255B356%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B356%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_350_0=voteDetails%255B350%255D%255B0%255D%255Bpid%255D%3D350%26amp%3BvoteDetails%255B350%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B350%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_363_0=voteDetails%255B363%255D%255B0%255D%255Bpid%255D%3D363%26amp%3BvoteDetails%255B363%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B363%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_348_0=voteDetails%255B348%255D%255B0%255D%255Bpid%255D%3D348%26amp%3BvoteDetails%255B348%255D%255B0%255D%255Bcriteria_id%255D%3D0%26amp%3BvoteDetails%255B348%255D%255B0%255D%255Bresult%255D%3D1; nggv_vote_378_0=voteDetails%255B378%255D%255B0%255D%255Bpid%255D%3D378%26amp%3BvoteDetails%255B378%255D%255B0%255D%255Bcriteria_id%255D%
    
    Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 Server at localhost Port 80

    Any help will be greatly appreciate (big, HUGE) :~)

    P.S. The error page mentions Cookies. The 'use cookies' box isn't (is not) ticked...

  2. dscottangle
    Member
    Posted 11 months ago #

    Okay, I was able to get the site working with FF again by clearing out the Recent History, but obviously this isn't something I want to happen with my users. (i.e. read: what have I done wrong to cause this mess?) :~)

    Happy Times...

  3. shauno
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Scott

    The voting plugin creates the cookies even if you don't have the setting. This is so if you later change to the cookie setting, there is less chance of duplicate votes etc.

    I think the error you got might have been an issue with a cookie getting corrupt. I don't know how that would have happened exactly, but I wouldn't worry about it unless you can replicate it. Perhaps it's something do with running on your localhost, which would have less resources than a full scale server.
    I would clear your cache (which you did), and your cookies. Then restart the browser.

    If you can make this happen again, then let me know. I am in the process of re-working some of the code that catches the ajax vote, so I will keep in mind to look into more optimizations with it.

  4. dscottangle
    Member
    Posted 11 months ago #

    Thanks Shaun,

    I can get it to happen fairly consistently. However, you may be perfectly correct with it being a local dev issue.

    To recreate, 'all' I need to do is:

    1. Open a few different galleries in separate tabs
    2. Vote on several images on the first tab
    3. Move to second tab and vote on several images
    4. Repeat above step until all opened tabs have been gone through
  5. shauno
    Member
    Plugin Author

    Posted 11 months ago #

    I did a little research, and it seems the problem is the size of the cookies being generated. Every time you vote, the plugin is saving a cookie for that vote. Apache has a size limit the headers can become, and the cookies are filling up that space.

    I will re-think the idea of saving cookies for every vote regardless of the setting. I also need to re-think what I store in the cookie. I should be able to optimize the cookies to reduce their size, but unfortunately that wouldn't be backwards compatible with older versions.

    I will do some tinkering, and see what the best course of action is.

  6. dscottangle
    Member
    Posted 11 months ago #

    You are a total star!!! Thanks for everything... well... regarding NextGen Voting... :~)

  7. Friso
    Member
    Posted 6 months ago #

    Same here... Bad request after selecting some images to batch rotate. After a few images, it stops rotating and throws this error...

  8. Friso
    Member
    Posted 6 months ago #

    Turns out that this also happens when I manually rotate the images by clicking the Rotate link in the Manage Galleries screen. Apparently, Nextgen is creating so many cookies that the request header max size is exceeded...

    Bad Request

    Your browser sent a request that this server could not understand.
    Size of a request header field exceeds server limit.

    Cookie

    /n

    When investigating the cookies, it turns out that the following cookies are created...

    X-Frame-Events_c3c146d9fb171ddc464b92f32dc37372: pHGi1Hw9zDNS_QUh--ZBfRWrrsMKSb44g_qQNaEctiIY95-OlC2Z_rUy69_x2p-AXLGW2hztRCngo4F4l64YOBuaAMdsYTWk-XhwrHvjK_pJZqXlx9N5X6rOf4ap36YBP0H2OTZ_S6mOjSAyuLX4OJhmoN6S2Ue89OulgxRpj8l9gmgJQf8a6pBf5EH4IaDT3k6A7kojK7ObanABh8-VxPdTtL53sHbn7DKl4IbMeHtnRkjmfjKfAHcAlf8BESgPXz_BF1Xe99FHQYKyKzHgBz8o6R8o2NQFGwNDAzeEf3PlkQ7BrcpFzVR8GEKoW2MT3oVscQU7xXiNuuUSYCUUN5uLxVcNd94qiihBZQyu-mJ0iROzvDOMLSzb63tWZ1pcfM_yS7Do2JKM7kK3zHXTTWgUlIGm2Z68jJV9Ue9HgJJ4FdTr1P40Ec1SqHuGRIdsEZLfWPGGqYlSBsFxEwYtGskBpYZtepcWnEFuZtX19l8TYBQr3SyhpAEIWk-lkGaPpfAwhHyG_h8W0_5sBoxNB_u9CFE8sLDBdFk-iVLgT8YzdIRGgUeG-7ZV9vY56XaAu-tjpHNRXubf0HaeACAWGO_TZ47srg0TwDNyloWuJ0tdXfAqj7wTnIWo4jrzfIK2PGQNMdCLaMOILfU5UIVh7b8RWWv9D2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2H-ZfC1HZmx9WXUth8kTFv1AzjJmWybi-7d4MzIGKl7mcAhEjCusLUi_ukWH4lj04Wi8HncFy9awkHbF3DQJQIpBMlRcmamC0pawTVr4C_NGsPrAzm5Ik4v_34LssU8PO32E2NzaYbBjwYzzt3dshGdhOSWeAtStWd1anWAaRTcE2HZTT0MvmozYIKpm1Pfa_k3E16g0Shi5uggTf0ufqnHTH7JQr258fJhTQ8CiUb5oGV60BM6InXJEtuo8cEW-_Ce56gd3uoWPmEIfq-HE6itPx74QIOE6hewQoDs_VICWNWATWt-MKbZqjQRzUx5Aij6qMkIUEehlkZp-vrViuTDZkkU6EYiNzDogDvO8W55w6EcyJUR7CHh_ieg_MfsCb9qGUvXJS84MqrdKkOmKzDzJ8gmg77yXkexv6nEstEkeutts5hezbciPDoJygCcUU0i-fodUWrmYQDo_6U-ap4Qy-K3A5TfeJKGUewRDeu2Yr-W8cijAoTmmbCx8XVEo0neIbik5dClxMNvDe4o_RpeuKNjM90Ry2kPKP0xRPMBVQ8aoVFw1RHq49My9jATjYPYBg8pyyyBZY4nnzLkAiCUqKGBy50PkYDw1H0SJOh4Ho4nXMXwuYUTiunt0DY8e2bMauq1bUKkrVVK6K9sZNpajPTYmcJ8Avx7qUbMAq6ZqKwROaJZL4MCrbwcUX26czgrBOguFxIxN0_wna4iJYKKsoE0Pe1hs40UkVxiA5wKTo4I_pYPBZc4cln6TzRjcUE-ybWtdYY1pPE58pAflivM2hdFFqQW3CmUabGNHppvQhd9H_c3hcXf_0zK8-qydRNAOjDLcN8iD4tpApRtludEcwjXYHl6Fs3VPe8ExwLXwTpcohG80Qlzqa9mCdYQfqa4uaBRN-ph

  9. shauno
    Member
    Plugin Author

    Posted 6 months ago #

    NGG Voting (if Premium is installed and activated) will store a cookie for each vote. The cookies are very small, and shouldn't create a problem even with 100s of votes, unless you hosting has terrible small header size allowance.

    The 'X-Frame-Events' cookie isn't from the Voting plugin, but seems to be from NGG itself. Disable NGG Voting and see if you still have the problem.

  10. sternhagel
    Member
    Posted 5 months ago #

    Same problem here with NGG Voting Premium.

    As soon as I have 30 nggv_vote_* cookies, every request to the site gets "400 Bad Request". When I delete one cookie to have only 29 it's fine again.

    It's a bit weird, as the cookies are really small indeed, so the total number of bytes in the header shouldn't be the problem. But I'll check with my hoster about the maximum Apache header size setting.

  11. shauno
    Member
    Plugin Author

    Posted 5 months ago #

    Hi sternhagel

    That definitely sounds like the cookies are exceeding Apache's limit. As you've said, the cookies aren't very big, so the best bet is to try increase Apache's limit. I did look into decreasing the limit, or not setting the cookie if the option isn't being used, but it turned out no to be simple with the way they were used in the system.

    Sorry there's not much more I can do for now, you will need to get the Apache size increased

  12. sternhagel
    Member
    Posted 5 months ago #

    @shauno: thanks for your answer.

    For now I could solve the issue by raising the maximum size of request fields for Apache.

    So for anyone having the same problem, try putting something like this in your Apache config:

    LimitRequestFieldSize 65536

    Default setting is usually 8190, and that seems to be not enough.

  13. shauno
    Member
    Plugin Author

    Posted 5 months ago #

    Thanks for posting a solution, that could really help people with hosts that allow that :)

  14. PaulMighty
    Member
    Posted 2 weeks ago #

    I respectfully disagree that this is a viable solution—updating Apache config is not an option for sites hosted in a shared environment where access to the server config is not available.

    -PaulMighty

  15. shauno
    Member
    Plugin Author

    Posted 2 weeks ago #

    @PaulMighty: Then you need to upgrade your hosting.

    I wish my Kia could do 200mph, but it can't. If that's a requirement of mine, I must spend the money and get a Ferrari.

  16. PaulMighty
    Member
    Posted 2 weeks ago #

    @shauno: not sure I agree with that comparison as it relates to the issue.

    If the bug can't be fixed due to lack of time or resources, please update your plugin description and documentation to state that it is incompatible with shared hosting. I mean, it CRASHES the entire site without warning and without a fallback or explicit debug info. I'm sure you care about the people using your plugin—you actively supporting it here (kudos)—so I expect you're not wanting to crash somebody's site, leaving them high and dry. When you post a plugin for public download, you're asking people to trust your work and you don't seem like the type that would want to betray that trust.

    Cheers,
    -PaulMighty

  17. shauno
    Member
    Plugin Author

    Posted 2 weeks ago #

    It doesn't crash the site, the site just rejects requests from browsers with too many cookies. If you open a different browser or use a different computer, you will see the site is still running fine.

    All browsers send all the cookies in the header of every request.
    All hosting have a certain limit to how big those headers can be.
    Those 2 things I have no control over.

    I'm not trying to be defensive or argumentative, I just don't see a more viable solution than upgrading your hosting.

    I would concede that maybe the cookies shouldn't be saved unless you implicitly set that option, but there is a reason for that functionality. If you decide to change to 'cookie' only checking at any point, users that have voted already won't be able to vote again.

    I welcome suggestions.

    PS, I do take pride in the amount of support I offer even my free plugins. So if you feel this is a big enough issue and that you would like a refund, I completely understand. Please email me your PayPal details to shaunalberts AT gmail DOT com and I will refund you.

Reply

You must log in to post.

About this Plugin

About this Topic