1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot Reproduce Draft saved after post creation

Discussion in 'Resolved Bug Reports' started by ge66, Sep 26, 2014.

  1. ge66

    ge66 Active Member

  2. Mike

    Mike XenForo Developer Staff Member

    The only way I could see this happening is if the draft save request fires before the reply button is clicked but actually saves itself after the reply. In this case, I don't think we can really do anything. Once the draft save has been sent, we can't really stop it. I would normally say that this should be rather unlikely; the reply process should be much more time consuming that the draft save request. (Previously, the draft could be written unexpectedly if the draft save request fired while waiting for the reply request to come back; that is what was prevented in the other bug report.)

    I can't see any other way for this to occur unless there's some broken JS. Can you confirm it here? Can you confirm it with add-ons disabled while using the default style? Can anyone else confirm this?
  3. ge66

    ge66 Active Member

    Some of my users says it happens to them most every day, but not all the time. As it doesn’t happen that often to me, it would be very difficult to turn of all add-ons and use default style, unfortunately.
    It can be broken JS or an add-on, is there any way to try to figure it out without turning them all off?
  4. Daniel Hood

    Daniel Hood Well-Known Member

    I haven't looked at the code to see if it's feasable but have you considered aborting the save-draft ajax request when the post reply button is clicked?

    This seems really odd, I've never had it happen. Granted I don't post that much but I post enough to where I feel I would have encountered this if it was that common. In theory it seems like something that would take incredible timing. Maybe you do have an add on that is affecting it although I'm not sure how that would happen. Maybe if you could post a list of your add ons?
  5. Mike

    Mike XenForo Developer Staff Member

    If the request has been made, it's likely to the server already. We set ignore_user_abort to help ensure consistency, so as soon as PHP has started, it won't stop.
    Daniel Hood likes this.

Share This Page