Home › Forums › Calendar Products › Event Aggregator › Duplicate Events Importing
- This topic has 7 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 17, 2016 at 11:08 am #1057522
Phillip
ParticipantI 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.
January 18, 2016 at 11:37 am #1058017Brian
MemberHi,
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
January 18, 2016 at 12:15 pm #1058047Phillip
ParticipantI 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.
January 18, 2016 at 3:51 pm #1058142Brian
MemberHi,
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
January 19, 2016 at 2:05 pm #1058859Brian
MemberHi,
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
January 19, 2016 at 7:53 pm #1058954Phillip
ParticipantI 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.
January 20, 2016 at 7:35 am #1059267Brian
MemberOk 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
February 18, 2016 at 8:35 am #1076943Support 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 ‘Duplicate Events Importing’ is closed to new replies.
