Title: blocko's Replies | WordPress.org

---

# blocko

  [  ](https://wordpress.org/support/users/blocko/)

 *   [Profile](https://wordpress.org/support/users/blocko/)
 *   [Topics Started](https://wordpress.org/support/users/blocko/topics/)
 *   [Replies Created](https://wordpress.org/support/users/blocko/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/blocko/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/blocko/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/blocko/engagements/)
 *   [Favorites](https://wordpress.org/support/users/blocko/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_approved_comments error](https://wordpress.org/support/topic/get_approved_comments-error/)
 *  [blocko](https://wordpress.org/support/users/blocko/)
 * (@blocko)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/get_approved_comments-error/#post-429446)
 * 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.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_approved_comments error](https://wordpress.org/support/topic/get_approved_comments-error/)
 *  [blocko](https://wordpress.org/support/users/blocko/)
 * (@blocko)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/get_approved_comments-error/#post-429445)
 * 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)