Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @joellekbw,
    Sorry to hear that. Do you remember what was recently updated on your site – perhaps the theme or some plugins? It would also be very helpful if you could provide a list of the plugins currently enabled on your site and their version.

    Thread Starter joellekbw

    (@joellekbw)

    We use the Astra theme with Elementor. This seems to have been happening before and after updating anything after first setting up the plugin, but here’s the list:

    Advanced Custom Fields PRO Version 6.8.0.1
    Ajax Search Lite Version 4.13.5
    Astra Pro Version 4.12.5
    Auto Image Attributes From Filename With Bulk Updater Version 4.9
    BuddyBoss Platform Version 2.21.0
    BuddyBoss Platform Pro Version 2.13.1
    Code Snippets Version 3.9.5
    Cookies and Content Security Policy Version 2.37
    Custom Post Type Maker Version 1.2.0
    Elementor / Elementor Pro Version 4.0.1
    Events Manager Version 7.2.3.1
    Events Manager Pro Version 3.3.1
    Gravity Forms Version 2.10.0
    Inactive Logout Version 3.6.1
    Inactive Logout Pro Version 2.13.4
    JetSmartFilters Version 3.7.5
    MembershipWorks Version 6.15
    Page Links To Version 3.4.1
    Prevent Direct Access Version 2.8.8.7
    Prevent Direct Access Gold Version 3.3.10
    Salt Shaker Version 2.1.1
    Seriously Simple Podcasting Version 3.14.4
    Smush Version 3.24.0
    TermsFeed AutoTerms Version 3.0.5
    Yoast SEO Version 27.4

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @joellekbw,
    Thanks for providing the list of installed plugins. Do you mean the 404 error occurs when any of those plugins is updated, or specifically when SSP is updated?

    Do you use automatic plugin updates or manual updates? If you’re using auto-updates, I’d suggest disabling them for all plugins and checking after which specific plugin update the 404 issue occurs. This way, we can identify the conflicting plugin that overrides the rules.

    We automatically flush permalinks each time SSP updates, so I believe this shouldn’t happen after an SSP update specifically.

    Thread Starter joellekbw

    (@joellekbw)

    Sorry, I just meant that it’s been occurring at all times and doesn’t seem specifically related to any plugin updates. When updating SSP in the past it did fix it, but only for a few days. It seems to be random when the 404 starts up again. We update our plugins manually but I’ll check for any conflicts that seem to come up there. Is there anything else that could be causing it?

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @joellekbw

    This can happen if any plugin or theme calls flush_rewrite_rules() at the wrong time – if a flush occurs before SSP’s init hook fires (or during a request where SSP isn’t fully loaded), the rewrite rules are regenerated without SSP’s rules, and the existing ones get overwritten.

    As an option, you can try the following snippet (add it to your functions.php). It will check and fix the rules on each page load. It doesn’t require many resources, so you probably won’t notice any difference in page load time.

    add_action( 'init', function () {
    $rules = get_option( 'rewrite_rules', array() );
    if ( is_array( $rules ) && ! isset( $rules['^podcast-download/([^/]*)/([^/]*)/?'] ) ) {
    flush_rewrite_rules( false );
    }
    }, 99 );
    Thread Starter joellekbw

    (@joellekbw)

    Great, thank you! We’ll give this a shot.

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

You must be logged in to reply to this topic.