Updating existing events + Event duplicates

Home Forums Calendar Products Event Aggregator Updating existing events + Event duplicates

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1030991
    jadecreative
    Participant

    Hi, I’m looking at using this importer for another project. However, when I used this originally there were two major issues which prevented us from using it again. I’m writing to see if these have been resolved.

    1. We set up the feed to update every hour, or even each day, but it would create duplicates of events. Does this issue still occur?

    2. On that note, the feed also wasn’t bringing through update to current events. So if an event was updated in the feed, the update didn’t come through to the existing event. Is there a way to allow the feed to ‘replace all existing events with events in the feed?’ so that we get updated events?

    If the 2 issues are resolved then we will use this for the next project.

    Thanks, Patrick.

    #1031332
    jadecreative
    Participant

    It would be great if someone could get back to me please.

    #1032324
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    We have been spending time with our families for Thanksgiving and getting back to support today.

    I am not seeing the duplicate issue in any of my test sites so I am not sure if it was a one time case with you or a bug in general. If you have a ical feed link I can try it out and see what it does in my sites.

    As for the updating content it appears this is still a bug as I am even finding it in the new release so that is not resolved.

    As a way around this you could add this snippet:

    /*
    * Prevents iCal importer from saving a copy of "deleted" events
    * This means when you rerun an import, it will reimport any events you previously deleted
    */
    function tribe_ical_dont_save_deleted () {
    $ical_importer = Tribe__Events__Ical_Importer__Main::instance();
    remove_action( 'before_delete_post', array( $ical_importer, 'deletedEventSave' ) );
    }
    add_action( 'wp_loaded', 'tribe_ical_dont_save_deleted' );

    That will prevent events from being “saved” even after deleted so they will not import again.

    Once that snippet is in place you could delete the events that you want to update and that will then enable them to be reimported.

    That is not a great solution, but it is a work around.

    I have created a bug ticket for us to resolve this issue as well.

    Let me know if you have any follow up questions.

    Thanks

    #1075829
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Updating existing events + Event duplicates’ is closed to new replies.