Comments does not work?

时间:2011-08-06 作者:hazelnut

我有一个大问题:关于我主题的评论不起作用。我只看到以下PHP错误:

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
我能做什么?

1 个回复
SO网友:Rarst

从快速查看的代码来看,这些似乎都是关于尝试对comment对象执行某些操作,由返回get_comment() 作用然而,从这一点信息来看,不可能知道它出了什么问题。可能是从数据库中检索注释,可能是试图用错误的ID检索注释,等等。

您是否尝试过切换主题(最好是原生的Twenty Eleven)并检查注释在那里是否有效?

结束

相关推荐

Custom comments

我正在尝试创建带有分页的自定义注释页面。我有非等级定制类型的“公寓”。它使URL类似于:/apartments/ - for acrhive /apartments/%id%/ - for post page /apartments/%id%/comments-page-X/ - for comments (X is some number) 如何创建页面/apartments/%id%/questions/ 征求意见?并删除/apartments/%id%/comments-p