Home › Forums › Calendar Products › Event Aggregator › ICAL IMPORT EVENTS STILL DUPLICATING – using version 4.0.3
- This topic has 9 replies, 4 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
December 23, 2015 at 3:03 pm #1046119
rubypink
ParticipantHi my events are duplicating every 30 mins when they sync with ical?
I have the latest version – can you please help?This is the only reason I bought this. If it can’t be fixed asap I am afraid I am going to have to ask for a refund.
Thanks
December 29, 2015 at 10:23 pm #1047968rubypink
ParticipantIf someone could please help me that would be great – this is live on my client’s website and has accummulated 287 events for each day, instead of 1
December 30, 2015 at 8:13 am #1048199Geoff
MemberHello @rubypink,
Sorry for the delayed reply! The forums are closed for the holidays, though some of us are checking in from time-to-time.
I’m having a tough time getting the same issue with duplicate events. I’ve set up a recurring import for every 30 minutes and the correct events import each time, without re-importing any existing events or duplicating the events that are newly imported.
That doesn’t mean it’s not an issue–just that we’re going to have to do more troubleshooting to figure out what’s happening here.
First off, let’s make sure you’re on the latest versions. You have The Events Calendar 4.0.4 and iCal Importer 4.0.2 installed, correct? Will you please update (if needed) and then copy your system information (Events > Settings > Help) and paste it here as a private reply? That will give me info on your calendar settings so I can get a better view of what we’re working with.
Next, I see you have tried:
- Deactivated all other plugins? Yes
- Switched to a default theme? Yes
Did you happen to notice any difference in either of those conditions? How about when all over plugins are deactivated and a default WordPress theme (like Twenty Fifteen) are activated at the same time?
Thirdly, would you be willing to share the iCal address you are using to import? I’ll try that on my test site just to see if there could be something on that end.
Let’s start there and see what we find. If we’re unable to pinpoint anything from there, then I’ll want to try a deeper form of troubleshooting.
Thanks for your help!
GeoffJanuary 5, 2016 at 7:16 pm #1050843rubypink
ParticipantHi Geoff,
Thank you for your reply.
I am just updating to events calendar 4.04 from 4.03. This might fix the issue first off before we try more.
I am wondering if there is a quick way I can delete all the duplicate events to test if they are duplicating still? It takes me ages to manually tick all the pages and delete them.
January 6, 2016 at 6:43 am #1051173Geoff
MemberAwesome, thanks for giving the update a try and please do keep me posted on that!
Good question. Once you import an event via iCal importer and then delete it the system stores a “note” so that deleted events are not re-imported (as this would be the desired behavior for most cases and for automatic imports as well). I guess you are falling into this behavior!
To bulk delete saved “deleted events notes” you can add this snippet to your theme functions.php file and re-load the page (it will run once per page-load) until the message is shown, after that remove or comment the script:
/* Deletes 50 posts per page load*/ $posts = get_posts( array( 'numberposts' => 50, 'post_type' =>'deleted_event') ); if (!empty($posts)) { foreach ($posts as $post) { wp_delete_post( $post->ID, true); } } else { echo 'Done deleting!'; }Then, to prevent “deleted events notes” from being created in the future, add this other snippet to modify this default behavior:
/* * Prevents iCal importer from saving a copy of "deleted" events */ 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' );Please let me know if you get the events to show again after using the snippets. 🙂
Cheers,
GeoffJanuary 14, 2016 at 6:11 pm #1056289rubypink
ParticipantHi Geoff, so i ended up just manually deleting the bookings so i could test it before you managed to reply.
I have updated the plugin and it still is duplicating.Can you please test the url?
I don’t want to spend much time trying to fix this as i have to bill my client and it is not worth the money. If you can’t resolve this I will have to ask for a refund to use a different software I am sorry.
Here is the url:
https://app2.yesbookit.com/cgi-bin/YBI-ICal.pl?c=%2Ba8PZSSbz%2Fs6x4QpqqoRKA&account=HBH&property=130Thanks
January 14, 2016 at 6:13 pm #1056291rubypink
ParticipantAlso – do you have some code I can use so that only 1 even per day will show so I can put a temp fix on it?
January 14, 2016 at 6:43 pm #1056310rubypink
ParticipantThis reply is private.
January 19, 2016 at 12:29 pm #1058823Barry
MemberHi @rubypink,
Please accept my apologies for the delay in responding: Geoff has been out over the last few days and due to a large volume of support requests we were unable to parachute someone else in to take over this thread.
On reviewing your account it seems like a refund has been processed as you requested (back on the 14th) – but please do not hesitate to let me know if I’m mistaken or if there were any problems on that count.
Thanks again and I’m sorry things didn’t work out on this occasion.
February 18, 2016 at 8:35 am #1076929Support 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 ‘ICAL IMPORT EVENTS STILL DUPLICATING – using version 4.0.3’ is closed to new replies.
