• comment-word-count Plugin
    Warning: Invalid argument supplied for foreach() in /home/myisha4/public_html/blog/wp-content/plugins/comment
    -word-count.php on line 14
    line 14 is
    foreach ($words as $word) {
    most-commented Plugin
    Warning: Invalid argument supplied for foreach() in /home/myisha4/public_html/blog/wp-content/plugins/most-commented
    .php on line 19
    line 19 is
    foreach ($posts as $post) {
    recent-comments Plugin
    Warning: Invalid argument supplied for foreach() in /home/myisha4/public_html/blog/wp-content/plugins/recent-comments
    .php on line 18
    line 18 is
    foreach ($comments as $comments) {
    I got the Plugins at
    https://mtdewvirus.com/wp-hacks/
    is called
    Comment and Post Plugins
    My blog url is https://myisha.net/blog
    Thanks in advance
    Myisha

Viewing 4 replies - 1 through 4 (of 4 total)
  • They might be because there is nothing for them to work on.
    The ‘1’ is a correct output, but the others have nothing to play with
    The plugins from MtDewVirus are fine – I’ve used them since WP 1.0.1

    It works now. ?? It just needed a comment in the database… else it has nothing to report.

    Thread Starter myisha

    (@myisha)

    Thanks alot

    Just if anybody needs help with this, you can group the foreach function wtih:

    if(!empty($comments)) { }

    If you want, you can also incorporate this if there are no comments:

    if(empty($comments)) { echo ‘No comments yet posted.’; }

    Hope that helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error in Comment and Post Plugin’ is closed to new replies.