The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
AI Assistant
Console error when ...
 
Notifications
Clear all

Issue [Solved] Console error when editing comments in closed threads

6 Posts
2 Users
2 Reactions
142 Views
Posts: 9
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
(@accelera)
Active Member
Joined: 2 weeks ago
[#11572]

Hi guys,

I'm writing on behalf of my client (@doctorofcredit)

I found out that when a thread is closed for comments (using the native WordPress setting, see screenshot), editing any already published comment doesn't work. This is what happens:

  1. Close the comments section
  2. Edit a comment from the frontend:
  3. The console shows this error:
  4. And there's no way to edit the comment. Stays loading and shows a white box

We've tried disabling all plugins and it looks like it doesn't make a difference. Any idea what's happening? Let us know if you need any further info.

 

Thanks!


5 Replies
Asti
Posts: 8348
 Asti
Support
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
(@asti)
Illustrious Member
Joined: 9 years ago

Hi @accelera,

Thanks for reporting this issue in detail! This sounds like a frustrating blocker for your client. The fact that it happens specifically when comments are closed via WordPress's native setting is a key clue. When WordPress closes comments on a thread, it typically prevents new comments but should still allow comment authors to edit their own existing comments—so this behavior definitely seems like a bug.

Since you've already confirmed it's not a plugin conflict (by disabling all plugins), here are a few things worth investigating:

  • Check if there's a capability/permissions issue—make sure the user role has the edit_comment capability assigned
  • Look at your WordPress version and the plugin version you're using. Sometimes there are known compatibility issues between specific versions
  • Check if there are any custom code snippets or functions in your theme's functions.php that might be intercepting comment editing
  • Try temporarily switching to a default WordPress theme (like Twenty Twenty-Three) to rule out theme-specific conflicts

The white box and loading state suggests the AJAX request is failing silently. I'd recommend checking your browser's Network tab (in DevTools) when attempting to edit—that might reveal what the actual server response is. Also, check your WordPress error logs (usually in /wp-content/debug.log) to see if there are any PHP errors being logged during the edit attempt.

Have you had a chance to check the server-side error logs yet, or would you like guidance on how to enable WordPress debugging?

Please provide the direct URL where we can see the issue as well. 


Reply
Posts: 9
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
(@accelera)
Active Member
Joined: 2 weeks ago

Hi Asti/AI,

Thanks for your response.

1) Yes, the user role has the edit_comment capability assigned: I am an administrator.

2) The latest WP version (7.0.2) and wpDiscuz version (7.6.62) are installed. The issue still happens.

3) No custom code snippets are intercepting comment editing.

4) Yes, the same happens when Twenty Twenty-Five is enabled.

 

Regarding the AJAX request, an example of a payload is this one:

- action -> wpdEditComment
- commentId -> 2378050
- postId -> 249615
- wpdiscuz_nonce -> a23c1ad114
 
And the response is:
{
    "success": true,
    "data": {
        "html": "<div class='wpdiscuz-edit-form-wrap'><form id='wpdiscuz-edit-form'><div class='wpdiscuz-item wpdiscuz-textarea-wrap'>            <div id=\"wpd-editor-wraper-edit_2378050_2378029\" style=\"display: none;\">\r\n                <div id=\"wpd-editor-char-counter-edit_2378050_2378029\"\r\n                     class=\"wpd-editor-char-counter\"><\/div>\r\n                <label style=\"display: none;\" for=\"wc-textarea-edit_2378050_2378029\">Label<\/label>\r\n                <textarea id=\"wc-textarea-edit_2378050_2378029\" name=\"wc_comment\"\r\n                          class=\"wc_comment wpd-field\"><\/textarea>\r\n                <div id=\"wpd-editor-edit_2378050_2378029\"><\/div>\r\n                        <div id=\"wpd-editor-toolbar-edit_2378050_2378029\">\r\n                            <button title=\"Bold\"\r\n                        class=\"ql-bold\"  ><\/button>\r\n                                <button title=\"Italic\"\r\n                        class=\"ql-italic\"  ><\/button>\r\n                                <button title=\"Underline\"\r\n                        class=\"ql-underline\"  ><\/button>\r\n                                <button title=\"Strike\"\r\n                        class=\"ql-strike\"  ><\/button>\r\n                                <button title=\"Ordered List\"\r\n                        class=\"ql-list\" value='ordered' ><\/button>\r\n                                <button title=\"Unordered List\"\r\n                        class=\"ql-list\" value='bullet' ><\/button>\r\n                                <button title=\"Link\"\r\n                        class=\"ql-link\"  ><\/button>\r\n                            <div class=\"wpd-editor-buttons-right\">\r\n                            <\/div>\r\n        <\/div>\r\n                    <\/div>\r\n            <\/div><table class='form-table editcomment wpd-form-row'><tbody><\/tbody><\/table><input type='hidden' name='wpdiscuz_unique_id' value='2378050_2378029'><div class='wc_save_wrap'><input class='wc_cancel_edit wpd-second-button' type='button' value='Cancel'><input id='wpd-field-submit-edit_2378050_2378029' class='wc_save_edited_comment wpd-prim-button' type='submit' value='Save'><\/div><input type=\"hidden\" id=\"_wp_unfiltered_html_comment_disabled\" name=\"_wp_unfiltered_html_comment_disabled\" value=\"601d4ae713\" \/><script>\n(function(){if(window===window.parent){document.getElementById('_wp_unfiltered_html_comment_disabled').name='_wp_unfiltered_html_comment';}})();\n\/\/# sourceURL=wp_comment_form_unfiltered_html_nonce\n<\/script>\n<\/form><\/div>",
        "content": "<p>Why use the $400 link?<\/p><br>"
    }
}

And finally, regarding the WordPress error logs, there is no error there (yes, I activated the debug mode).

Looking forward to solving this.

Thanks,

 
 

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 9 years ago

Illustrious Member
Posts: 8348
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

@accelera 

This issue will be fixed in upcomming version of the wpDiscuz plugin. I'll update this topic once it's ready. 


Reply
Asti
Posts: 8348
 Asti
Support
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
(@asti)
Illustrious Member
Joined: 9 years ago

Hi @accelera,

The new version is ready. Please update wpDiscuz to the latest version (v7.6.63) and check again.

Please don't forget to clear all types of caches before testing.


Reply
Posts: 9
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
(@accelera)
Active Member
Joined: 2 weeks ago

Working, thank you Asti!


Reply