• I’ve followed the tutorial for upgrading templates from 1.2 to 1.5, and all seems to be fine.

    However, comments don’t display at all. It’s like it can’t find the file to import. I’ve done the comments_template(); thing in the index.php file, and there is a comments.php file in my theme folder.

    my index.php code is at http://www.pastebin.com/248145
    the actual blog is at http://jeffsblog.info

    thanks for your help!

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter ijeff1

    (@ijeff1)

    whoops, here’s the comments.php code:
    http://www.pastebin.com/248155

    I don’t know if this will fix your problem or not but when I have had this happen, I simply had to re-upload the comments.php file and things worked again. Not sure why but I didn’t want to argue. LOL

    I’m not sure about your particular blog, but I know for my blog I don’t actually use any pages generated by WordPress (I code my own pages and simply use the php commands to pull content from the database as I need it) and my comments weren’t working when I upgraded from 1.2 to 1.5.

    I had to look at the default comments page from 1.5 and then go back and edit my own pages since it seems to have changed since 1.2. Maybe that’s it ? (Sorry if this didn’t make any sense.)

    Thread Starter ijeff1

    (@ijeff1)

    It’s sloppy of wordpress.org to release a new version and claim that templates can be upgraded, when they really can’t, not completely. I’ve searched the forums and have found many others having comments problems, also unresolved.

    It seems the only solution is to redo the entire comments.php following the new 1.5 functions. The guide on upgrading templates from 1.2 to 1.5 simply says to rename wp-comments.php to comments.php and stick it in the individual theme folder, which I have done, yet it still does not work.

    I agree with iJeff1 to some extent. I had this problem and simply used the new 1.5 comments.php instead of the old renamed 1.2 version. However, if you’d changed comments. php for whatever reason, then the advice was good. But I still don’t know what it was that caused comments not to be displayed after the upgrade. I’m also using Linux and xampp for testing 1.5; my live blog is still 1.2.2. That way, I can sort out such problems without too much grief.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    In index.php, did you remember to replace:
    <?php include(ABSPATH . 'wp-comments.php'); ?>

    with

    <?php comments_template(); ?>

    http://codex.wordpress.org/Using_Themes#Moving_from_1.2.x_to_1.5

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Thread Starter ijeff1

    (@ijeff1)

    For those of you searching for a solution to this problem, I’ve solved it, although not in a manner that I’d have liked to.

    Here’s two possible solutions:
    1) use a comments.php from Kubrick or the Classic theme, possibly modify it after to your liking and style.
    2) use comments.php from Kubrick/Classic to go through line-by-line your old comments.php, giving it the new functions and such.
    3) rebuild old comments.php using the Codex.

    The problem is, 1.5 comments.php is SIGNIFICANTLY different from the 1.2 wp-comments.php. The guide says to simply rename wp-comments.php to comments.php; this is very wrong, and should be changed, at least to warn the user that they must pretty much redo comments.php.

    Thread Starter ijeff1

    (@ijeff1)

    macmanx, yes, as stated in my first post, I’ve done the comments_template(); thing, and have read both of those guides.

    I did that. Very carefully. And then checked it, twice. Just swapping the comments.php file did the trick.

    I tried switching the comments.php file, and my comments show up although now non-registered users cannot post comments. 😛 Thanks for the tips, I’ll keep trying!

    I had the same problem and posted about it earlier – http://wordpress.org/support/topic.php?id=25867

    I changed out my comments.php for the one packaged in 1.5 under the other themes. That made existing comments appear, but the fields are still not there (i.e., name, email, http) .

    See here: http://brianpatton.org/

    Anyone have any suggestions?

    That’s exactly what I’m getting! (YAY! I’m not crazy, lol)

    Found the fix!! Thanks Padre! 🙂 (I owe ya one sweetie!)

    http://www.davejenbarnes.com/wordpress/?p=320#comment-712

    Read both of Lea’s post, as part of the first one is missing, but this fixed my comments problem!

    jeremycherfas

    (@jeremycherfas)

    I’ve spent a day or so trying to figure out how to get Comments to display from my template, updated from 1.2 to 1.5 and, despite the excellent hints here and elsewhere in the forums, I still cannot seem to get comments to display. The link to comments shows up on the main blog page, but when you click on that, although you get to the single post on a page, the comments are not visisble.

    I am not sure which file I should be editing for this. I do not actually have a SINGLE.PHP file and that does not seem to affect displaying of single posts, which is fine.

    So how do I edit INDEX.PHP to display comments when someone clicks on the comments link?

    The loop part of my INDEX.PHP looks like this:

    <div class="content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <?php the_date('','<h2>','</h2>'); ?>

    <div class="headline">
    <div class="title">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a>
    </div >

    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — by <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?>
    </div>
    </div >
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>
    <?php endwhile; ?>
    <!--
    <?php trackback_rdf(); ?>
    -->

    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?>

    <?php include (TEMPLATEPATH . "/searchform.php"); ?>

    <?php endif; ?>

    </div>

    Which is basically copied from the default theme and modified a little to suit my old template.

    Thanks

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘upgrading 1.2 -> 1.5, comments not displaying’ is closed to new replies.