framework icon indicating copy to clipboard operation
framework copied to clipboard

Flarum gets stuck when an edit is submitted after a subsequent reply is added

Open dcsjapan opened this issue 11 years ago • 4 comments

Here's something I've noticed a couple times since you disabled the editing of posts once a subsequent reply has been added to the discussion:

If you start to edit your post, but don't manage to submit it before someone else adds a reply to the same discussion, Flarum ends up getting stuck when you eventually try to submit the changes. It just sits there spinning, and it seems like the only way to get it unstuck is to leave the page. (I think it may time out after a while, but I haven't waited long enough to be sure.)

It seems like Flarum has noticed it's trying to update a post that can't be updated, but doesn't know what to do about it. It needs a way to check for this situation and exit it gracefully.

(At present, even when you leave the page to get it unstuck, you're left with a tab at the bottom of the window containing the unposted alterations. If possible, it might be a good idea to leave that in place, as in some cases the user may want/need to edit and submit the alterations as a new post.)

dcsjapan avatar Aug 08 '15 06:08 dcsjapan

~~I had reported this on the old sandbox, never came around to create a ticket for it~~ It was on Gitter, actually. The same behavior occurs if you start editing a topic/reply, and while doing it, the editing time expires. All you get is the spinning wheel, nothing else.

Fastidious avatar Aug 08 '15 14:08 Fastidious

I didn't notice that, since I've never waited quite that long to submit an edited post.

When the wheel is spinning because a subsequent reply was posted before submission, this is the error info I get (not sure if the top one is relevant):

[Error] TypeError: undefined is not an object (evaluating '$(e).offset().top') [Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (4068, line 0)

dcsjapan avatar Aug 08 '15 23:08 dcsjapan

Related to #118

tobyzerner avatar Aug 12 '15 01:08 tobyzerner

Merging into #118.

tobyzerner avatar Aug 27 '15 13:08 tobyzerner