Home › Forums › Calendar Products › Event Aggregator › Google calendar update existing record problem
- This topic has 6 replies, 2 voices, and was last updated 10 years, 5 months ago by
Brian.
-
AuthorPosts
-
November 22, 2015 at 2:55 am #1029080
Part
ParticipantHi,
we have problem with a existing record. First we do recurring import from google calendar to WordPress, it totally fine. But when we made changes on google calendar it does not update to WordPress post.
Thank you
November 23, 2015 at 11:07 am #1029765Brian
MemberHi,
Thanks for using our plugins. I can help troubleshoot this with you.
Can you provide the ics link you are using to import events from?
Also, what did you change in an event that did not update in WordPress?
Let me know and we can go from here.
Thanks
November 26, 2015 at 10:56 am #1031287Part
ParticipantThis reply is private.
November 29, 2015 at 7:44 am #1032093Brian
MemberHi,
Thanks for the link.
I am testing this out on my test site with another Google Calendar ics link and see if I can reproduce the issue.
I will let you know what I find out.
Thanks
November 30, 2015 at 5:27 am #1032323Brian
MemberHi,
I have done testing in a couple sites and it appears to be a bug here.
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
November 30, 2015 at 9:43 am #1032714Part
ParticipantThank for the workaround, but our client want to control all in google calendar, could you please keep us update for the ticket?
Thank you
November 30, 2015 at 11:32 am #1032761Brian
MemberHi,
I can do that.
I am going to close this ticket to new replies, but the issue is still open and we will update this ticket once we release a fix. It will not be part of 4.0 as that is about to launch, I am pushing to get it included in 4.0.1, which will be out shortly after that, but I do not know for sure.
If you have any new questions or issues please create a new ticket and reference this one.
Thanks
-
AuthorPosts
- The topic ‘Google calendar update existing record problem’ is closed to new replies.
