iCal import stopped working

Home Forums Calendar Products Event Aggregator iCal import stopped working

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #1056724
    Josh
    Participant

    Hey Lisa,

    I apologize for the confusion. When I tested, I tested the link as well as downloading the root .ics file and importing. It was with the uploaded file for the file import that I was able to replicate the issues here. However, I just now went back through and deleted those files, re-uploaded the original file, but was still unable to get the file to recognize the events.

    We’ve still got the ticket logged and we’ll follow up here as the developers dig into this issue.

    Thanks!

    #1060751
    Lisa LaGrou
    Participant

    Josh,

    Sadly, our issue has returned. It is not importing new Events in 2016 except the three we started with when we got it to work again last week. There are now 6 Events in the feed, but we’re only getting 3.

    Also, we just tried this again on a totally clean WordPress install, running the WordPress 2016 theme and no plugins enabled except TEC. Still the same issue.

    We also ran it on a separate site and we were able to import the 6 Events no problem. So, the issue definitely seems to be focused on our site!

    I’m sending you a private message with our system info.

    #1060753
    Lisa LaGrou
    Participant

    This reply is private.

    #1061756
    Josh
    Participant

    Hey Lisa,

    Thanks for following up here! Could you also send a database dump to support[at]theeventscalendar.com? I know I previously mentioned that I didn’t believe this was a database issue, however with what you’re describing about it only happening on this one site it could be potentially be something there that was added in the past by another plugin that didn’t get removed when deactivating or deleting.

    We’ll then be able to run some tests using your database content along with this system information. I apologize for the continued issues here, however hopefully this will give us everything we need to get to the root of this particular issue.

    Thanks!

    #1061855
    Lisa LaGrou
    Participant

    Scott Barnett sent a database dump to Zach T on Friday night so you can get it from Zach.

    #1062595
    Josh
    Participant

    Hey Lisa,

    Thanks for following up here and thanks for your patience as we work to get to the bottom of this.

    I believe we may have figured out the root of the issue here. When deleting imported events, they don’t get completed removed from the database. They get saved as a new Custom Post Type entitled “deleted_event”. The first thing you’ll need to do to resolve is to delete all of these from the database. You can do this using phpMyAdmin and search for “deleted_post” in the post_type column of the wp_posts table (https://cloudup.com/cod5COrQOta).

    You should then be able to search and import all the events from that iCal url!

    Going forward, you can prevent this deleted post save by adding this following snippet to your theme’s functions.php file:

    
    <!--?php <br ?--> ​
    /*
    * 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' );
    

    Let me know if this helps.
    Thanks!

    #1078880
    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 - 16 through 22 (of 22 total)
  • The topic ‘iCal import stopped working’ is closed to new replies.