[resolved] All approved comments not loading (3 posts)

  1. Boba Fett Fan Club
    Posted 2 years ago #

    Recently, my install of Social drops all comments. This is a new problem, possibly coinciding with upgrading to the latest WordPress version.

    Viewing the source code shows a gap at <div id="social-tabs-comments"> and it's </div>, which is where have_comments() is used. No CSS issue here, nor is adding a new comment an issue.

    I've tested have_comments() and get_comments(), including get_comments($post->ID) and get_comments($args) with a proper $args array, and they all fail. I've also tried get_the_ID(), as used in the Social-provided comments.php file.

    However, using get_comments_number($post->ID) displays the correct number of approved comments, as validated by the WordPress back-end (e.g. Dashboard > Comments > Post).

    I've also turned on and off the plugin, and re-installed as well. No change.

    Here is an example which has 204 approved comments, yet none are displayed:

  2. Alex King
    Plugin Contributor

    Posted 2 years ago #

    If this works when you disable all plugins and enable an included twenty* theme, then it's most likely this is due to a plugin or theme conflict.

  3. Boba Fett Fan Club
    Posted 2 years ago #

    Thanks for taking a look, Alex. All of your work to the WordPress community over the years has been fantastic.

    I checked the custom theme against a pre-installed theme and eventually isolated the problem.

    Outside of a WordPress loop or function, if an external MySQL connection is opened and closed, the bottom half of "Social" just does not load:

    connect.php (simplified)
    $conn = mysql_connect($dbhost, $dbuser, $dbpass);
    if (!$conn) die ();


    We had this on a PHP include for an ad display.

    Only after pulling it, all of "Social" loads as expected.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.