-
-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'content' of null
causes timestamp on post to duplicate for a few seconds
#1087
Comments
This code wouldn't erase the content but get it. For instance, |
@dav-is Oh, true, I forgot how Mithril props work. But still, this means that the JS is trying to get the composer's text after submitting the new post... with what purpose? |
The error indicates |
|
I believe duplicate timestamps is a complex Mithril diff algorithm bug (unrelated to the composer) and will hopefully be fixed with Mithril 1.0. @datitisev which line of code is that exactly? |
I managed to get the error again, although it is slightly different.
And that line is actually the My console is getting spammed, I have 600+ errors from this.
Let me try again to see what steps I took to break it. |
Is this solved? Because I'm facing this issue. |
@kajack Has it just occurred once or can you reproduce the error consistently? |
@datitisev Everytime I reply a post, it appears. I don't remember but somewhere ended in an endless loop creating over 1k errors of those. Any way to fix it or debug it? |
@kajack please post the output of php flarum info and confirm whether the steps to reproduce match with yours or there are differences. |
Okay, so basically.
|
@kajack Thanks for the reproduction info! @datitisev Strange... how can the |
@franzliedke Uh.... I haven't got the foggiest idea. And this might not be a bug anymore, I'm unable to reproduce with the steps I laid out. I'll try it with an older beta and the extensions provided in the PHP info above to see if I can reproduce it. It could've always been fixed but an extension may be now causing it with a slightly different stack trace. |
I couldn't find a recent occurrence in our Sentry logs, but that doesn't mean it doesn't happen. 😉 @kajack If it's not too much work, could you try to reproduce it on a) your forum, with all extensions disabled and b) on https://nightly.flarum.site/? That would help a lot! |
@askvortsov1 shouldn't this be added to the beta14 milestone, perhaps? Together with other recently closed issues, actually. |
Bug report
v0.1.0-beta.6
or maybedev-master
(it's Flarum Discuss)Error
Additional comments
I sent many posts to https://discuss.flarum.org/d/4458, and from time to time the timestamps on a few posts got duplicated, and then went back to their normal state. It happened three times, and when I checked the console, there were three errors there that were the same. The error itself can be found above.
It seems to be a bug with the composer itself... That position currently has
app.composer.component.content()
, which I'm guessing that's a Mithril prop and it's clearing the composer's text content.The text was updated successfully, but these errors were encountered: