BuddyBoss Home – Web Support Forums Themes Boss. theme Certain Pages Not Found

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Question

    #41982
    @ubrandon

    Hey!

    Anyone else ever get random 404 errors on pages? It happens at completely spontaneous times, lasts for about a minute then is resolved. Talked to my server support and they don’t think it is on their end. Also tried disabling plugins and still got them. The only thing these pages that all go down at once have in common is they are pages with shortcodes on them. Any help would be appreciated. Thanks!

    Answers

    #42051

    Alyssa
    Participant
    @alyssa-buddyboss

    @ubrandon do you have access to your server logs. I suggest you try to get a hold of theme. If you do send a copy of them and a description of the issue to [email protected] Varun will look into this further.

    #42136
    @ubrandon

    Thanks TJ,

    I talked to my host and they said the server error logs are completely empty except for one saying that sometimes the GZIPPed files were not loading completely.

    So I thought that this might be the problem and took out the code I put in htaccess inorder to gzip the files. I used a tool online to check if the site was still being compressed, and after I took out the code 69% was still compressed. I also still got the error, which makes me wonder if BuddyBoss has gzip built in and there is something going wrong with it?

    Thank for any help!

    #42168

    Alyssa
    Participant
    @alyssa-buddyboss

    @ubrandon I would find is suspicious that the server logs did not report the 404 errors. Please send a description and admin credentials to the email in the previous comment. Thanks!

    #42217
    @ubrandon

    Yeah the host support was confused about that too.. he only saw on Chrome dev that gzip was not loading completely. Sent him an email, thanks TJ!

    #43922
    @ubrandon

    Figured it out. Lots of people get these 404’s on custom posts when LearnDash is installed. It’s literally simply LearnDash. On their site they have some code you can put in your functions.php to fix it. So annoying. 😛 Hopefully this saves someone some time. 🙂

    #43961

    Alyssa
    Participant
    @alyssa-buddyboss

    @ubrandon sorry for the confusion. Please post in the Social Learner forum in the future. It is VERY important now that we have the additional child themes and complexity 🙂

    #44184
    @producia

    @ubrandon, I’m having the same problem too…can you share the code you put in the functions.php file?

    #44191
    @ubrandon

    How do I fix “404” errors on LearnDash custom post types?

    There are many reasons why you may be seeing a 404 error, one common reason is when a theme or plugin calls a flush re_write rule (which is against the WordPress recommendation). Despite being a frowned upon practice, it does still happen.
    To resolve, add the code below to your theme’s ‘functions.php’ file. You should add this code to the ‘functions.php’ file in your child theme so that you don’t lose this fix when updating your theme. Otherwise you will need to make it again:
    add_filter( “learndash_flush_rewrite_rules”, function( $flush, $post_options ) {

    return true;

    }, 4, 2 );
    Once you add this code, clear your browser cache and close your browser window before testing again.
    If that code does not work. Remove it from your ‘functions.php’ file and try the code below:
    add_filter( “learndash_flush_rewrite_rules”, function( $flush, $post_options ) {

    return false;

    }, 4, 2 );
    Once added, clear your browser cache and close your browser window before testing again.
    If neither of the above solutions work, it could mean that your host is running an older version of PHP. This being the case, try adding the following to your theme’s functions.php file:
    add_filter( “learndash_flush_rewrite_rules”, “learndash_flush_rewrite_rules” , 4, 2 );

    function learndash_flush_rewrite_rules( $flush, $post_options ) {

    return false;

    }
    Clear your browser cache and close your browser window before testing again.
    If that does not remove the 404 notice, remove the code and replace it with the following:
    add_filter( “learndash_flush_rewrite_rules”, “learndash_flush_rewrite_rules” , 4, 2 );

    function learndash_flush_rewrite_rules( $flush, $post_options ) {

    return true;

    }
    Clear your browser cache and close your browser window before testing again.

    #44204
    @vapvarun

    Thanks @ubrandon
    Regards
    Varun dubey

Viewing 10 posts - 1 through 10 (of 10 total)
  • The question ‘Certain Pages Not Found’ is closed to new replies.