Event data still being generated.

Home Forums Calendar Products Events Calendar PRO Event data still being generated.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #995393
    Ian
    Participant

    So if after a few hours one still gets the ‘Recurring event data is still being generated for this event.’ message, with the progress bar apparently stuck at around 90% and the wheel still revolving, what should one do?

    Tried navigating away and back… Other events seem unaffected and new data can be added and events displayed…

    • This topic was modified 10 years, 8 months ago by Ian.
    #995487
    Ian
    Participant

    A few more hours later and the event still thinks data is being generated. I have even updated the event to see if that would stop it. It updated OK but the message remains. Rebooted.. Checked in another browser… The message is stuck….

    #995518
    Brian
    Member

    Hi,

    Sorry for the issues you are having. I can help troubleshoot this with you.

    I have not run into this before so not sure of the cause.

    Can you try deactivating and then reactivating Pro and see if that clears it.

    That process does not delete events or settings, but it is always a good idea to backup beforehand.

    Let me know if that clears it or not and we can go from there.

    Thanks

    #995563
    Ian
    Participant

    Hi Brian

    I have tried deactivating pro, both pro and the main plugin, reloading the edit page with the main plugin only active (no progress bar under this condition). Nothing has worked thus far. Still see the progress bar when pro is active on this event series…

    • This reply was modified 10 years, 8 months ago by Ian.
    #995765
    Brian
    Member

    Hi,

    Thanks for that information. We have not seen this issue with anyone else so lets find out if this is contained within Pro or a conflict with something else.

    Can you please follow our testing for conflicts guide and see what that comes up with:

    Testing Conflicts With Themes and Other Plugins

    Also, can you please install the WP Crontrol Plugin:

    WP Crontrol

    Then in your admin go to Tools > Crontrol

    And let me know this information:

    Hook Name Arguments Next Run Recurrence

    For any hook name that has “tribe” in it.

    Let me know what you find out and we can go from here.

    Thanks

    #995847
    Ian
    Participant

    This reply is private.

    #995890
    Ian
    Participant

    As there was no change following the troubleshooting steps I hope the data I sent is helpful.

    Thinking about what may have triggered this condition if not a plugin conflict – This is a recurring event in a series where two events which were initially part of it were set to be individually edited, and one of those was deleted.

    Is there not a line in the wp_options table or somewhere which is causing the progress bar to display? Can’t I just edit the database to clear it?

    #996045
    Brian
    Member

    Hi,

    Thanks for the information, it was helpful for us to narrow this down. We have been able to replicate the issue and looking for a short term solution on this.

    We tested in the next version 3.12 and it does not happen there, but that release is still a couple weeks away at best.

    I will update you on us getting a short term fix to hide or remove the progress bar.

    Thanks

    #996052
    Brian
    Member

    Hi,

    I have this snippet to resolve this. Please add to your theme’s functions.php:

    /**
    * It's possible for a gnarly, unending update loop to spring up
    * when events have been broken out of an existing chain of recurring
    * events.
    *
    * This helper aims to detect such a situation and resolve it.
    */
    function fix_rec_update_issue() {
    $event_id = (int) $_POST['event'];

    // Nonce check
    if ( ! wp_verify_nonce( $_POST['check'], 'generate_recurring_instances_' . $event_id . get_current_user_id() ) )
    return;

    $queue = new Tribe__Events__Pro__Recurrence__Queue( $event_id );
    $to_create = $queue->instances_to_create();
    $to_exclude = $queue->instances_to_exclude();

    if ( count( $to_create ) !== count( $to_exclude ) )
    return;

    foreach( $to_create as $timestamp ) {
    if ( ! in_array( $timestamp, $to_exclude ) )
    $mismatch = true;
    }

    if ( @$mismatch ) return;
    $queue->instances_to_create( array() );
    $queue->instances_to_exclude( array() );
    $queue->save();
    }

    add_action( 'wp_ajax_tribe_events_pro_recurrence_realtime_update', 'fix_rec_update_issue', 5 );

    Let us know if that helps resolve the issue.

    Thanks

    #996116
    Ian
    Participant

    I am using a child theme (of themify.me ‘ultra’ theme) and when I add this to the functions.php file no site pages or admin pages are displayed (white screen). Removed the code and all is fine again except the progress bar is still stuck.

    #996121
    Brian
    Member

    Ok, I added it to my child theme of Genesis and did not get a white screen.

    What does your error log say as it appears it is triggering a fatal error?

    #996136
    Ian
    Participant

    Well that’s Weird – I just added the code again to run it in order to see what was on ‘line 28’ where a spurious ‘&’ was being reported in the error log, and it ran OK and cleared the problem! I don’t think I added an & by mistake before as it was just a paste, but I have to assume it was something like that. Anyhow all seems good now which is a relief!

    #996144
    Brian
    Member

    Great glad it helped and it worked itself out.

    I am going to close this thread to new replies, but we have a bug ticket in our system to resolve this for good.

    That snippet should help out until that happens.

    If you have any new questions or concerns please create a thread and we can help out.

    Thanks

    #1001895
    Leah
    Member

    Hello,

    Thank you so much for reporting this. We are happy to tell you that a solution to this issue is part of our upcoming 3.12 release! We are doing the final testing and then the new version will be released. Keep an eye on your dashboard Updates page!

    If you experience any difficulty with the update or find that the issue you reported in this thread is not resolved in 3.12, please open a new thread and we can help you. Thank you for your patience and support as we work to improve our plugins!

    Best,
    Leah
    and The Events Calendar team

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Event data still being generated.’ is closed to new replies.