BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Certain Pages Not Found
Tagged: 404 errors
- This topic has 9 replies, 4 contibutors, and was last updated 9 years, 3 months ago by Anonymous.
Question
July 1, 2015 at 10:59 am #41982@ubrandonHey!
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
July 2, 2015 at 7:41 pm #42051@alyssa-buddyboss
AlyssaParticipant@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.
July 4, 2015 at 7:25 pm #42136@ubrandonThanks 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!
July 5, 2015 at 2:54 pm #42168@alyssa-buddyboss
AlyssaParticipant@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!
July 6, 2015 at 10:06 am #42217@ubrandonYeah 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!
August 5, 2015 at 9:37 pm #43922@ubrandonFigured 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. 🙂
August 6, 2015 at 7:27 pm #43961@alyssa-buddyboss
AlyssaParticipant@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 🙂
August 10, 2015 at 5:25 pm #44184@producia@ubrandon, I’m having the same problem too…can you share the code you put in the functions.php file?
August 10, 2015 at 7:58 pm #44191@ubrandonHow 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.August 11, 2015 at 5:54 am #44204@
AnonymousThanks @ubrandon
Regards
Varun dubey
- The question ‘Certain Pages Not Found’ is closed to new replies.