WordPress.org

Ready to get started?Download WordPress

Forums

Multisite: White screen when switching back from user Dashboard to site. (5 posts)

  1. bennettberlin
    Member
    Posted 1 year ago #

    I'm using WordPress 3.4.2, Buddypress 1.6, localhost (127.0.0.1) on OSX Apache.

    Fresh install on WordPress and Buddypress. My WordPress/Buddypress is set up for multisite. I want Buddypress functionality on all my subsites.

    I have made and sitewide activated a Buddypress child theme made from the Buddypress Default theme. (This is just the basic css with no css, template or other modifications.)

    Save for Buddypress, I have activated no other plugins.

    I have set my permalinks to custom structure /%postname%/

    Everything works fine with Buddypress, except when I click the main menu Blogs button to display my list of blogs. The blogs list displays fine, but when I click on a user blog, I get a white screen. This does not happen when I click the admin blog.

    If I log in as a subsite user and then go to My Sites : Dashboard, all is ok. When I then click Visit Site, I again get a white screen.
    Again, this works fine for the admin site.

    When I make a blog post for a subsite blog, it does not show up in the activity stream neither sitewide nor in the Member details activity stream.

    My .htaccess file is as per setup instructions:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    I have the following in my config.php:

    define('WP_MEMORY_LIMIT', '128M');
    define('WP_DEBUG', true);
    /*define( 'WP_CACHE', true );*/
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'bennettberlin.selfhost.eu');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('WP_ALLOW_MULTISITE', true);
    define( 'BP_ENABLE_MULTIBLOG', true );
    define('WP_DEFAULT_THEME', 'bp_child');

    (If I remove the WP_DEFAULT_THEME line and just run everything off the Buddypress default theme, the problem remains.)

    Any help would be greatly appreciated.

  2. White Pages are PHP errors.

    (If I remove the WP_DEFAULT_THEME line and just run everything off the Buddypress default theme, the problem remains.)

    That doesn't actually change it to the BP default theme. It changes it to TwentyEleven. Did you delete that?

  3. bennettberlin
    Member
    Posted 1 year ago #

    Thanks for the quick reply.

    Yes, I did remove the TwentyEleven theme. (I know it is the default.) When I put back 2011, it shows instead of a white page.

    I have just run through various permutations, with and without 2011 and with and without the config line define('WP_DEFAULT_THEME', 'bp_child');. I always get a blank page without the presence of 2011.

    However, when I go to change my theme in the subsite dashboard, my Buddypress child theme is not there. But it is there in the admin dashboard.

    This seems to imply that there is something wrong with my BP-default child theme?

    I'm finding this a bit strange as earlier today I had a working Buddypress multisite setup working with this BP default theme. I just copied it over to my new setup. And the default theme seems to work on the admin side.

    (I decided to set BP multisite afresh as I had inadvertently deleted the Blogs menu tab in the earlier setup. I thought it easier, and cleaner, to set up afresh than create a new menu page template and copy the Buddypress blog loop, etc into that.Maybe it's better I do this?)

    Thanks again.

  4. bennettberlin
    Member
    Posted 1 year ago #

    One other point.

    In my earlier BP setup I got the blank screen but I got it to go away by using the BP setup tab in the subsite admin. In my new version, I do not have the BP setup tab? So I can't do this.

  5. Yes, I did remove the TwentyEleven theme. (I know it is the default.) When I put back 2011, it shows instead of a white page.

    Okay, so the reason you had the white page is WP was trying to fail back to twentyeleven and couldn't ;)

    You may need to ask this of the buddypress forums, define('WP_DEFAULT_THEME', 'bp_child'); may not work becuase BuddyPress's theme isn't in wp-content/themes

Topic Closed

This topic has been closed to new replies.

About this Topic