Title: Problem with WordPress Comments
Last modified: September 20, 2023

---

# Problem with WordPress Comments

 *  Resolved [Lisa](https://wordpress.org/support/users/funkycrunky/)
 * (@funkycrunky)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wordpress-comments/)
 * Hi all, I’ve been having an issue with my WordPress comments for several years.
   I thought the issue was theme specific, but I recently changed theme last month
   and the issue is still ongoing.
 * Whenever a user leaves a comment, they get an error and then have to re-type 
   their comment and submit again. However, both comments left come through to me
   for moderation.
 * It’s the same problem with admin commenting. I replied to a comment earlier and
   got the following error:
 * > There has been a critical error on this website. Learn more about troubleshooting
   > WordPress.
 * When I click submit again, the comment has already been successfully submitted
   so I get a ‘duplicate comment’ error.
 * As this has been going on for a long time now, I have updated WordPress numerous
   times without the error being fixed. I have no idea where to start to fix this
   issue.
 * If anyone has any idea on how to fix this, that would be much appreciated. Thanks
   in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wordpress-comments/#post-17066838)
 * Errors like this are logged. Check the error log on your server. If you can’t
   find the log, please contact your host.
 * Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/
   debug.log to see if anything gets logged there. [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 * You can also try this: Please attempt to disable all plugins, and use one of 
   the default (Twenty*) themes. If the problem goes away, enable them one by one
   to identify the source of your troubles.
 *  Thread Starter [Lisa](https://wordpress.org/support/users/funkycrunky/)
 * (@funkycrunky)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wordpress-comments/#post-17066863)
 * Thank you for responding so quickly. So I already have the error log enabled 
   somehow. This is the code from the error log.
 *     ```wp-block-code
       [20-Sep-2023 19:48:09 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_escape_string() in /home/sweettw2/public_html/wp-content/plugins/comment-reply-notification/comment-reply-notification.php:113
       Stack trace:
       #0 /home/sweettw2/public_html/wp-includes/class-wp-hook.php(312): comment_reply_notification->email(174657)
       #1 /home/sweettw2/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(174657, Array)
       #2 /home/sweettw2/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
       #3 /home/sweettw2/public_html/wp-includes/comment.php(2318): do_action('comment_post', 174657, 0, Array)
       #4 /home/sweettw2/public_html/wp-includes/comment.php(3670): wp_new_comment(Array, true)
       #5 /home/sweettw2/public_html/wp-comments-post.php(25): wp_handle_comment_submission(Array)
       #6 {main}
         thrown in /home/sweettw2/public_html/wp-content/plugins/comment-reply-notification/comment-reply-notification.php on line 113
       ```
   
 * It looks like the issue is the plugin. I disabled it and it looks like everything
   is working again now.
 * Thank you for pointing me in the right direction. I was expecting a battle to
   fix this. Who knew it was that easy! 😆
 * Thank you again.
    -  This reply was modified 2 years, 8 months ago by [Lisa](https://wordpress.org/support/users/funkycrunky/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with WordPress Comments’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Lisa](https://wordpress.org/support/users/funkycrunky/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/problem-with-wordpress-comments/#post-17066863)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
