• On our site, the “Allow Comments” status gets turned off for every post, periodically, seemingly at random.

    When I look at the DB, I see that comment_status has actually been set to ‘closed’ on every record. To reenable commenting, I run the following SQL command:

    UPDATE wp_posts p SET comment_status = ‘open’ WHERE comment_status = ‘closed’;

    Some time later, it could be a week, a month, or two days, the comment status will be changed to ‘closed’ again on every record. I have not been able to figure out what keeps causing this recurring problem. What action has the side-effect of touching the comment-status field on every post in the DB?

    Looking around on the forums, I see a number of posts that appear to be describing the same problem, but none with a resolution. If this problem is indeed this ubiquitous, I assume someone must have discovered the root cause.

    Can anyone help?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi irkab,

    It may be a plugin that is making the modifications, I’m not too sure. Out of curiosity, have you checked your server logs for wp-admin/options-discussion.php to see if anyone is making changes other than yourself?

    Thread Starter irkab

    (@irkab)

    Hi Kevin,

    Thanks for the quick reply. No-one is changing these settings before the bug hits, however, the bug does change the state of this page.
    Both:
    “Users must be registered and logged in to comment “
    and
    “Before a comment appears An administrator must always approve the comment “

    are checked by some unseen force. We uncheck them every time the bug manifests.

    So I don’t think it is user error.

    Thanks

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘All comments periodically disabled’ is closed to new replies.