Events listing page broken after editing recurring event

Home Forums Calendar Products Events Calendar PRO Events listing page broken after editing recurring event

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1602882
    jtdsn
    Participant

    We are using the Events Calendar PRO + Filter PRO plugins on a website of ours. We noticed that after editing an instance of a recurring event two things stopped working OK:

    1. The events listing page on the frontend ( /events) got a long loading time, and after a certain timeout the page got loaded broken – the header only.

    2. The events listing in the admin showed 5 empty pages of events. On some pages (e.g. page 4) there were a couple of events, but the rest of the pages stayed visibly empty, though there were obviously some ghost entries that caused the pagination to show 5 pages.

    We noticed that disabling the PRO plugin fixed things. On further investigation we saw that what caused this was that the post that was edited latest had become a parent to itself (in the DB). And this caused a loop in this function:

    Tribe__Events__Pro__Recurrence__Permalinks::filter_recurring_event_permalinks, function get_primary_event()

    …(found in Recurrence/Permalinks.php).

    Probably, this specific piece of code:

    while ( ! empty( $post->post_parent ) ) {
    			$post = get_post( $post->post_parent );
    		}
    
    		return $post;
    

    Maybe what caused this was that we edited an instance of the event, and not the main event. But I would expect the plugin to be smart enough to check and take care to make the proper changes in such a way as not to break the output.

    For now we have removed the parent IDs for the self-parenting posts/events, but I am not sure if this won’t happen again.

    #1604690
    Cliff
    Member

    Hi. Sorry you experienced this.

    The way recurring events happen is that each event within the series is a child post of the parent/series post.

    Please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions:

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)

    Whenever troubleshooting, it’s best to enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see while trying to replicate this issue.

    If there’s nothing obvious (such as a console error or WP_DEBUG message) pointing you to what might be the problem, please follow our Testing for Conflicts Guide (basically switch to Twenty Seventeen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.

    Note that https://wordpress.org/plugins/plugin-detective/ may prove helpful as well. (third-party, not guaranteed or supported by us)

    Of course, we always recommend restorable database and file backups as well as performing modifications first on a staging site before modifying anything on your live/production site.

    If you still need assistance with this, please share your System Information (while in Testing for Conflicts Mode) in a Private Reply.

    That will give me a lot of extra information to help troubleshoot this.

    Let us know what you find out.

    Thanks.

    #1622120
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Events listing page broken after editing recurring event’ is closed to new replies.