Forum Replies Created
-
AuthorPosts
-
GillesParticipant
Just mentioning that switching to the WordPress default theme does not help, so nothing to do with my functions.php changes.
GillesParticipantI tried disabling all the other plugins on my dev website and the event admin page still freezes. So it looks like it is an issue with the events calendar pro plugin and recurring events.
GillesParticipantHi Courtney, I have activated the license from my site and I see it connected in My Account >> Licenses. It should be safe to remove the old license now.
GillesParticipantHello,
I never created a second license. I believe it happened when I renewed my existing license. Please remove the old unused license from my account.
Thank you!
GillesParticipantThank you for the code. It does help, even though the query is still flagged as ‘slow’ sometimes. Now I have figured out that most of time is spent in another places in the php code, so I am trying to look into that to improve page load times. Thank you for the help, I will close this issue for now.
GillesParticipantThis is what I am calling:
// build and run query
$args = array( ‘category_name’ => ‘class’,
‘eventDisplay’ => ‘list’,
‘posts_per_page’ => 10,
‘post_status’ => ‘publish’,
);$wp_query = tribe_get_events( $args, true );
GillesParticipantI have Redis object cache installed and activated through the Redis Object Cache plugin. My hosting service provides a Redis database for this purpose. Memcache is always running.
Looking at the query, it appears that it contains the current time. Therefore query caching is not really going to help much. If I could remove the seconds and maybe even round the minutes, that would help. But the query always works based on ‘now’. Any suggestions? does the Events Calendar plugin provide a rounding function? My events do not change second-by-second.
Thank you
March 16, 2016 at 4:31 pm in reply to: Class 'Tribe__Events__Pro__Recurrence_Meta' not found #1090054GillesParticipantSo I found the problem. You recently changed ‘Tribe_Events_Pro_Recurrence_Meta’ to ‘Tribe_Events_Pro_Recurrence__Meta’, ie you added the missing underscore before ‘Meta’. That’s why my code broke.
All fixed now. Is there a better function I can use that would not be subject to such changes? This is the function I’m calling:
$event_ids = Tribe__Events__Pro__Recurrence__Meta::get_events_by_slug($event_slug);
Gilles
March 11, 2016 at 10:49 pm in reply to: Events page (set to 'calendar' URL) is picking up template from 'events' page #1088094GillesParticipantI found the bug in my Total wordpress them. This:
$page_slug = get_option( ‘eventsSlug’, ‘events’ );
should be:
$page_slug = Tribe__Settings_Manager::get_option( ‘eventsSlug’, ‘events’ );
in these two files:
Total/framework/classes/global-object.php
Total/framework/tribe-events/tribe-events-config.phpI don’t know if something had changed on the Events Calendar side, or if it was just an oversight of the Total theme developer.
Gilles
GillesParticipantOkay, that’s what I thought and did. Thank you for the reply!
May 6, 2015 at 1:19 pm in reply to: Show only first instance of recurring event in search results #960961GillesParticipantIt’s probably better to replace is_search() by $query->is_search.
May 6, 2015 at 1:13 pm in reply to: Show only first instance of recurring event in search results #960957GillesParticipantNo assistance needed 🙂
GillesParticipantA few more details, it is the “Admin Sort” option that needs to be turned off in the Post Types Order plugin admin options to make things work properly again.
GillesParticipantOkay good news, you were right. I narrowed it down to the ‘Post Type Order’ plugin. Its description reads:
Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
The ‘javascript capability’ part should have ticked me off. Anyway, do you have a section on your website where you list incompatible/dangerous plugins. It would be a good thing to add and this plugin should be added to the list.
Thank you for pushing me to follow your advice 🙂
Gilles
GillesParticipantHmm it looks like I am looking at the wrong query. If you could tell me where the query is done for when the page gets refreshed, it would help my debugging. Thanks!
-
AuthorPosts