• Resolved seaturtlebean

    (@seaturtlebean)


    After someone clicks Post Comment on my 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)
  • 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

    (@seaturtlebean)

    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 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

    (@seaturtlebean)

    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/ 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.