By Chris on Thursday, 09 March 2017
Posted in Technical Issues
Replies 18
Likes 0
Views 574
Votes 0
Ok, the mentioned problem with Syntax Error still exists. (Title)

A user was not able to post a comment and got a syntax error from the comment system. I tried to comment and also got an error. After I purged the site-cache, I could comment. So I guess it's still a caching problem ... I deactivated the captcha function right now because I guess it could still be something wrong with that and the sitechache ...

Hm, I'm a bit frustrated. When the comment function is not reliable, the tool is not useful for me and my users
Hm, it quite make sense it related with the cache issue, I've tried to temporary disabled with your Joomla cache system and the system cache plugin from backend, can you try add new comment then monitor and see whether this issue still persists?
·
Thursday, 09 March 2017 01:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I will do so... I had that in mind also to test, so I will test it. Thank you.
·
Thursday, 09 March 2017 03:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, just errors right now, I can not comment anything with any browser without getting a SyntaxError

Different errors:

> SyntaxError: JSON Parse error: Unexpected identifier "Invalid"
> SyntaxError: Unexpected token I in JSON at position 0
> SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
·
Thursday, 09 March 2017 03:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Next try:

- I reactivated the site cache.
- I deactivated the "JotCache" plugin.

... I have to test it further more, but it seems to work ...
·
Thursday, 09 March 2017 04:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Looking good so far. I guess, JotCache caused the problem ... I will try again tomorrow during the day an post the result.
·
Thursday, 09 March 2017 05:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright Chris, keep us updated then.
·
Thursday, 09 March 2017 09:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Looks like it's solved with disabling "jotCache". I tried several times and it was ok.

One point: Only in Safari on iPhone i still get an "Unexpected identifier "Invalid"" (Even with purged cache). In Chrome for iPhone/iOs it works. So maybe it's a safari / iPhone iOs problem. That's tolerable for me so far.
·
Thursday, 09 March 2017 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Chris,

I have just tested on your site with Safari and indeed it is actually a cache issue. Upon submitting the comment, the server is returning an error "Invalid token", http://take.ms/wReSH

This is often the case when you have some extensive caching performed on the front end which also caches the tokens on the page. To protect users from xss injections, most of Joomla forms has such tokens to prevent someone else fooling the user to perform actions.

If you hit this error in Komento, it is also most likely that you will hit this on other forms on the site.
·
Thursday, 09 March 2017 22:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks – Have you tested with Safari on iPhone or with normal Safari on Desktop? On Mac desktop it's no problem for me to comment in Safari so far ...
·
Thursday, 09 March 2017 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, just got "Invaild Token" in Firefox, too.

Back to start: I disabled the Joomla cache system and the system cache plugin. Seems to work.

Could you please have a check, too?
·
Friday, 10 March 2017 00:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Chris,

Thanks for getting back to me and I am sorry for the delay in my reply as I am occupied with development works. I tried accessing the site and posted a comment without any issues now, http://take.ms/AOgpl

Seems to be working fine.
·
Friday, 10 March 2017 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you... hope that everything will work from now on.
·
Friday, 10 March 2017 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright, keep us update then.
·
Saturday, 11 March 2017 11:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post