BuddyDev

Search

[Resolved] BuddyPress content not showing when using MediaPress

Tagged: ,

  • Participant
    Level: Initiated
    Posts: 10
    Richard Wells on #1788

    Hi I am trying to use MediaPress on a single site (WP 4.3.1, BP 2.4) using a child theme of WooThemes Canvas and the ‘legacy’ BuddyPress templates with a few overrides.

    The main gallery loop shows up fine with the BP header and navigation above it but if I try to create a gallery or view or delete one, or upload an image, the page content renders as text in a single post entry in <p> tags e.g. “Richard Wells @houfton active 2 seconds ago View ProfileActivityNotifications …” There is no <div id=”buddy press”> etc.

    I have been trying to pick through the file hierarchy to see where I have gone wrong but am stuck. Can you help?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1789

    Hi Richard,
    Welcome to BuddyDev.
    My apologies for the inconvenience with MediaPress.

    MediaPress utilizes plugins.php from your theme’s template or theme compat template.

    Is the gallery loop n user profile working? If yes, then It will be a very strange issue. If that is not working, then you will need to check if you have the members/single/plugins.php preset in your overrides or not?

    Can you please tell me if the gallery list on user profile is working or is it just the gallery directory?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Richard Wells on #1791

    Brajesh

    Thank you for the quick reply on Thanksgiving!

    All the standard BuddyPress pages seem to work – Activity, Profile, Profile Edit etc – and the Gallery loop works (I have echo’d out the file path “mediapress-master/templates/mediapress/default/gallery/loop-gallery.php” and it shows on the page). The Create a Gallery page also works partially (mediapress-master/templates/mediapress/default/gallery/create.php) contrary to what I said above, in that the gallery is actually created but the landing page is wrong. Other MediaPress pages do not.

    I do not have a plugins.php in my child theme but there is one at plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/plugins.php and I have tested that the problem pages are using it. I have also tried copying it to my child theme (themes/canvas-child/buddypress/members/single/plugins.php) but it made no difference.

    Richard

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1792

    Hi Richard,
    Thank you for the details.

    Will it be feasible for you to allow me to check the site. A temporary normal username and site link will work for me.

    If possible, Please PM me the details and I will quickly check the issue.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Richard Wells on #1793

    Brajesh

    OK I can send an administrator login via your messaging system. By the way, I am using your Change Username plugin and that works OK.

    Richard

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1794

    Thank you. Please do send the details. If the Username plugin is working that means your plugins.php is working fine. it is something else then.

    Looking forward to the details.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Richard Wells on #1795

    This is plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php which is active:

    <?php
    /**
    * BuddyPress – Members Home
    *
    * @package BuddyPress
    * @subpackage bp-legacy
    */

    ?>

    <div id=”buddypress”>

    <?php

    /**
    * Fires before the display of member home content.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_before_member_home_content’ ); ?>

    <div id=”item-header” role=”complementary”>

    <?php
    /**
    * If the cover image feature is enabled, use a specific header
    */
    if ( bp_displayed_user_use_cover_image_header() ) :
    bp_get_template_part( ‘members/single/cover-image-header’ );
    else :
    bp_get_template_part( ‘members/single/member-header’ );
    endif;
    ?>

    </div><!– #item-header –>

    <div id=”item-nav”>
    <div class=”item-list-tabs no-ajax” id=”object-nav” role=”navigation”>

      <?php bp_get_displayed_user_nav(); ?>

      <?php

      /**
      * Fires after the display of member options navigation.
      *
      * @since 1.2.4
      */
      do_action( ‘bp_member_options_nav’ ); ?>

    </div>
    </div><!– #item-nav –>

    <div id=”item-body”>

    <?php

    /**
    * Fires before the display of member body content.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_before_member_body’ );

    if ( bp_is_user_activity() || !bp_current_component() ) :
    bp_get_template_part( ‘members/single/activity’ );

    elseif ( bp_is_user_blogs() ) :
    bp_get_template_part( ‘members/single/blogs’ );

    elseif ( bp_is_user_friends() ) :
    bp_get_template_part( ‘members/single/friends’ );

    elseif ( bp_is_user_groups() ) :
    bp_get_template_part( ‘members/single/groups’ );

    elseif ( bp_is_user_messages() ) :
    bp_get_template_part( ‘members/single/messages’ );

    elseif ( bp_is_user_profile() ) :
    bp_get_template_part( ‘members/single/profile’ );

    elseif ( bp_is_user_forums() ) :
    bp_get_template_part( ‘members/single/forums’ );

    elseif ( bp_is_user_notifications() ) :
    bp_get_template_part( ‘members/single/notifications’ );

    elseif ( bp_is_user_settings() ) :
    bp_get_template_part( ‘members/single/settings’ );

    // If nothing sticks, load a generic template
    else :
    bp_get_template_part( ‘members/single/plugins’ );

    endif;

    /**
    * Fires after the display of member body content.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_after_member_body’ ); ?>

    </div><!– #item-body –>

    <?php

    /**
    * Fires after the display of member home content.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_after_member_home_content’ ); ?>

    </div><!– #buddypress –>

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1796

    This code is fine.
    As far as I checked on the site, activating other themes make this work but when I reactivated your theme, the page went away.

    So, It is confirmed that it is some modification in the theme causing this.

    Can you please think of any such modifications in your functions.php? or can you please activate the parent theme and see if that works?

  • Participant
    Level: Initiated
    Posts: 10
    Richard Wells on #1797

    I have activated the parent theme, Canvas, and it seems to have the same problem. (But Username Changer is still OK.) This would rule out an issue with my functions.php? There is quite a lot going on in there!

    I am not sure where you are but it is pretty late where I am so perhaps we should sleep on it and I will try again tomorrow!

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #1798

    Hi Richard,
    Thank you for the update.

    Yes, if it is still happening with the parent theme then your child themes functions.php is not causing it.

    That is a premium theme, so I can not do much for now. Please do take your rest and when you are back, Let us check it on your server and I will troubleshoot it there.

    Thank you
    Brajesh

The topic ‘ [Resolved] BuddyPress content not showing when using MediaPress’ is closed to new replies.

This topic is: resolved