[Solved] Bug? wpdiscuz.js Unexpected end of JSON  

  RSS

eliddon
(@eliddon)
Active Member
Joined: 1 month ago
Posts: 5
18/01/2019 9:35 pm  

When I post a comment, everything appears to work except I get an error in the console.

When I check the JSON that is sent back on the admin-ajax.php request it seems like the JSON is valid. Anyone else see this? I'm using the latest version of wordpress 5.0.3 and Genesis Theme Framework 2.8.

at JSON.parse (<anonymous>)
at Function.n.parseJSON (jquery.min.js:4)
at Object.<anonymous> (wpdiscuz.js?ver=5.3.1:370)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at y (jquery.min.js:4)
at XMLHttpRequest.c (jquery.min.js:4)


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 1 year ago
Posts: 1724
19/01/2019 1:39 pm  

Hi @eliddon,

This is a conflict with other plugins or with the active theme.

1. Please deactivate plugins one by one and check after each deactivation

2. Switch to some default theme and check again

Please keep cache plugins deactivated during this testing process. 


eliddon liked
ReplyQuote
eliddon
(@eliddon)
Active Member
Joined: 1 month ago
Posts: 5
19/01/2019 8:15 pm  

You were right. Thank you! Looks like another plugin was doing a call to the function comment_author_email instead of get_comment_author_email, which was causing extra output in the JSON being returned.

Thanks!


ReplyQuote
Share: