• Resolved jenfilgate

    (@jenfilgate)


    Any time I save my BuddyPress settings and then try to navigate back to the LearnDash My Profile page, I get a 404 error message. If I refresh the page, it loads just fine. If I am on any BuddyPress page and don’t save anything, my WordPress menu navigation to the LearnDash profile works perfectly. Any ideas why this happens, but only when I’ve just saved BuddyPress settings, and only when I try to navigate to the LearnDash Profile page (not to any other page of my site)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Paresh Radadiya

    (@pareshradadiya-1)

    .

    Plugin Support BuddyBoss Support

    (@bbwpsupport)

    Hello @jenfilgate,

    I just did some testing on my test sites, but couldn’t replicate this issue. I’m thinking something on your site specifically must be causing it.

    Just to narrow down the problem and debug the issue is it possible to try the following temporarily:

    – deactivating all other plugins except Learndash LMS, BuddyPress and BuddyPress for Learnash to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the parent theme to rule out any custom specific problems from the child theme

    Let me know how that goes.

    Thread Starter jenfilgate

    (@jenfilgate)

    It appears to be something to do with my child theme. I am using a child theme of the Invent College theme. Any tips on finding the issue?

    • This reply was modified 7 years ago by jenfilgate.
    Thread Starter jenfilgate

    (@jenfilgate)

    I’ve been commenting out functions from my child theme’s functions.php file and reinstating them one at a time and found that this function caused the problem:

    /* Getting rid of 404 errors on LearnDash custom post pages */
    
    add_filter( "learndash_flush_rewrite_rules", function( $flush, $post_options ) {
    
    return true;
    
    }, 4, 2 );

    Thought I would share in case others are also having this same problem. If you remove that function, the 404 page won’t happen after you edit your BuddyPress profile and then try to go back to the LearnDash Profile page.

    Do you think that I need to notify LearnDash about this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 page after saving BuddyPress Settings’ is closed to new replies.