By Claudino Carvalho on Wednesday, 11 April 2018
Posted in General Issues
Likes 0
Views 657
Votes 0
Good morning,

I'm having a problem on portugoal.net site in which registered users can post comments, but when a Guest tries to post it returns the following error: "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"

Can you check this? please.

Thank you!
Claudino
It seems like it return invalid token when the user submit a new comment on the site.

I found out these 2 cache system caused the comment form token, so system unable to allow user to submit comment because every time when the user trying to submit a new comment, it will use the same token.

You can refer on my attached screenshot below what cache setting i disabled.

Can you give it a check is it work fine now?
·
Wednesday, 11 April 2018 19:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Arlex,

Seems ok now! We need to keep checking, as this problem tends to appear from time to time and we don't understand why, but thank you so much for your help!, this might do it

kind regards,
Claudino
·
Wednesday, 11 April 2018 21:18
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Wednesday, 11 April 2018 23:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post