Notifications
Clear all

SyntaxError: Unexpected token h in JSON at position 0

11 Posts
4 Users
0 Reactions
4,385 Views
(@jaherrera)
New Member
Joined: 6 years ago
Posts: 2
Topic starter  

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
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4209
 

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)
New Member
Joined: 6 years ago
Posts: 2
Topic starter  

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
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6147
 

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)
Active Member
Joined: 6 years ago
Posts: 5
 

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)
Active Member
Joined: 6 years ago
Posts: 5
 

Me again,

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

 

A


   
ReplyQuote
(@awuja)
Active Member
Joined: 6 years ago
Posts: 5
 

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


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6147
 

Ho @awuja,

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


   
ReplyQuote
(@awuja)
Active Member
Joined: 6 years ago
Posts: 5

   
ReplyQuote
(@awuja)
Active Member
Joined: 6 years ago
Posts: 5
 

@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
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6147
 

Hi @awuja,

Please confirm that the issue is solved? 


   
ReplyQuote
Share:
Scroll to top