Support » Plugin: Social » All approved comments not loading

  • Resolved Boba Fett Fan Club


    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:

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All approved comments not loading’ is closed to new replies.