Title: Tribe Rewrite Issues causing 404s
Last modified: September 2, 2023

---

# Tribe Rewrite Issues causing 404s

 *  [troymkelly](https://wordpress.org/support/users/troymkelly/)
 * (@troymkelly)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/)
 *     ```wp-block-code
        * @return void
       	 */
       	public function maybe_delayed_flush_rewrite_rules() {
               /*
                * Trying to stop permalink issues
                * */
               return;
       ```
   
 *     ```wp-block-code
       /**
       	 * Generate the Rewrite Rules
       	 *
       	 * @param  WP_Rewrite $wp_rewrite WordPress Rewrite that will be modified, pass it by reference (&$wp_rewrite)
       	 */
       	public function filter_generate( WP_Rewrite $wp_rewrite ) {
               /*
                * Trying to prevent permalink failures
                * */
               return false;
   
       		parent::filter_generate( $wp_rewrite );
       ```
   
 * Having issues with CPT’s suddenly becoming 404s when modifying or creating posts.
   After debugging we found that for some reason, rewrite rules were getting messed
   with. We dumped all the rewrite rules and there was a missing one for a certain
   CPT. As soon as we logged in, presto that rewrite rule appears in the dump, regardless
   if we stay logged in or not. The only non-vanilla rewrite_rules present in the
   entire site are Tribe ones. We’ve had to add early returns to two rewrite methods–
   rewrite rule generation and rewrite rule flushing. Which seems to have done the
   trick.
    -  This topic was modified 2 years, 10 months ago by [troymkelly](https://wordpress.org/support/users/troymkelly/).

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Gladys](https://wordpress.org/support/users/greventscalendar/)
 * (@greventscalendar)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16844737)
 * Hi [@troymkelly](https://wordpress.org/support/users/troymkelly/),
 * Thanks for sharing this! I’ll reach out to our development team and pass this
   on. So that I can provide them with some more context, could you provide the 
   following version of the following?
    1. PHP
    2. WordPress
    3. The Events Calendar
    4. Theme and Version
    5. Name of hosting company (please NO logins or sensitive info)
 *  Thread Starter [troymkelly](https://wordpress.org/support/users/troymkelly/)
 * (@troymkelly)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16849594)
 * Hey [@greventscalendar](https://wordpress.org/support/users/greventscalendar/),
 * PHP – Versions 8, 7.4
   WordPress: 6.2.2Events Calendar: 6.1.2.2 and a few of the
   previous versions since early June.Theme and Version: Custom.Name of Hosting:
   Godaddy, Wpengine, Pantheon, and a custom host.You can see in some of your latest
   reviews this is something happening to others. Where it’s creating 404s and the
   claim is that flushing permalinks is the solution or disabling cache (in the 
   case of Wpengine). However, this is something that’s happening so frequently 
   the solution provided isn’t enough. Plugin needs to be updated to ensure your
   rewrites aren’t impacting themes like they are.
 * Hope this helps!
 *  [Gladys](https://wordpress.org/support/users/greventscalendar/)
 * (@greventscalendar)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16849648)
 * Thank you for sharing this! I’ll make sure to pass this onto our dev team.
 *  [Birgit Olzem](https://wordpress.org/support/users/coachbirgit/)
 * (@coachbirgit)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16851186)
 * I got reports from clients about the similar issue. They always need to flush
   their permalinks and cache in order to navigate through the frontend calendar
   view without causing a 404 for the AJAX response.
 * PHP Version 8.1, 8.0
   WordPress 6.2.2Events Calendar: 6.1.2.2 Hosting: IONOS, 
   All-InklThemes: RichWP Rich Business, Astra
 *  [Gladys](https://wordpress.org/support/users/greventscalendar/)
 * (@greventscalendar)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16853448)
 * [@coachbirgit](https://wordpress.org/support/users/coachbirgit/) I would hate
   to see your problem lost in this thread, do you mind opening a new thread?
 *  Thread Starter [troymkelly](https://wordpress.org/support/users/troymkelly/)
 * (@troymkelly)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16873108)
 * Hey [@greventscalendar](https://wordpress.org/support/users/greventscalendar/)
   wondering if there has been any movement on this? Each and every time the plugin
   updates it overwrites our change. So it’s a bit tiresome to manage. Hoping we
   can see a patch to resolve this soon.
 * 
   Thanks!
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16875511)
 * Hi [@troymkelly](https://wordpress.org/support/users/troymkelly/)
 * I appreciate your patience. We have already created an internal ticket to address
   the issue you reported and your case has been included. We do not have an estimated
   time for resolution at this time, but we will keep you updated as soon as a solution
   is available.
 * —
 * Internal Bug Ticket Reference: TEC-4844
 *  [Aaron Barraza](https://wordpress.org/support/users/aebs90/)
 * (@aebs90)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16895935)
 * Was this issue resolved on **[6.1.3] 2023-07-13**? Or is it still an active bug?
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-16896084)
 * Hi [@aebs90](https://wordpress.org/support/users/aebs90/)
 * Upon checking, the ticket [TEC-4844] is still ongoing. As soon as we release 
   a fix for this issue, we will post an update here in the thread.
 * If you do have other concerns or issues you need help with, please create another
   support topic as indicated in the [WordPress.org](http://WordPress.org) support
   guidelines.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/page/2/#post-17007027)
 * Hi All,
 * I completely understand how frustrating this issue can be for you. Although I
   cannot provide you with an estimated time of resolution at the moment, I assure
   you that we are working tirelessly to fix this. Rest assured that any updates
   will be shared with you on this thread.
 * After reviewing our internal ticket, I can confirm that the fix will most probably
   be included in the upcoming maintenance release.
 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-17019981)
 * If anyone needs support for this plugin then per the forum guidelines please 
   start your own topic.
 * You can do so here. 
   [https://wordpress.org/support/plugin/the-events-calendar/](https://wordpress.org/support/plugin/the-events-calendar/)

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Tribe Rewrite Issues causing 404s’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 11 replies
 * 13 participants
 * Last reply from: [Support Moderator](https://wordpress.org/support/users/moderator/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/tribe-rewrite-issues-causing-404s/#post-17019981)
 * Status: not resolved