FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Comment ERROR

Feed 4 posts, 3 voices

Avatar
2 posts

I get this error when i go to my “Comment page” in the adminitration panel

Warning: Missing argument 1 for CommentController::index() in /home/xxxxxxxx/public_html/frog/plugins/comment/CommentController.php on line 41

And i inserted this code on my comment page

<?php $this->includeSnippet(‘comment-form’); ?>
<?php $this->includeSnippet(‘comment-each’); ?>

but i just see the comment form and there are no comments.

What should i do?

 
Avatar
1493 posts

And i inserted this code on my comment page

I’m not quite clear what you have done, mukki. I am assuming that you have set the “Comments” drop-down (underneath the editing area for a page) to “open”, of course. Have you read the plugin documentation? You should be including this code in your layout:

    <?php
      if ($this->comment_status != Comment::NONE)
          $this->includeSnippet('comment-each');
      if ($this->comment_status == Comment::OPEN)
          $this->includeSnippet('comment-form');
    ?>

Is the site live online so we can see what you are seeing?

 
Avatar
2 posts

I inserted your code and it didn’t work, so i went to the administraion panel and turned off the “moderate comments” function. After that it worked XD but the code

Warning: Missing argument 1 for CommentController::index() in /home/xxxxxxxx/public_html/frog/plugins/comment/CommentController.php on line 41

does still appear in my admin panel at the comment section.

 
Avatar
4 posts

line 41
function index($page)
Replace
function index($page=0)

 
Avatar
2 posts

true. I looked through the forum and found this thread, and there they found the bug and fixed it. So now I am gonna try it out too XXD

http://forum.madebyfrog.com/topic/606

Thanks anyway axdes