Support » Installing WordPress » Parse error with comments in 2.0

  • I just upgraded from 1.2 to 2.0 now, and everything seems to be working except for the comments. There’s a parse error that says the code is calling for wp-comments.php, but the file I have is called php-comments-post.php. I’ve tried renaming it but then the parse error disappears but the comments don’t show up. I still have most of the old PHP includes and such from 1.2, so maybe that’s the problem. Here’s the code I have on index.php so far:

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    <?php
    if (is_home()) {
    query_posts("cat=-2");
    }
    ?>

    <h2><id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>

    <b>Written on <?php the_date(); ?> at <?php the_time() ?></b> | <?php comments_popup_link(__('Nobody

    wanted to say anything'), __('One person spoke'), __('% people spoke to me')); ?>
    <div class="storycontent">
    <?php the_content(); ?>
    </div>
    <div class="feedback">
    <?php wp_link_pages(); ?>

    </div>
    <center><p class="div">
    </center>

    <?php comments_template(); ?>

    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>

    <?php endif; ?>

    And this is the parse error I get, in case you’re curious.

    Warning: main(/home/hersoul/public_html/wp-comments.php): failed to open stream: No such file or directory in /home/hersoul/public_html/index.php on line 26

    Warning: main(/home/hersoul/public_html/wp-comments.php): failed to open stream: No such file or directory in /home/hersoul/public_html/index.php on line 26

    Warning: main(): Failed opening '/home/hersoul/public_html/wp-comments.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hersoul/public_html/index.php on line 26

    Also, what’s the code for the calender that displays the entries? Thanks in advance.

  • The topic ‘Parse error with comments in 2.0’ is closed to new replies.