Quantcast

Archive for: buddypress

How to Fix the BuddyPress bp-loader.php Issue: Blank Site

I was recently installing BuddyPress on one of our other sites and I continually kept getting the same issue, the bp-loader.php fatal error and then the site would just go blank. It was so annoying! I tried so many different things to fix it.

Firstly, I found this hack that fixed the issues for one of the sites:

1. Create a new file, e.g. bp-loader-fix.php
2. Move the contents of bp-loader.php over except the first comment block
3. Make sure the new file has starting and ending tags, same with bp-loader.php
4. In bp-loader.php, add the following as the last (and now only) php statement

require_once(‘bp-loader-fix.php’);

However, with one of our sites this didnt fix the issues. Finally I came across the fact that the PHP memory limit needed to be higher on a Buddypress site compared to a basic WordPress site.

In an .htaccess file in the same directory as the script, include this line:

php_value memory_limit ?M

Replace “?” with the with the value you need to replace it with. Our default size is set to 32MB and a successful modification of the memory limit will show in your PHP info file. See How can I view configuration information for my PHP sites?