Support » Fixing WordPress » Comments problem: Sorry, no posts matched your cri

  • Hey guys,
    Everything is working great except for comments.
    My blog is at 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mark (podz)


    Support Maven

    Have you altered ‘wp-comments.php’ at all ?

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

    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 class="smalltext">
    <?php the_author() ?> @ <?php the_time() ?>. <?php the_category(', '); ?>. <?php edit_post_link(); ?>
    <?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; ?>

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments problem: Sorry, no posts matched your cri’ is closed to new replies.