WordPress.org

Forums

Disqus Comment System
Error: Line 104 or comments.php (1 post)

  1. Douglas Karr
    Member
    Posted 2 years ago #

    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) {... }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.