The original comment box of the website can be displayed normally before the comment list is replaced at the top. However, an error is output after the comment box is at the top and the comment list is at the bottom.
The replacement position code is as follows
When it is not replaced, it is as follows. When submitted correctly, it displays as follows after clicking submit: The first comment at the top is the latest comment
The output error after replacing the position is as follows
The two complete codes below are attached for answers:
Friends, just ask questions about specific error messages. There are so many codes and it will take a long time to go through them. I hope there is a kind person with plenty of time who can help you