• Resolved alexmarsh999

    (@alexmarsh999)


    I was alerted by someone on Twitter that my blog has stopped accepting comments.

    I checked and if I try to post a comment I get the following:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /www/sites/333/d7c/www.alexsarchives.org/web/wp-includes/formatting.php on line 1025

    Also, the number of comments for each post shows correctly for each post on the home page, and correctly for each post on the Posts overview screen in the admin area, but the comments don’t show at all on the Comments screen in the admin area or the individual Post screen (either on-site or in the admin area).

    The blog runs the Chronicle child theme (on Broadsheet) by Pro Theme Design.

    I’ve switched off all plug-ins and installed a default theme (I tried both Twenty 15 and Twenty 16) and the problem is still there. I’ve also reinstalled WP 4.4.2.

    I’m not an WP expert but it feels like it might be some form of lookup problem on the Comment table.

    As far as I know, everything was working fine before I installed WP4.4.2 and updated all plug-ins to the latest versions (last week). (Site is: https://www.alexsarchives.org)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – switching to the unedited default Theme (Twenty Sixteen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).

    Thread Starter alexmarsh999

    (@alexmarsh999)

    Yes, I’ve now tried that strategy again to make sure (switched off all plugins and switched to the clean default theme). The problem doesn’t go away.

    I’m not sure what else to try.

    Moderator t-p

    (@t-p)

    Try replacing this file with a fresh copy from a fresh download of WP:

    /wp-includes/formatting.php

    Thread Starter alexmarsh999

    (@alexmarsh999)

    Thanks for that suggestion.

    I’ve installed a fresh copy of the /wp-includes/formatting.php file and then gone back to the default theme/switched off all plugins. Unfortunately, I’m still getting the same error message.

    Thread Starter alexmarsh999

    (@alexmarsh999)

    I’ve now discovered that the problem wasn’t with any WordPress files as such, but with the underlying database. The comments table in the database had crashed and could not be auto-repaired. I had to manually repair it via phpMyAdmin and then it was up and running again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comments disappeared/comment function not operating’ is closed to new replies.