WordPress.org

Support

Support » Reviews » Disqus Comment System » Error: Line 104 or comments.php

Error: Line 104 or comments.php

  • Douglas Karr

    @douglaskarr

    PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/disqus-comment-system/comments.php on line 104

    It doesn’t appear that the plugin properly captures an empty array. Recommend wrapping the foreach statement with:

    if(!empty($comments)) {
      foreach ($comments as $comment) {... }
    }

  • The topic ‘Error: Line 104 or comments.php’ is closed to new replies.
Skip to toolbar