Home › Forums › Calendar Products › Event Aggregator › Location not importing
- This topic has 6 replies, 3 voices, and was last updated 9 years, 11 months ago by
Support Droid.
-
AuthorPosts
-
April 9, 2016 at 8:31 am #1100409
Keith
ParticipantHi,
I’m importing from this page http://www.meetup.com/Conversacion-Ingles-Sevilla/events/ The events created do not include the location. When I manually download and examine the .ics, I can see that they do contain location data.
Regards,
KeithApril 11, 2016 at 2:08 pm #1100986Nico
MemberHi there Keith,
Thanks for reaching out to us on this!
Per default the importer uses the venue address as the venue name, Are you getting it imported this way or no venue information at all?
I couldn’t find the ics feed URL for that page to try to import it my self. Can you please send me that over?
Best,
NicoApril 14, 2016 at 3:50 am #1102349Keith
ParticipantHi Nico,
I’m getting no venue at all. The feed is at the bottom of the page where it says “subscribe to this calendar using ical” webcal://www.meetup.com/Conversacion-Ingles-Sevilla/events/ical/4182690/5afd2470a988956afbb81910eaa81e4bce0232df/Language+Exchange+and+English+Conversation++in+Seville%21/
April 14, 2016 at 8:43 am #1102489Nico
MemberHey Keith,
Thanks for following up! I guess I’m not seeing the link because I’m not a member of the group…
Anyway I tried to import two events from the feed and I do get the venue imported: https://cloudup.com/coVnYbPL4EG
I’m testing this in a clean WordPress install with default theme and no other plugins active than ours. Do you think you can run a similar test in a staging, dev or local site?
Please let me know about it,
Best,
NicoApril 18, 2016 at 5:34 am #1103716Keith
ParticipantHi Nico,
I deleted the imported and the associated events and set it up again. In the preview, it found the events to be imported. When I ran the import, it didn’t import anything. The “Total imported column #” shows “1”. When I click that, it tells me that there are no records found.
When you ran it, did it actually perform the import? Does the import produce any kind of log, so that I can see what is happening?
Regards,
KeithApril 20, 2016 at 5:20 am #1104768Nico
MemberHey Keith,
Thanks for following up on this!
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 'deleted events' 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.
Best,
NicoMay 5, 2016 at 9:35 am #1111062Support 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 ‘Location not importing’ is closed to new replies.
