Location not importing

Home Forums Calendar Products Event Aggregator Location not importing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1100409
    Keith
    Participant

    Hi,

    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,
    Keith

    #1100986
    Nico
    Member

    Hi 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,
    Nico

    #1102349
    Keith
    Participant

    Hi 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/

    #1102489
    Nico
    Member

    Hey 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,
    Nico

    #1103716
    Keith
    Participant

    Hi 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,
    Keith

    #1104768
    Nico
    Member

    Hey 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,
    Nico

    #1111062
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Location not importing’ is closed to new replies.