Trying to get property of non-object in disqus.php on line 152
-
This notice appears on archive/category pages where there are no posts to show.
It happens in functiondsq_can_replace
, because it relies on the global$post
object which is not set when there are no posts to loop on.
A check likeif(!isset($post)) return false;
would solve the problem.
- The topic ‘Trying to get property of non-object in disqus.php on line 152’ is closed to new replies.