Home › Forums › Calendar Products › Events Calendar PRO › Custom Recurring Event Posting Twice and Incorrectly
- This topic has 11 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
February 24, 2013 at 5:52 pm #40806
John
ParticipantHi,
If I add a custom recurring event it sometimes will add 2 events – one is correct and one goes everyday. It seems like this occurs if I have more than 3 weekdays checked for my Custom Weekly Recurring Event.
For example, if I add a custom weekly recurring event (e.g. every Tues, Wed, Thursday, every week, for the next 60 days), all works.
However, if that custom weekly recurring event has more than 3 of the weekdays checked (e.g. Mon, Tues, Wed, Saturday – but it could be any 4 days, or 5 day), then two events get added. One event is correct, but a 2nd event listing all 7 days of the week is also added to the calendar view. Note – only one event is actually created but 2 show on the calendar.Can you reproduce this and/or is it a known bug.
I can do a workaround by created two events – one with 2 weekdays checked and one with 3 weekdays checked (to get Mon-Fri), but it would be nice if this were resolved.
Let me know.
February 24, 2013 at 6:17 pm #40807John
ParticipantNote: Further to my initial post, the issue seems to skip months. So a test event I have running from Feb to June, only displays the issue in March, May and June. Feb and April look fine.
February 24, 2013 at 7:16 pm #40809John
ParticipantNote 2: My theory about the 3 day vs. 4 or more, may not be right. In testing further other issues come up (like the events listed beyond the END date).
The problems ONLY seem to be in the Calendar view, NOT in the Event listings.February 25, 2013 at 7:02 am #40846Barry
MemberHi John,
I can’t replicate this – so before we go any further can I ask you to run through the following steps:
- Please ensure that your Modern Tribe plugins are up-to-date and in-synch … for instance if you are using The Events Calendar 2.0.11 you must also use Events Calendar PRO 2.0.11
- Deactivate all other plugins and change your theme to a default, unmodified one such as Twenty Eleven or Twenty Twelve
- Now test to see if the problem still exists
- If the problem has been solved by these steps, start reactivating everything one-at-a-time, testing at each point to see if the issue has returned
- If the issue does return, take note of whichever plugin (or theme) you reactivated immediately before it started again – it’s likely there is a conflict with this item
In this case it may be worth wiping all the existing test events before running through this process. If it doesn’t help you to get to the bottom of the problem please also post back with a screenshot of your event settings so I can see the exact pattern being specified.
Thanks!
February 25, 2013 at 9:15 am #40872John
ParticipantBarry,
You were right – it is a PlugIn conflict. There is another plugin that also uses some calendar type functionality and it seems to be causing the conflict.
So what are my choices here, choose between the plugins, or is there some way to troubleshoot?February 25, 2013 at 10:25 am #40888Barry
MemberWhat’s the plugin?
February 25, 2013 at 10:51 am #40895John
ParticipantBarry,
2 things:
The plugin is Game Schedules: http://wordpress.org/extend/plugins/game-schedules/Also, I think I finally determined what is triggering the problem. If a recurring event falls on the last calendar day of the month, then a duplicate event starts repeating on every day for the following month.
So if I set up a Mon, Tues, Wed., repeating every week for 3 months (Feb, Mar, Apr), and Feb 28th is a Wed, then a 2nd duplicate event will start repeating every day of March (Mon through Sunday). But, then if March 31 is a Saturday, then April will be fine (because the recurring event did not occur on the last day of March).
So my temporary workaround is to delete any last day of the month recurring instances, and add them back as single day events.
Hope that helps.
John
February 25, 2013 at 11:07 am #40901Barry
MemberWhat I’d suggest is contacting the author of that plugin about this. The problem seems to stem from the following line of code (mstw-game-schedule.php line 98):
date_default_timezone_set('America/Los_Angeles');In the short term I do believe you could simply comment it out (ie, prefix that line with a double dash // or hash symbol #) and you will then be able to keep both plugins running side by side.
Longer term you may not want to keep patching that file every time there is an update (unless there are not going to be any future updates) so you may wish to touch base with the author and see if they can come up with an alternative to hard-coding the timezone in there.
February 25, 2013 at 11:59 am #40916John
ParticipantThanks!
I commented out the code for now – and that seemed to work! I’ll contact the author about the ramifications of doing so. It looks like adding any event to the last day of the month (even a single event), causes the issue.I appreciate the guidance!!
John
February 25, 2013 at 2:14 pm #40946John
ParticipantBarry, quick follow up – the other plugin author is phasing that piece of code out in the next release, so all is good!
February 26, 2013 at 6:54 am #41006Barry
MemberExcellent, in that case I will mark this thread as closed 🙂
July 7, 2015 at 6:26 am #978706Support 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 ‘Custom Recurring Event Posting Twice and Incorrectly’ is closed to new replies.
