Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK, I tried the default theme, and comments worked.

    I checked the code for popup comments in the default theme, and it was different!

    Instead of:
    $comments = get_approved_comments($id);

    There was:
    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");

    So I cut and paste and ended up with:
    //$comments = get_approved_comments($id);
    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");

    And guess what. It works!

    My only thought is that this could be related to the WordPress version. Note that I couldn’t install the lastest version via package in Ubuntu – because the latest version wasn’t in a package.

    I wonder if this explains your member’s problems, Doodlebee.

    Well, I can’t help, but I can say that I have the same problem with a different theme.

    Here’s what happens when I click the “comments”…

    Fatal error: Call to undefined function: get_approved_comments() in /usr/share/wordpress/wp-content/themes/nishita/comments-popup.php on line 38

    I am running Ubuntu Linux. WordPress was installed by package manager. The relevant code reads:

    $comments = get_approved_comments($id);

    I am using WordPress 1.5.2

    I echo doodlebee’s sentiment – please help…

Viewing 2 replies - 1 through 2 (of 2 total)