Duplicate Recurring Events

Home Forums Calendar Products Events Calendar PRO Duplicate Recurring Events

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #963023
    Jason Lovoy
    Participant

    I updated the events calendar pro on the site and the recurring events duplicated. I found another thread that had this plugin posted to it: https://gist.github.com/jbrinley/10933420

    The plugin worked for the most part but there are still some left over duplicate events that need cleaning up. I am sure this plugin could be modified to resolve the remaining duplicates, but I have very little knowledge as to what exactly needs to be done.

    Any help would be appreciated.

    #963253
    Barry
    Member

    Hi John,

    Can you link me to some of the remaining duplicates? How many are there still to be removed/merged, approximately?

    #963345
    Jason Lovoy
    Participant

    There are quite a few events that need to be removed… it appears that they link to the same event, but they each have different post ID’s. Here is the events page: http://www.springcreekumc.org/events/

    For this month, there are a few duplicate events for: “Stephen Ministry Meeting” with the timestamp of: “May 24, 2015 @ 12:00 am – 2:00 pm”

    As far as I can tell, this recurring event is the only one that has duplicates now, but I would still like to be able to clean them all up in bulk, since there are so many.

    Thank you for your help.

    #963371
    Barry
    Member

    For the chain of events that uses the slug stephen-ministry-meeting-2, is it possible for you to “Trash All” via the event editor?

    #963453
    Jason Lovoy
    Participant

    That is not the duplicate… There are two separate events with the same title. One of them has a time stamp from 12am – 2pm and another has a time stamp of 12pm – 2pm. Both of these have their own duplicates duplicates.

    I am wondering if it is possible to modify the script to clean up the remaining duplicates.

    #963550
    Barry
    Member

    OK – and can you confirm this remaining duplicate is something that was generated when you recently updated (and which versions did you update from and to when this was created)?

    It’s possible the script can be modified, but without knowing what’s going on in your database or how this remaining duplicate was created it’s difficult to say how, exactly.

    That is not the duplicate… There are two separate events with the same title. One of them has a time stamp from 12am – 2pm and another has a time stamp of 12pm – 2pm. Both of these have their own duplicates duplicates.

    OK, so the one running from 12pm – 2pm seems to have the slug stephen-ministry, in that case. Can you trash those instead?

    Since entire sequences of recurring events can be trashed by editing them using the Trash link in the editor, this may be a far faster way to deal with the problem than by modifying the script (even if you need to trash two sequences and then regenerate it, that is likely to be the fastest way forward).

    #963713
    Jason Lovoy
    Participant

    Yes, these are duplicates from the update. They were not there before the update and now they are. I was updating from 2.0.11 to the latest version.

    Also, I do not think you understand which duplicates I am talking about.
    There are duplicates in the database that have the exact same information all except the post ID. Each recurring event had this happen to it. I then used the above script to remove the duplicates on most but there are a few duplicates left over.

    Below I have posted some code from the calendar. The first event is a duplicate of the second event and the third event is a duplicate of a fourth event that is hidden on the calendar view.

    Here is the code from the calendar:

    <div id="tribe-events-event-3299-26" class="hentry vevent tribe-events-category-meeting post-3299 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745" data-tribejson="{&quot;eventId&quot;:3299,&quot;title&quot;:&quot;Stephen Ministry Meeting&quot;,&quot;permalink&quot;:&quot;http:\/\/www.springcreekumc.org\/event\/stephen-ministry-meeting-2\/2015-04-26\/&quot;,&quot;imageSrc&quot;:&quot;&quot;,&quot;startTime&quot;:&quot;April 26, 2015 @ 12:00 am&quot;,&quot;endTime&quot;:&quot;2:00 pm&quot;,&quot;imageTooltipSrc&quot;:&quot;&quot;,&quot;excerpt&quot;:&quot;The Stephen Ministry team meets in the Youth building on the 2nd and 4th Sunday of each month from 12-2.&quot;,&quot;categoryClasses&quot;:&quot;hentry vevent tribe-events-category-meeting post-3299 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745&quot;}">	
    
    <div id="tribe-events-event-3300-26" class="hentry vevent tribe-events-category-meeting post-3300 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745" data-tribejson="{&quot;eventId&quot;:3300,&quot;title&quot;:&quot;Stephen Ministry Meeting&quot;,&quot;permalink&quot;:&quot;http:\/\/www.springcreekumc.org\/event\/stephen-ministry-meeting-2\/2015-04-26\/&quot;,&quot;imageSrc&quot;:&quot;&quot;,&quot;startTime&quot;:&quot;April 26, 2015 @ 12:00 am&quot;,&quot;endTime&quot;:&quot;2:00 pm&quot;,&quot;imageTooltipSrc&quot;:&quot;&quot;,&quot;excerpt&quot;:&quot;The Stephen Ministry team meets in the Youth building on the 2nd and 4th Sunday of each month from 12-2.&quot;,&quot;categoryClasses&quot;:&quot;hentry vevent tribe-events-category-meeting post-3300 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745&quot;}">
    
    <div id="tribe-events-event-3652-26" class="hentry vevent tribe-events-category-meeting post-3652 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745 tribe-events-last" data-tribejson="{&quot;eventId&quot;:3652,&quot;title&quot;:&quot;Stephen Ministry&quot;,&quot;permalink&quot;:&quot;http:\/\/www.springcreekumc.org\/event\/stephen-ministry\/2015-04-26\/&quot;,&quot;imageSrc&quot;:&quot;&quot;,&quot;startTime&quot;:&quot;April 26, 2015 @ 12:00 pm&quot;,&quot;endTime&quot;:&quot;2:00 pm&quot;,&quot;imageTooltipSrc&quot;:&quot;&quot;,&quot;excerpt&quot;:&quot;The Stephen Ministry team meets weekly in the Youth Building&quot;,&quot;categoryClasses&quot;:&quot;hentry vevent tribe-events-category-meeting post-3652 tribe_events type-tribe_events status-publish hentry tribe_events_cat-meeting cat_meeting tribe-recurring-event tribe-recurring-event-child tribe-events-venue-745 tribe-events-last&quot;}">
    #963807
    Barry
    Member

    OK – but even so – usually chains of events can be trashed en masse by opening them in the editor and using the Trash link.

    In this case, are you able to trash these duplicate chains of events by such a mechanism?

    #963875
    Jason Lovoy
    Participant

    If I delete the recurring event it will delete the real event also. They are both linked to the same recurring event. I have a number of recurring events and do not want to go individually into each one and see if it is being duplicated and then try to clean it up. I was hoping you could provide a simple modification to the script I mentioned above, but apparently that is not possible?

    Could you please contact the Casey from this thread: https://theeventscalendar.com/support/forums/topic/recurring-events-bug-that-creates-duplicates/

    He provided a solution to the problem I am having but I think it needs a little tweaking.

    #963917
    Barry
    Member

    Hi John,

    I’m afraid Casey is not currently available.

    If neither the existing code you tried or the zip linked to from here (did you have a chance to try that – it’s the same as the one Casey linked to in the other topic) work for you, I still suspect the best way forward would be to manually correct this.

    If I delete the recurring event it will delete the real event also. They are both linked to the same recurring event.

    Unless I’m misunderstanding, though, we’re only dealing with one or two sequences of events here. So yes you might need to recreate an event or two – but by copying and pasting we’re talking about something that really ought to be quite a quick operation.

    I have a number of recurring events and do not want to go individually into each one and see if it is being duplicated and then try to clean it up.

    Just to be clear – when you edit a recurring event and use the trash link provided by the Publish/Update button, the entire sequence should be trashed (ie, you should not have to repeat this for every single instance).

    Are you finding that isn’t happening?

    He provided a solution to the problem I am having but I think it needs a little tweaking.

    Without knowing what exactly has happened I’m not sure we know just yet that it will be a matter of a small tweak, which is why I’m keen to solve it be alternative means.

    At this point can you confirm:

    • That neither the plugin referred to in Casey’s topic/the blog post I linked to has worked
    • That you are unable to trash the entire sequence of duplicates as described and recreate things that way

    I realize you are keen to have a fully automated solution to the problem but I’d stress that we don’t know that it will indeed be a simple matter of tweaking things (if you have a reason to think otherwise, definitely let me know why).

    Thanks!

    #967126
    Barry
    Member

    Hi!

    It’s been a while so I’m going to go ahead and close this topic.

    • Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
    • Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context

    Thanks!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Duplicate Recurring Events’ is closed to new replies.