Tainted data, glitches in admin pages and public templates, immense confusion!

Home Forums Calendar Products Events Calendar PRO Tainted data, glitches in admin pages and public templates, immense confusion!

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #31571

    Okay, I think this is fixed.

    I came up with a script to delete the duplicate postmeta data. It is pretty brainless, but I’m going to operate on my theory that some botched import jobs caused this and hope that this doesn’t happen again.

    I also found that the problem with the full calendar view was that for some reason the WP_Query was being altered by the time the loop for the monthly display started. I don’t know why this didn’t crop up before, and I don’t know exactly where the conflict is, but I implemented this silly hack before the loop that seems to work:

    global $wp_query;
    $wp_query = new WP_Query($wp_query->query);
    have_posts()) : ?>

    have_posts() ) : $wp_query->the_post(); ?>
    etc.

    #31572

    Sorry, it looks like my code is being scrambled a bit here, let me try again:

    global $wp_query;
    $wp_query = new WP_Query($wp_query->query);

    if ($wp_query->have_posts()) :
    $hasPosts = true; $first = true;
    while ( $wp_query->have_posts() ) : $wp_query->the_post();

    etc.

    #31573

    I may not be the only guy with stuff possibly running its own wp_queries. It might be a good idea to alter events calendar to ensure that the original query is being used to start the loop with some code immediately before the loop start similar to this, I dunno. Whatever, I’m probably a weird fringe case.

    #31594
    Jonah
    Participant

    Hi canadianbrass,

    Ok, so it sounds like you’ve worked out the data issue and that it might have been caused by something on your part to begin with? I’m going to go ahead and close this one out unless you post back here saying you still need help within the next day or so.

    Cheers,
    Jonah

Viewing 4 posts - 16 through 19 (of 19 total)
  • The topic ‘Tainted data, glitches in admin pages and public templates, immense confusion!’ is closed to new replies.