Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Deleting a discussion - Whoops! There was an error.

Another admin/moderator created two exact discussions and wanted to delete one. She had to run off, so I opt to do it.

When I do it, I get the "Whoops! There was an error." anyone have an idea?

I have verified my roles.

Thanks!

Comments

  • peregrineperegrine MVP
    edited December 2014

    all of your issues are most likely due to your rewrite rules. you can probably find many many more things that fail until you resolve that.

    http://vanillaforums.org/discussion/comment/221246/#Comment_221246

    http://vanillaforums.org/discussion/comment/221249/#Comment_221249

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • rotaechorotaecho Los Angeles New

    Okay the rewrites are gone per most the nginx examples, and I'm still getting the Opps error when deleting via the gear wheel. When I check-mark it and then click the "delete" that shows up at the bottom of the screen that works fine.

    When I use the gear, I don't see anything in my nginx error logs, but my access has:

    70.197.73.28 - - [10/Dec/2014:19:56:45 -0800] "GET /discussion/delete?discussionid=11&DeliveryType=VIEW HTTP/1.1" 400 1595 "http://www.somedomain.com/categories/sample" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25" "-"
    70.197.73.28 - - [10/Dec/2014:19:56:46 -0800] "POST /dashboard/notifications/inform HTTP/1.1" 200 122 "http://www.somedomain.com/categories/sample" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25" "-"

    Now to trace why I'm getting the 400. I'll have to debug later.

  • peregrineperegrine MVP
    edited December 2014

    try apache just for grins.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • rotaechorotaecho Los Angeles New
    edited December 2014

    @peregrine‌ I'll do some testing on Apache. I rather avoid Apache just because even when you trim it down all the way PHP is a real hog on it. I've used Apache longer, so I may have better results. The consensus though on this forum indicates nginx is the way to go.

  • the point is if you can make a simple switch to Apache and everything works correctly, then you can rule out anything in your vanilla setup and database structure, etc.

    and then you will know it is nginx. although it is probably nginx rules. without isolating we still don't know if it is some other factor.

    trim, substitute - debug rule out.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • rotaechorotaecho Los Angeles New

    @peregrine‌ sounds like a plan. I'll start on that tomorrow and go from there. Thanks for the help.

  • peregrineperegrine MVP
    edited December 2014

    @rotaecho said:
    Okay the rewrites are gone per most the nginx examples, and I'm still getting the Opps error when deleting via the gear wheel. When I check-mark it and then click the "delete" that shows up at the bottom of the screen that works fine.

    When I use the gear, I don't see anything in my nginx error logs, but my access has:

    70.197.73.28 - - [10/Dec/2014:19:56:45 -0800] "GET /discussion/delete?discussionid=11&DeliveryType=VIEW HTTP/1.1" 400 1595 "http://www.somedomain.com/categories/sample" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25" "-"
    70.197.73.28 - - [10/Dec/2014:19:56:46 -0800] "POST /dashboard/notifications/inform HTTP/1.1" 200 122 "http://www.somedomain.com/categories/sample" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25" "-"

    Now to trace why I'm getting the 400. I'll have to debug later.

    probably .....

    if you are not rewriting

    I would expect to see

    GET /vanilla/index.php?p=/discussion/delete&discussionid

    you probably have $Configuration['Garden']['RewriteUrls'] = TRUE;

    yet you are not rewriting with server rules.

    see:http://vanillaforums.org/discussion/comment/221289/#Comment_221289

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • R_JR_J Ex-Fanboy Munich Admin

    When you get that error no matter which discussion you delete, you might have a problem with some plugins. There are some SEO related plugins that cause that error. Please post a list of the plugins you are using or look up for any related errors to one of them.

  • rotaechorotaecho Los Angeles New
    edited December 2014

    @R_J‌ dude, that was totally it. nginx and apache had the same issue.

    After I just got a super small Apache (stripped down) + php-fpm + memcached setup based on @peregrine‌'s suggestion.

    Interesting memory values of the two. I actually got the footprint with apache smaller than nginx :) The php-fpm settings are stock.

    Apache
    VIRT RES
    79340 1784 httpd
    326m 30m php-fpm

    Nginx
    VIRT RES
    97720 6276 nginx
    385m 60m php-fpm

Sign In or Register to comment.