Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a big problem: The comments on my theme does not work. I see only the following PHP errors:

Notice: Trying to get property of non-object in /var/www/hosts/dev.example.com/www/wp-includes/comment-template.php on line 209 Notice: Trying to get property of non-object in /var/www/hosts/dev.example.com/www/wp-includes/comment-template.php on line 209 Anonymous schreibt:
Notice: Trying to get property of non-object in /var/www/hosts/dev.example.com/www/wp-includes/comment-template.php on line 600
Notice: Trying to get property of non-object in /var/www/hosts/dev.example.com/www/wp-includes/comment-template.php on line 375 Notice: Trying to get property of non-object in /var/www/hosts/dev.example.com/www/wp-includes/comment-template.php on line 631 Uhr

what can i do?

share|improve this question
add comment

1 Answer

From quick look at code these seem all to be about trying to do something with comment object, returned by get_comment() function. However from this little information it is impossible to tell what goes wrong with it. Could be something about retrieveing comment from database, could be trying to retrieve comment by wrong ID, etc.

Have you tried switching theme (preferably to native Twenty Eleven) and checking if comments work there?

share|improve this answer
    
Hi Rarst! When i try it with TwentyTen Eleven, it works and with my theme it works not. –  hazelnut Aug 6 '11 at 17:22
    
@hazelnut then the issue is with your theme. Add theme's name to the question if it's publicly available. I am not sure from your wording is it your theme like you developed it or third party theme you are using. –  Rarst Aug 6 '11 at 17:32
    
Its i theme that i have developed. What infos do you need about it? –  hazelnut Aug 6 '11 at 17:57
    
@hazelnut source of comments.php (or however you have your related code organized)? When and how exactly you get those error messages? –  Rarst Aug 6 '11 at 18:00
    
I got this Error message under an Blogpost at the Comments Sections. Here is the Code: pastebin.com/wjsgdKRh –  hazelnut Aug 6 '11 at 18:03
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.