Home › Forums › Calendar Products › Event Aggregator › Updating existing events + Event duplicates
- This topic has 3 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
November 25, 2015 at 7:53 pm #1030991
jadecreative
ParticipantHi, 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.
November 27, 2015 at 12:17 am #1031332jadecreative
ParticipantIt would be great if someone could get back to me please.
November 30, 2015 at 5:27 am #1032324Brian
MemberHi,
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
February 18, 2016 at 8:31 am #1075829Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Updating existing events + Event duplicates’ is closed to new replies.
