Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Attachment Comment Count

UserPost

3:13 pm
February 9, 2009


Kevin

Admin

posts 2402

21

Well, I'm still at a dead-end trying to reproduce this. Can you help by putting some temporary diagnostic code in wp-includes/post.php, in the function &get_post ?

The template function get_comments_number should be calling get_post for each video attachment. I need to know the result of the following call:

$_post = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1″, $post));

for one of the videos which is showing 0 comments inappropriately.

3:20 pm
February 9, 2009


metal450

Member

posts 159

22

What exactly should I be printing?  Simply trying to echo that $_post generates "Object of class stdClass could not be converted to string in /home/metal450/public_html/wordpress/wp-includes/post.php" :)

3:31 pm
February 9, 2009


Kevin

Admin

posts 2402

23

try echo( $_post->comment_count ); or print_r($_post);

3:43 pm
February 9, 2009


metal450

Member

posts 159

24

This seems to be fixed in RC9.  Sorry about that!


About the Agapetry forum

Currently Online:

12 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin