AI Assistant
Notifications
Clear all

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

3 Posts
2 Users
1 Reactions
3,112 Views
(@eliddon)
Active Member
Joined: 7 years ago
Posts: 5
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#3407]

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: 8 years ago
Posts: 6646
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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: 7 years ago
Posts: 5
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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