WordPress.org

Ready to get started?Download WordPress

Forums

Comments problem: Sorry, no posts matched your cri (5 posts)

  1. georges
    Member
    Posted 10 years ago #

    Hey guys,
    Everything is working great except for comments.
    My blog is at http://www.igit.ca. If one tries to comment on any post you get "Sorry, no posts matched your criteria." as an error on index.php after you've been redirectedback from wp-comments-post.php. Now, nothing is entered into the db when you call wp-comments-post.php.
    I had permalinks going on a /index.php/%year%/%month/%etc etc... and that's when it stopped working. I've since disabled permalinks, but still no dice.
    I've searched through the code and can't find anything. It all looks like it should work. I'm confused. Any tips?

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Have you altered 'wp-comments.php' at all ?

  3. georges
    Member
    Posted 10 years ago #

    Nope, the only thing I've changed is the index.php and that works fine.

  4. georges
    Member
    Posted 10 years ago #

    Maybe this will help... I'm guessing the problem is here, but I really can't see it. This is the only thing I've edited.
    <div id="maincontent">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date('','<div class="datetext">','</div>'); ?>
    <div class="title" id="post-<?php the_ID(); ?>">
    " rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?>
    </div>
    <div class="smalltext">
    <?php the_author() ?> @ <?php the_time() ?>. <?php the_category(', '); ?>. <?php edit_post_link(); ?>
    </div>
    <?php the_content(); ?>
    <?php link_pages('
    Pages: ', '
    ', 'number'); ?>
    <?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?>
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    </div>

  5. Anonymous
    Unregistered
    Posted 9 years ago #

    I had exactly the same problem, but it ONLY happened in Firefox 0.9.3 (Debian/GNU Linux). I tried my index.php backups, and the problem persisted; so i guess it must lie somewhere else; not in index oder wp-comments.
    Other browsers seem to work fine; my buddie's Firefox (Windows XP) works nicely, too.
    I am using the nighty build from August, 17th.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.