Title: Catchable Error When Posting A Comment
Last modified: August 24, 2016

---

# Catchable Error When Posting A Comment

 *  Resolved [seaturtlebean](https://wordpress.org/support/users/seaturtlebean/)
 * (@seaturtlebean)
 * [11 years ago](https://wordpress.org/support/topic/catchable-error-when-posting-a-comment/)
 * After someone clicks Post Comment on my blog ([http://simplykellydesigns.com/blog](http://simplykellydesigns.com/blog)),
   this error is shown:
 * Catchable fatal error: Object of class WP_Error could not be converted to string
   in /home/seaturtlebean/simplykellydesigns.com/blog/wp-includes/formatting.php
   on line 766
 * The part of formatting.php it is referring to is the last line in this code:
 *     ```
       /**
        * Checks for invalid UTF8 in a string.
        *
        * @since 2.8.0
        *
        * @param string $string The text which is to be checked.
        * @param boolean $strip Optional. Whether to attempt to strip out invalid UTF8. Default is false.
        * @return string The checked text.
        */
       function wp_check_invalid_utf8( $string, $strip = false ) {
       	$string = (string) $string;
       ```
   
 * How do I find out where the error is that is causing this? The last comment I
   received was on Thursday and I don’t think I have updated anything since then.

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

 *  [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * (@laliz)
 * [11 years ago](https://wordpress.org/support/topic/catchable-error-when-posting-a-comment/#post-6112538)
 * try:
 * – deactivating all plugins to see if this resolves the issue? If this works, 
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the default theme to rule out any theme-specific problems?
 *  Thread Starter [seaturtlebean](https://wordpress.org/support/users/seaturtlebean/)
 * (@seaturtlebean)
 * [11 years ago](https://wordpress.org/support/topic/catchable-error-when-posting-a-comment/#post-6112548)
 * I had already tried deactivating all the plugins and it wasn’t a plugin issue.
   Just tried changing to the 2015 theme and still have the problem.
 * I think the error is in [http://simplykellydesigns.com/blog/wp-comments-post.php](http://simplykellydesigns.com/blog/wp-comments-post.php)
   because that is what it shows as the URL when it shows the error in the browser.
   I’m not sure how to isolate the problem beyond the file though.
 *  Thread Starter [seaturtlebean](https://wordpress.org/support/users/seaturtlebean/)
 * (@seaturtlebean)
 * [11 years ago](https://wordpress.org/support/topic/catchable-error-when-posting-a-comment/#post-6112575)
 * I did some more investigating and learned how to put my site into debug. That
   showed that there was an error in my database. I found this article on how to
   repair my database [http://www.maketecheasier.com/fix-corrupted-wordpress-database-2/](http://www.maketecheasier.com/fix-corrupted-wordpress-database-2/)
   and that worked!

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

The topic ‘Catchable Error When Posting A Comment’ is closed to new replies.

## Tags

 * [catchable error](https://wordpress.org/support/topic-tag/catchable-error/)
 * [formatting.php](https://wordpress.org/support/topic-tag/formatting-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [seaturtlebean](https://wordpress.org/support/users/seaturtlebean/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/catchable-error-when-posting-a-comment/#post-6112575)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
