Duplicate Events Importing

Home Forums Calendar Products Event Aggregator Duplicate Events Importing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1057522
    Phillip
    Participant

    I have Events Calendar Pro and the Facebook import. It is set to import on a regular basis and I had 5 events imported and now there are 8 or more of each “published”…This is a mess…not sure how to resolve.

    #1058017
    Brian
    Member

    Hi,

    Sorry for the issues. I can help out here.

    The bug we are seeing is events that ended yesterday are duplicating, but only those events. So for example today is the 18th the importer will still be trying to import events from the 17th and duplicating those over and over. On the 19th it would try to do that with the events on the 18th. Do you find that is where the duplicates are happening?

    I attempting to reproduce the bug, but not able today as I had no events on the 17th and it will not duplicate any of the others.

    I think I will be able to reproduce tomorrow and then be able to create a patch.

    Can you please disable automatic imports for today and I will get back to you tomorrow.

    Thanks

    #1058047
    Phillip
    Participant

    I had 5 events which I initially imported and had added no more and was set to auto import. I have set it to import as draft to see what I can find out. It looks like it has stopped…but not 100% sure. I also added about 20 recurring events going through June for a total of about 65 events are in the system.

    #1058142
    Brian
    Member

    Hi,

    Thanks for the information, would those events that were duplicating already past now?

    I will be able to test again tomorrow and up date you on if I can provide a quick patch.

    Thanks

    #1058859
    Brian
    Member

    Hi,

    I believe I have found the issue for the duplicating events and during my tests today I created a patch that worked for me in stopping the duplication of events.

    The events that were duplicating were either past events from one day back or events that ended earlier in the current day. If you are having events duplicate beyond this time frame please let us know as that would be a different bug then this one.

    To patch the issue please replace this file:

    plugins/the-events-calendar-facebook-importer/src/Tribe/Importer.php

    With the contents of this file:

    https://gist.github.com/jesseeproductions/b1180c6366e10875ad80

    I would recommend setting your import status to pending for Facebook just in case the patch does not work.

    Please clear out any existing duplicates after adding the patch to prevent false positives.

    Let me know how that works out.

    Thanks

    #1058954
    Phillip
    Participant

    I have updated the file and will see how it goes over the next couple of days!

    Thank you for the quick response!! I really like the plug-in. I am opening another ticket about a speed issue as well.

    #1059267
    Brian
    Member

    Ok sounds good, we will get to that other post today.

    I am also testing as well for duplicates and so far so good.

    If you do find a duplicate please provide links in a private reply for the Facebook Events that are doing it if you can.

    Thanks

    #1076943
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Duplicate Events Importing’ is closed to new replies.