SyntaxError: Unexpected token h in JSON at position 0  

  RSS

jaherrera
(@jaherrera)
New Member
Joined: 5 months ago
Posts: 2
12/01/2019 11:30 pm  

Hi dear.

I like very much wpdiscuz, but the only problem I arise in the instalation in my site is that each time I reply a post I get the error message "SyntaxError: Unexpected token h in JSON at position 0"

where 'h' is the first letter of the comment box

Any idea how to fix that?

thanks in advance.

Juan.

Error snapshot

Error snapshot


Quote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2923
13/01/2019 3:07 pm  

Hi @jaherrera,

This is a plugin conflict. Some plugin generates error in server and affects all other plugins AJAX requests. You can find it by disabling all and checking wpDiscuz.

Also please leave your website URL to allow us debug the error.


ReplyQuote
jaherrera
(@jaherrera)
New Member
Joined: 5 months ago
Posts: 2
19/01/2019 3:05 am  

thanks for your quickly response.

I followed your advice. I deactivate almost all the plugins but It continues running bad. It's a pity because the rest of features are fantastic

I leave the url : https/www.sigueimaginando.com


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 2631
19/01/2019 5:00 pm  

Hi @jaherrera,

Please switch to some default theme and check again. If you use some cache plugins, please keep those plugins deactivated during this testing.


ReplyQuote
awuja
(@awuja)
Active Member
Joined: 2 months ago
Posts: 5
12/04/2019 11:29 pm  

Hey, I'm also having a similar problem at www.leadingcomment.com

SyntaxError: Unexpected token * in JSON at position 0
at JSON.parse (<anonymous>)
at Function.n.parseJSON (jquery.js:4)
at Function.a.parseJSON (jquery-migrate.min.js:2)
at Object.<anonymous> (wpdiscuz.js:816)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at y (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)

 

Can you help?

 

Thanks,

A


ReplyQuote
awuja
(@awuja)
Active Member
Joined: 2 months ago
Posts: 5
12/04/2019 11:43 pm  

Me again,

This is a conflict with AntiSpam by CleanTalk, I think on the POST events that go through?

 

A


ReplyQuote
awuja
(@awuja)
Active Member
Joined: 2 months ago
Posts: 5
12/04/2019 11:56 pm  

Now I'm getting wpdiscuz-ajax.php net::ERR_CONNECTION_CLOSED after a few mins on the page.


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 2631
13/04/2019 11:01 am  

Ho @awuja,

Please leave some example URL to allow us to check it. 


ReplyQuote
awuja
(@awuja)
Active Member
Joined: 2 months ago
Posts: 5

ReplyQuote
awuja
(@awuja)
Active Member
Joined: 2 months ago
Posts: 5
13/04/2019 2:45 pm  

@astghik

I'v reduce the refresh rate from 10 seconds to 30 and that seems to have worked- I think I'll need to pay more for hosting to support the number of requests.

Thanks,

A


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 2631
15/04/2019 11:58 am  

Hi @awuja,

Please confirm that the issue is solved? 


ReplyQuote
Share: