is it possible you have so much traffic that there is a timeout
when it fails - is the first post response OK.
when it fails....
maybe you can post the header and response if any of the the one or two jqueries it might give some insight and look at the reponse time. maybe it times out on first jquery.
also if you could look in log to see how many web page hits at that moment of time.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
my web traffic is not very high, my server load is down in the noise floor for two pieces of dedicated hardware.
"do you use stop autodraft, you might use that on the live site if you don't already" i have that enabled on the live site. the only thing that is currently enabled on the test site is the awards plugin and it's prereqs. everything else is disabled.
i posted the header information for good and bad posts on this discussion. I didnt find a smoking gun. the responses are all OK. I see no failures in the requests, no JS Errors, and no errors in the apache logs.
kind of tough to figure out an intermittent problem on your test site when the problem is not occurring. maybe when your test site has the issue again and is more constant you could post. I know I used to see duplicate comment boxes periodically on this vanilla forum and others in the past (I have slow connection and things were timing out). But don't recall the problem recently.
But you say it is malformed header (or whatever) and doesn't seem like a timing issue.
So what would cause it to be malformed (jquery and its libraries json, possibly other jqueries interfering) just rambling...
incoming inform message and notification???
are you still using the same version of php?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine said:
kind of tough to figure out an intermittent problem on your test site when the problem is not occurring. maybe when your test site has the issue again and is more constant you could post. I know I used to see duplicate comment boxes periodically on this vanilla forum and others in the past (I have slow connection and things were timing out). But don't recall the problem recently.
But you say it is malformed header (or whatever) and doesn't seem like a timing issue.
So what would cause it to be malformed (jquery and its libraries json, possibly other jqueries interfering) just rambling...
incoming inform message and notification???
are you still using the same version of php?
i've not changed my php version since setting up my ubuntu servers over a year ago.
unfortunately, since the issue does not happen "on-command" yet, it still is happening enough that my users are no longer participating on my site regularly, it puts me right back in the same spot. i need to move off of this platform before my forum is dead.
as far as malformed header - i dont know. i was grasping at straws. my best guess at this point is a malformed JSON response from the first comment interaction. but why, i dont know.
i'm sure that if someone had a deep DEEP understanding of the two post interactions and the whole mechanism for how the comments update in the data list, then they could isolate the problem pretty fast.
Unfortunately this is beyond my understanding of the mechanics of the framework. and digging in that deep seems like i'll be going well beyond the level of "DIY" I feel comfortable with on this software. i dont want to manage my own fork.
You said you experienced this problem with and without the badges and awards plugins enabled?
default comment sort order
nuking cookies seems to work sometimes for users experiencing the issue, but not always, I've not seen a pattern.
I've experienced it on two completely separate installs, prod and test. The test environment has Diego's Awards plugin running on it right now, I had the issue whether that was enable or not.
You posted one of the malformed request headers, IIRC.
Reading through the code, the only possible explanation I can see is the discussion/comment is getting unset, so a new comment form view gets rendered and inserted instead of the posted comment.
When this happens, does the comment appear in the db? Meaning, if you refresh the page when it happens, does your comment show?
If it were me, I would go to your live site and post announcement for people to be patient and that you are trying to get to root of the problem.
re-install vanilla 2.0.1.18.8 on live site since you say the problem exacerbates with vanilla 2.0.18.8. and disable any plugins that you may have installed in the past few months. And install stop autodraft.
then we can look at the problem if it is less intermittent.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@hgtonight said:
You posted one of the malformed request headers, IIRC.
Reading through the code, the only possible explanation I can see is the discussion/comment is getting unset, so a new comment form view gets rendered and inserted instead of the posted comment.
When this happens, does the comment appear in the db? Meaning, if you refresh the page when it happens, does your comment show?
no, hitting refresh shows that the content was not committed to the DB.
@peregrine said:
If it were me, I would go to your live site and post announcement for people to be patient and that you are trying to get to root of the problem.
re-install vanilla 2.0.1.18.8, since you say the problem exacerbates with vanilla 2.0.18.8
then we can look at the problem if it is less intermittent.
i'd rather set up a separate clone environment, upgrade to 18.8 and see if we get the issue there.
Comments
you can use
TUSER
tuser
its an admin account.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
I logged in added a bunch of comments, couldn't reproduce. deleted my comment.
searched around and saw you had some plugins enabled and other js.
do you use stop autodraft, you might use that on the live site if you don't already
here's what I saw on a good comment post.
{"Targets":[{"Target":"","Data":"\/vanilla\/post\/comment2\/19\/1","Type":"Ajax"}],"CommentID":"19","DraftID":"","MyDrafts":"My Drafts","CountDrafts":0,"FormSaved":true,"DeliveryType":"VIEW","Data":"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ICAgPGRpdiBjbGFzcz0iTWVzc2FnZSI+CgkJCXRlc3QJCTwvZGl2PgogICAgICAgICA8L2Rpdj4KPC9saT4K","InformMessages":[],"ErrorMessages":"","RedirectUrl":""}
two posts per post of comment
http://test1.homebrewforums.net/vanilla/post/comment/1
http://test1.homebrewforums.net/vanilla/post/comment2/22/1
is it possible you have so much traffic that there is a timeout
when it fails - is the first post response OK.
when it fails....
maybe you can post the header and response if any of the the one or two jqueries it might give some insight and look at the reponse time. maybe it times out on first jquery.
also if you could look in log to see how many web page hits at that moment of time.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
my web traffic is not very high, my server load is down in the noise floor for two pieces of dedicated hardware.
"do you use stop autodraft, you might use that on the live site if you don't already" i have that enabled on the live site. the only thing that is currently enabled on the test site is the awards plugin and it's prereqs. everything else is disabled.
i posted the header information for good and bad posts on this discussion. I didnt find a smoking gun. the responses are all OK. I see no failures in the requests, no JS Errors, and no errors in the apache logs.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
kind of tough to figure out an intermittent problem on your test site when the problem is not occurring. maybe when your test site has the issue again and is more constant you could post. I know I used to see duplicate comment boxes periodically on this vanilla forum and others in the past (I have slow connection and things were timing out). But don't recall the problem recently.
But you say it is malformed header (or whatever) and doesn't seem like a timing issue.
So what would cause it to be malformed (jquery and its libraries json, possibly other jqueries interfering) just rambling...
incoming inform message and notification???
are you still using the same version of php?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
and unfortunately, i dont know how to make it fail
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
i've not changed my php version since setting up my ubuntu servers over a year ago.
unfortunately, since the issue does not happen "on-command" yet, it still is happening enough that my users are no longer participating on my site regularly, it puts me right back in the same spot. i need to move off of this platform before my forum is dead.
as far as malformed header - i dont know. i was grasping at straws. my best guess at this point is a malformed JSON response from the first comment interaction. but why, i dont know.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
good luck! hope it gets resolved one way or other.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
i'm sure that if someone had a deep DEEP understanding of the two post interactions and the whole mechanism for how the comments update in the data list, then they could isolate the problem pretty fast.
Unfortunately this is beyond my understanding of the mechanics of the framework. and digging in that deep seems like i'll be going well beyond the level of "DIY" I feel comfortable with on this software. i dont want to manage my own fork.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
luck has nothing to do with it.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
I did some more digging.
What do you have as your comment sort order?
Have you nuked your cookies?
You said you experienced this problem with and without the badges and awards plugins enabled?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Double post!
Were you able to get a record of the malformed requests?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
default comment sort order
nuking cookies seems to work sometimes for users experiencing the issue, but not always, I've not seen a pattern.
I've experienced it on two completely separate installs, prod and test. The test environment has Diego's Awards plugin running on it right now, I had the issue whether that was enable or not.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
i thought i posted a malformed and a proper request in this thread. I'll go back and check
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
You posted one of the malformed request headers, IIRC.
Reading through the code, the only possible explanation I can see is the discussion/comment is getting unset, so a new comment form view gets rendered and inserted instead of the posted comment.
When this happens, does the comment appear in the db? Meaning, if you refresh the page when it happens, does your comment show?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
If it were me, I would go to your live site and post announcement for people to be patient and that you are trying to get to root of the problem.
re-install vanilla 2.0.1.18.8 on live site since you say the problem exacerbates with vanilla 2.0.18.8. and disable any plugins that you may have installed in the past few months. And install stop autodraft.
then we can look at the problem if it is less intermittent.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
no, hitting refresh shows that the content was not committed to the DB.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
so is the problem happening as we speak.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
i'd rather set up a separate clone environment, upgrade to 18.8 and see if we get the issue there.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
its happening again.
here'e the request header
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
here's the response:
{"FormSaved":true,"DeliveryType":"VIEW","Data":"PGRpdiBjbGFzcz0iTWVzc2FnZUZvcm0gQ29tbWVudEZvcm0iPgogICAgICA8ZGl2IGNsYXNzPSJUYWJzIENvbW1lbnRUYWJzIj4KICAgICAgPHVsPgogICAgICAgICA8bGkgY2xhc3M9IkFjdGl2ZSI+PGEgaHJlZj0iL3ZhbmlsbGEvcG9zdC9jb21tZW50LzEjIiBjbGFzcz0iV3JpdGVCdXR0b24gVGFiTGluayI+V3JpdGUgQ29tbWVudDwvYT48L2xpPgogICAgICAgICA8bGk+PGEgaHJlZj0iL3ZhbmlsbGEvcG9zdC9jb21tZW50LzEjIiBjbGFzcz0iUHJldmlld0J1dHRvbiBUYWJMaW5rIj5QcmV2aWV3PC9hPjwvbGk+CjxsaT48YSBocmVmPSIvdmFuaWxsYS9wb3N0L2NvbW1lbnQvMSMiIGNsYXNzPSJEcmFmdEJ1dHRvbiBUYWJMaW5rIj5TYXZlIERyYWZ0PC9hPjwvbGk+CiAgICAgIDwvdWw+CiAgIDwvZGl2PgogICA8Zm9ybSBpZD0iRm9ybV9Db21tZW50IiBtZXRob2Q9InBvc3QiIGFjdGlvbj0iL3ZhbmlsbGEvcG9zdC9jb21tZW50LzEiPgo8ZGl2Pgo8aW5wdXQgdHlwZT0iaGlkZGVuIiBpZD0iRm9ybV9UcmFuc2llbnRLZXkiIG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iAgICAgICAgICAgIDwvZGl2PgogICAgICAgICA8L2Rpdj4KICAgICAgICAgPGRpdiBjbGFzcz0iVXBsb2FkUHJvZ3Jlc3MiPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJGb3JlZ3JvdW5kIj48c3Ryb25nPlVwbG9hZGluZy4uLjwvc3Ryb25nPjwvZGl2PgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJCYWNrZ3JvdW5kIj4mbmJzcDs8L2Rpdj4KICAgICAgICAgICAgPGRpdj4mbmJzcDs8L2Rpdj4KICAgICAgICAgPC9kaXY+CiAgICAgIDwvZGl2PgogICA8L2Rpdj4KPC9kaXY+CjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KICAgaWYgKEdkblVwbG9hZGVycykKICAgICAgR2RuVXBsb2FkZXJzLlByZXBhcmUoKTsKPC9zY3JpcHQ+PGEgaHJlZj0iL2Rpc2N1c3Npb25zIiBjbGFzcz0iQmFjayI+QmFjayB0byBEaXNjdXNzaW9uczwvYT48aW5wdXQgdHlwZT0ic3VibWl0IiBpZD0iRm9ybV9Qb3N0Q29tbWVudCIgbmFtZT0iQ29tbWVudC9Qb3N0X0NvbW1lbnQiIHZhbHVlPSJQb3N0IENvbW1lbnQiIGNsYXNzPSJCdXR0b24gQ29tbWVudEJ1dHRvbiIgLz4KPC9kaXY+CjwvZGl2Pgo8L2Zvcm0+PC9kaXY+","InformMessages":[],"ErrorMessages":"","RedirectUrl":""}
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained