Home › Forums › Calendar Products › Event Aggregator › iCal Importer
- This topic has 9 replies, 2 voices, and was last updated 10 years, 3 months ago by
Geoff.
-
AuthorPosts
-
January 22, 2016 at 11:58 am #1060684
kanawebadmin
ParticipantSite is now http://dev.kodiakhealthcare.org
iCal Links:
https://owa.kodiakhealthcare.org/owa/calendar/[email protected]/Health_Calendar/calendar.ics
https://owa.kodiakhealthcare.org/owa/calendar/[email protected]/Community_Calendar(1)/calendar.ics
Hello,
I have had very little success importing events from the above iCal links into the Events Calendar PRO.
Thank You
January 22, 2016 at 1:18 pm #1060730Geoff
MemberHi Robert and welcome to the forums!
Can you elaborate on the issue a bit? I tried importing the .ics files you provided into my own site and was able to pull in events successfully.
If you could let me know how you’re importing the events, that would be super helpful.
Also, will you please head to Events > Settings > Help, copy the system information at the bottom of the screen, and paste it here as a private reply? That will help me check your settings to see if anything strange is happening there.
Thanks!
GeoffJanuary 22, 2016 at 4:24 pm #1060767kanawebadmin
ParticipantThis reply is private.
January 22, 2016 at 4:27 pm #1060768kanawebadmin
ParticipantHi Geoff,
I’ve been using Events => Events Import => iCal Tab. One-Time Import => iCal URL {links provided above}. Refine results fields left at defaults.
Thanks
January 22, 2016 at 4:33 pm #1060769kanawebadmin
ParticipantThis reply is private.
-
This reply was modified 10 years, 3 months ago by
kanawebadmin.
January 25, 2016 at 7:31 am #1061803Geoff
MemberHi Robert–hope you had a great weekend!
Hmm, the import seems to be working when I follow those steps (screencast).
I don’t see anything in the system information that sticks its head out as problematic.
As a next step, will you please follow the steps outlined in this article and let me know if you notice any difference when the site is in default conditions? This will help us determine if any conflicts preventing the importer from working properly.
Thanks!
GeoffJanuary 26, 2016 at 4:10 pm #1062774kanawebadmin
ParticipantHi Geoff,
I followed the steps in the “Testing for conflicts” article but still had the same results. New appointments had been added to the calendar, however, and those do show up in the one-time import. The older events that I am trying to import were previously imported and then deleted. Can events only be imported one time? How could I enable importing these events again?
Thanks
January 27, 2016 at 7:21 am #1063129Geoff
MemberHi Robert,
iCal importer stores a “note” on imported events so that deleted events are not re-imported (as this would be the desired behavior for most cases and for automatic imports as well).
Add this snippet to your theme functions.php file. It will remove those saved noted. Re-load the Import page (it will run once per page-load) until the message “Done Deleting” is shown, and then remove the snippet:
/* 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!';
}
To prevent “deleted events notes” from being created in the future, add this other snippet to your functions.php file:
/*
* 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 28, 2016 at 12:36 pm #1063978kanawebadmin
ParticipantHey Geoff,
For some reason I was unable to get the first snippet to remove deleted events. I did backup the DB and then deleted posts with post_type = ‘deleted_events’ from phpMyAdmin. I can now re-import the events. I apologize for the initial confusion over the issue. I also tested the second code snippet, and it did have the desired effect. This may be useful for wiping/re-importing while we are still in the development stage and trying to establish conventions for subjects, locations, venues, descriptions, etc. Thank you so much for your help with this! I am very impressed with the support I have received.
Thank You!
-
This reply was modified 10 years, 3 months ago by
kanawebadmin.
January 28, 2016 at 1:12 pm #1064004Geoff
MemberMy pleasure–happy to be of service! Thanks for the kind words and do feel free to hit us with a new thread if any other questions pop up. 🙂
Cheers,
Geoff -
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
- The topic ‘iCal Importer’ is closed to new replies.
