Home › Forums › Calendar Products › Events Calendar PRO › Recurring Events – Issues with Trash Series / Edit All Functionality
- This topic has 15 replies, 3 voices, and was last updated 10 years, 11 months ago by
Leah.
-
AuthorPosts
-
January 27, 2015 at 7:20 am #938046
Creative
Participanthey there.
We’ve been using the Events Calendar Pro plugin for a few months now, but our Client has been having some issues with Recurring Events – I have tested on a local version with just the plugin running + seem to be having the same issues, which i think sound connected:
– Trash Series: this button only seems to Delete that single Event, rather than the whole Series.
– Editing All events in a Series: Clicking Edit All, then changing the title of an Event, breaks that event out into a new Recurring Event, leaving the whole original Event behind.Any light you can shed on these issues would be great.
Thanks!
January 27, 2015 at 12:57 pm #938245Brian
MemberHi,
Sorry for the issues you are having. I can help troubleshoot this with you.
I tested on my local site and was not able to reproduce the errors as you mention so lets try to get on the same page first.
When you say this:
– Trash Series: this button only seems to Delete that single Event, rather than the whole Series.
Is this the trash button in the Event List of the admin? That button should only delete the single event and to trash the whole series you have to edit all and then move to trash, are you not seeing that?
And for this:
– Editing All events in a Series: Clicking Edit All, then changing the title of an Event, breaks that event out into a new Recurring Event, leaving the whole original Event behind.
I was not able to reproduce this and was able to edit the title a couple times and all the events changed.
How many events are you editing in a series, maybe that is what is different about my tests.
Let me know and we can go from there.
Thanks
January 28, 2015 at 8:52 am #938531Creative
ParticipantHi Brian, here a few things from your feedback
Trashing Recurring Events
– I was talking about the ‘Trash Series’ button on the first event of a recurring Event, in the List of Events in the Admin back-end. It doesn’t delete all the Events that recur – just the single one. 🙁Editing Recurring Events
– I have tried testing it with upto a dozen events, seems to do the same even if there are one 2 instances of the Recurring Event.Thanks,
PaulJanuary 28, 2015 at 10:56 am #938577Brian
MemberHow strange I am not seeing either issue.
I know you said you tested with just the Events plugins on a local site, but can you please follow our testing for conflicts guide:
And see if that helps narrow down the issue.
Also, are you using a Windows Server for either?
If the testing for conflicts guide does not help find the solution, would you be able to create a test site where we could see the issue and try to get to the bottom of it as so far I cannot reproduce it?
Let me know and we can go from there.
Thanks
January 28, 2015 at 2:48 pm #938663Creative
Participanthmmm – the main thing that sticks out is that, yes we (the client) are using a WINDOWS server.
i’m not 100% though, as i have been trying a few tests on my local machine – one thing that does happen is that when I create a Recurring event, then try and use the ‘Trash Series’ button – the other Events in the series remain there, however when i try and ‘Edit All’ on one of these remaining events (that should have been removed) i get the message
“You can’t edit this item because it is in the Trash. Please restore it and try again.”
in a new page – but the Events remain in the listThis was on a regular (Apache) server via MAMP.
January 29, 2015 at 3:15 am #938725Creative
ParticipantHi Brian – not sure what is happening to my replies – they aren’t appearing on the Forums immediately.
The site is running on the Windows server, yes. – i’ve done the compatibility checklist, no joy so far.
January 29, 2015 at 3:44 am #938732Creative
ParticipantOne thing I have noticed is that when i use the Trash Series button on the first event in a recurring event the rest of the events in the list still have the ‘Edit All’ button active (showing that they are still part of a recurring event) – clicking this button shows a 500 internal server error page though.
It’s almost as if the Recurring Event has been deleted, however the entries are still showing in the list (minus the first instance)
Really need to get to the bottom of this ASAP, as the plugin is not working as it should + the client are struggling to manage their events as we promised they would.
January 29, 2015 at 7:28 am #938800Brian
MemberHi,
Sorry about the forum replies for some reason the SPAM filter was flagging them. I will look out for them to make sure I grab them.
Thanks for the information about the windows/iis server, if you are seeing the issues on the live server and MAMP that may not be the issue.
Trash Series on both Servers
So on both servers you are getting the same thing, when you trash the series they remain, but you get errors when you click edit all?That happens when you have a default WordPress theme, with only the Events Calendar and the Event Calendar Pro Active and you then create a recurring event with just those three active as well?
If so, do you have any coding in the wp-config.php, htaccess or php.ini that might cause an issue?
Debug
Also, can you please turn on the WordPress Debug to see if we can get more information.Please follow the steps in the WordPress Debug Codex in the Example wp-config.php for Debugging section:
http://codex.wordpress.org/Debugging_in_WordPress
Please place that coding and try creating a couple recurring events, editing the titles, and deleting the series.
Then, let me know what you find out and we can go from there.
Thanks
January 29, 2015 at 7:28 am #938801Creative
ParticipantHi Brian – I think i’ve narrowed it down some more – i’ve been doing some testing most of the day – it seems that these issues only occur when we check the “Hide From Event Listing” checkbox in the Add New Event screen. When i do the tests with Edit All + Trash Series with the “Hide” box un-checked, everything seems to work.
This is needed as these events are only supposed to be shown in the header of the page (not in the Calendar itself) based on the current time/date – like Notifications.
January 29, 2015 at 7:36 am #938806Brian
MemberOk looking into the Hide From Event Listing issue now.
January 29, 2015 at 9:27 am #938846Brian
MemberHi,
Thanks for your information it helped us narrow down the cause of the issue.
You are correct with the “Hide From Event Listing” causing the trash series issue, they is a fix for that in the snippet below.
There is another issues related to it and the updating of fields. It looks like your server is blocking it, but in the test cases I have run, trying to edit any field with a recurring event has the “Hide From Event Listing” checked cause the events to duplicate themselves with the changes saving in a new event in the series.
So if you have an Event with the title “Today’s Event on Feb 28th” and you edit the title to “Today’s Event at Noon n Feb 28th” it will duplicate that Event so there would be “Today’s Event on Feb 28th” and “Today’s Event at Noon on Feb 28th” both showing in the Event List for that series. This happens if you edit any field, not just the title
Unchecking the box does not help the issue, once the box has been checked and updated, edits will either duplicate or not work for the Recurring Events in that series.
Until we can figure this out the only way to avoid the problem is to create the recurring events without checking “Hide From Event Listing”. Then once you are sure you are done editing the series you can check the box. Once that happens though if you need to make an edit you will have to delete that recurring event and create a new one for the edits to go through.
Trash Series
We do have this code to help solve the issue of the Trash Series, you can add that to your theme’s function.php. I have tested it and it worked for me./*
* The Events Calendar 3.9.1 Fix Trash Series when Hide From Event Listings is checked in Recurring Events
*
*/
class RecTrashFix {
public function __construct() {
add_action( 'wp_trash_post', array( $this, 'add_query_action' ), 5 );
}public function add_query_action( $post_id ) {
if ( ! tribe_is_recurring_event( $post_id ) || wp_get_post_parent_id( $post_id ) ) return;
add_action( 'tribe_events_pre_get_posts', array( $this, 'remove_posts_excl' ) );
}public function remove_posts_excl( $query ) {
$query->set( 'post__not_in', array() );
}
}new RecTrashFix;
Let me know if you have any questions.
This ticket has been added to our bug report so it will be updated directly, by one of us once we have some information regarding this.
Thanks
February 3, 2015 at 5:01 am #939694Creative
ParticipantHi Brian,
The Trash Series fix seems to be working now so thats great – is there any update on the remaining bug with the duplication of those Events?
We are getting pushed very hard now from the Client, as we recommended them to pay for the PRO version of the plugin, after explaining the features. Can you at least give us an estimated time-frame?
Thanks
February 3, 2015 at 5:18 am #939701Brian
MemberUnfortunately, I do not have an update or a timeline to fix this issue. We are looking at it right now, but so far there is nothing to update you on.
I will ask around later today and see if I can get it moving.
February 9, 2015 at 12:03 pm #941067Brian
MemberThis reply is private.
March 10, 2015 at 2:16 pm #947410Brian
MemberSince there is has not been any activity on this thread for over 2 weeks so I am now closing it.
We will update this thread when we release the next version of the Events Calendar As well.
Hopefully the that coding above fixed your issue.
Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Recurring Events – Issues with Trash Series / Edit All Functionality’ is closed to new replies.
