Notifications
Clear all

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

3 Posts
2 Users
1 Reactions
2,139 Views
(@eliddon)
Active Member
Joined: 6 years ago
Posts: 5
Topic starter  

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)


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6193
 

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 reacted
ReplyQuote
(@eliddon)
Active Member
Joined: 6 years ago
Posts: 5
Topic starter  

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:
Scroll to top