• Resolved cedu

    (@cedu)


    Hi all,

    I’ve tried to find a solution to my problem through this forum and google, but no way up to now. My pb is the following: I’m working on the following blog: m2notarial.nice.free.fr

    I have issue with the permalinks which bothers me: only some of the blogs can be accessed through the generated permalink when a user is not logged. For instance, try this one: https://m2notarial.nice.free.fr/?p=57 you’ll get a “Sorry, no posts matched your criteria”, although through the main page, you can see this entry (it’s the Yaya test chacrate entry)!
    On another hand, try this one, and you can access it directly: https://m2notarial.nice.free.fr/?p=15
    This seems to work randomly and is not dependent on the categories the entries are assigned to…
    I used the following 2 plugins:Custom Query String 2.7 and Event Calendar 3.0.4 on WordPress 2.0.2, and it’a a fresh install, not an update.
    The permalinks generated are the default ones.
    The amazing thing is that when I’m logged as admin, and browsing through the main page of the site, then all the permalinks work. Any clue?

    Regards,

    Cedric

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter cedu

    (@cedu)

    So,

    after one week, nobody has a clue about this issue? ?? It is quite problematic, and I would have greatly appreciated some help, or at least a direction to look at.

    Regards,

    Cedric

    hey cedu
    i’m having the same problem. in my case i cannot access to “future” posts in the event calendar list when not logged in. i thought it was a permlink problem but i see it’s not.

    have you seen this forum?
    https://penguin.firetree.net/pipermail/eventcalendar/
    i’m looking for the answer there.

    have you tried the patch for the calendar already?
    https://blog.firetree.net/2006/01/31/eventcalendar-303

    Thread Starter cedu

    (@cedu)

    Hi Issa,

    thanks for the hint. My install is more recent than end of January, so I didn’t try the patch. Yet I have good news, since I finally managed to solve my problems.
    First for the “random” problem: of course, it was only apparently random. The issue was linked to post_date_gmt field, which was sometimes in the past, sometimes in the future for entries (didn’t check why, but I guess I created some entries differently). And since the real problem was related to dates, this info was important.

    Regarding the viewing of future entries, there are 2 modifications to apply to classes.php (at least it works this way for me, although it’s dirty work) :

    First find this line and comment it (I took this hint from another forum entry, but I forgot which one):

    $where .= ” AND post_date_gmt <= ‘$now'”;

    (for info, this line should be just after this one:
    if ($pagenow != ‘post.php’ && $pagenow != ‘edit.php’ && !($this->is_single && $user_ID)) {

    Commenting this line will allow your users to see future posts, even in the main page. But you need another modification in order for your users to see future posts in a single mode (i.e. through their permalink).
    Find the following if statement and comment it completely:

    if (!current_user_can(‘edit_post’, $this->posts[0]->ID))
    {
    $this->posts = array ( );
    }

    (for info, this line is after these ones:

    if (mysql2date(‘U’, $this->posts[0]->post_date_gmt) > mysql2date(‘U’, $now)) { //it’s future dated
    $this->is_preview = true;

    )

    And with these modifications, everything should work fine for you (at least it does for me!)

    Regards,

    Cedric

    Thanks so much for this. This just solved the problem I was having on my own site!

    THANKS!!
    This fix also my problem with edited timestamps (to back in time of some years) not showed with the Sorry, no posts matched your criteria on permalinks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘“Random” Sorry, no posts matched your criteria on permalinks’ is closed to new replies.