• Resolved brucenow

    (@brucenow)


    The BuddyPress menu is there, but when you click on one of the menu items you get a page with this message:

    “Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.”

    Looking at my database, I see that the site ID is “1” for both my main site, Neighbors Connect, and this subdirectory site, Golden Gate Neighbors. Does this ID only vary for subdomain sites? And if so, where else can I look to solve this problem? I’m using the BuddyPress Twenty Ten Child 1.0 by bp-theme-converts.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The site ID should be fine.

    http://neighborsconnect.us/activity/ works fine

    http://neighborsconnect.us/goldengate/activity/ will NOT work because BuddyPress is sitewide and ONLY exists in the first location.

    Change the links to all be like http://neighborsconnect.us/activity/ and you’re copacetic.

    Thread Starter brucenow

    (@brucenow)

    Where do I change those links, and why are they even existing? They weren’t there in a previous incarnation of Golden Gate Neighbors.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s probably your theme. Check the links in the menu. You should have the absolute URL and not relative 🙂

    Thread Starter brucenow

    (@brucenow)

    Yeah, the urls throw the /goldengate/ folder into the mix.

    So? I’m assuming I would find what I need to change in a functions php file.

    Thread Starter brucenow

    (@brucenow)

    Ok. It’s here somewhere, right?

    <?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
    <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="current_page_item"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a>
    </li>
    <?php endif; ?>

    This does have something to do with it, yes?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not usually the functions file, but it depends on your theme. Where did you get bp_twentyten_child? Did it have directions?

    Thread Starter brucenow

    (@brucenow)

    I just googled “BuddyPress Twenty Ten Child 1.0 by bp-theme-converts” and didn’t find it. The author must have take the page down?

    The above code which I had to edit a couple times before it all got copied in there came from this file: functions-buddypress.php, which came from this folder: wp-content/themes/bp_twentyten_child/buddypress/

    And it would seem if i am following you correctly that this bit of code:

    <a>/<?php echo BP_ACTIVITY_SLUG ?>
    </a>

    relates to your suggestion, “Check the links in the menu.”

    That code snippet posted above is part of

    <div class="menu">
    
    <ul>
    </ul>
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Please use the CODE tags (to the right of b-quote 😉 ) eh? Easier to read. (And now I know what the theme is – they took ’em down to recode for BP 1.2.6 so that may be your problem right there).

    That code LOOKS correct, but I’m not a BuddyPress excerpt nor am I using that theme.

    Thread Starter brucenow

    (@brucenow)

    Thanks for educating me on the CODE thing.

    I think the recode for BP site you looked at is a different site.

    But this site: http://bp-theme-converts.com/ gives a similar messate:

    “back soon” So I’m screwed either way, unless a BP expert can enlighten me.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Aaaah, got a hold of someone.

    The theme is borked. They know. They ain’t fixing any time soon :/

    I’d pick a different theme.

    Why are you using a BuddyPress theme on one of the subsites?

    Use a regular WordPress theme. You only need a buddypress theme on the main site where Buddypress runs.

    Thread Starter brucenow

    (@brucenow)

    Also, it’s like I’m using the child of a child theme, this bP for Twenty Ten child theme. With constant updates, am I going to keep running into such problems. Would I be better off just using a standard BP theme and tweaking that?

    Thread Starter brucenow

    (@brucenow)

    I didn’t know Buddy Press was just for the main site. I thought it was and that was the way it was working, but when I deleted my subdirectory site to reinstall it, the BuddyPress menu items showed up. So then I begin to think it worked for all sites.

    So to answer your question, I’ve got the main site themed with my BuddyPress Twenty Ten Child 1.0. I assumed I would just be able to use that for mmy subdirectory sites. But your question now has me thinking I could create a new very simple child theme for my subdirectories and just copy the CSS from my BuddyPress Twenty Ten Child 1.0. into that simple theme. Yes?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Possibly. You may need to do a lot of jiggering around to get it looking right.

    Thread Starter brucenow

    (@brucenow)

    I found the fix! I copied my BuddyPress Twenty Ten Child 1.0 theme, renamed it and made that the theme for my subsite. Then I went into the functions-buddypress.php file which is in the BuddyPress folder and found it’s horizontal menu as shown below at line 121.

    <div class="menu">
    	<ul>
    				<li<?php if ( bp_is_front_page() ) : ?> class="current_page_item"<?php endif; ?>>
    					<a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
    				</li>
    
    				<?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
    					<li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="current_page_item"<?php endif; ?>>
    						<a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a>
    					</li>
    				<?php endif; ?>
    
    				<li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="current_page_item"<?php endif; ?>>
    					<a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
    				</li>
    
    				<?php if ( bp_is_active( 'groups' ) ) : ?>
    					<li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="current_page_item"<?php endif; ?>>
    						<a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
    					</li>
    
    					<?php if ( bp_is_active( 'forums' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>
    						<li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="current_page_item"<?php endif; ?>>
    							<a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
    						</li>
    					<?php endif; ?>
    				<?php endif; ?>
    
    				<?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>
    					<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="current_page_item"<?php endif; ?>>
    						<a href="http://neighborsconnect.us/neighborhood-directory/" title="<?php _e( 'blogs', 'buddypress' ) ?>"><?php _e( 'Neighborhoods', 'buddypress' ) ?></a>
    					</li>
    				<?php endif; ?>
    
    				<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
    
    				<?php do_action( 'bp_nav_items' ); ?>
    		</ul>
    	</div>

    I took out all the menu list items except for the Home list item and the line that provides the About Page.

    <div class="menu">
    	<ul>
    				<li<?php if ( bp_is_front_page() ) : ?> class="current_page_item"<?php endif; ?>>
    					<a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
                                    </li>
    
    				<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
    
    				<?php do_action( 'bp_nav_items' ); ?>
    		</ul>
    	</div>

    This line provides the About page:
    <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
    It works. No more BuddyPress menu items on my subsites.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘BuddyPress pages not showing on subdirectory site’ is closed to new replies.