Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Plugin all files inactive troubleshooting


  • ct25
    Participant

    @ct25

    I’ve been having issues with the BuddyPress plugin. It started initially when a plugin was updated and the members filter stopped automatically updated. I noticed that the filter was not working either. I added some code to the filter and it started working, but still was not automatically updated. After reading many of these forums, I noticed that some of the files were inactive. One forum suggested to delete BuddyPress then Reactivate it. This caused all of the member filter functions to stop working again. I then deactivated the plugin, reuploaded the old BuddyPress plugin files from before I deleted it in hopes it would go back to what it was doing previous BUT when I reactivated it most all of the plugin files are inactive.

    The initial problem happened in multiple WP themes. Please help me get the theme files active again and fix the ajax problem that it is having.

Viewing 16 replies - 1 through 16 (of 16 total)

  • shanebp
    Moderator

    @shanebp

    all of the plugin files are inactive

    What plugin are you talking about?
    What do you mean by ‘inactive’?

    caused all of the member filter functions to stop working

    What member filter functions are you talking about?

    It sounds like some custom functions are not working properly.
    If so, that is an issue with your custom functions – not BP.


    ct25
    Participant

    @ct25

    All of the BuddyPress plugin files including the buddypress/bp-core/bp-core-component.php buddypress/bp-core/bp-core-template.php buddypress/bp-members/bp-members-template.php .

    Also, the member functions to filter by alphabetical, last active, and newly registered. The BuddyPress plugin is active but the files are no longer active so it is not working.

    I reinstalled it, same problem.


    shanebp
    Moderator

    @shanebp

    If buddypress/bp-members/bp-members-template.php is ‘inactive’,
    how do you know that ‘the member functions to filter’ are not working?

    Have you activated all the components?

    Configure BuddyPress


    ct25
    Participant

    @ct25

    All of the configuration is done. When the member filter used to work it had a loading symbol on the word, now it does nothing.


    shanebp
    Moderator

    @shanebp

    now it does nothing.

    So you can see it.
    That means that ‘buddypress/bp-members/bp-members-template.php’ is not inactive.

    Your description of the problem is so muddled that suggesting a solution is nigh impossible.

    Confirm that the issues are not in your theme. Try switching to a standard theme like WP 2013.


    ct25
    Participant

    @ct25

    I’ll try to explain it differently:

    I had a problem on my WordPress members page, it was not automatically refreshing when you change the sort terms (alphabetical, last activity). Also, when you manually refreshed the page it did not change the order. I added select and when statements to the member-template.php and it sorted correctly but it did not automatically refresh. When you change the sort it would bring up no member but the manual refresh brought the members back according to the sort mode selected. This issue also happened with the other themes.

    I believed it was the Ajax issue that many users were having (there are many forums about this same issue) and none of the fixes worked. So then, one user suggested to deactivate the plug-in, delete it, and reinstall. That also did not work.

    I did notice the Ajax bypass code is located in a core file however, none of the files are active at this point (the all say inactive in the editor).

    After the plug-in was reinstalled it caused the function not to work at all.


    shanebp
    Moderator

    @shanebp

    Sounds like an ajax conflict.
    Try deactivating all other plugins.
    Then activate them one at a time until the problem occurs.


    ct25
    Participant

    @ct25

    Today I found there was a member-loop.php added to my theme files. Could this be part of the problem? Should I add the member template file to the theme as well?

    <?php
    
    /**
     * BuddyPress - Members Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    
    	<div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    	<?php do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list" role="main">
    
    	<?php while ( bp_members() ) : bp_the_member(); ?>
    
    		<li>
    			<div class="item-avatar">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>
    
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    
    					<?php if ( bp_get_member_latest_update() ) : ?>
    
    						<span class="update"> <?php bp_member_latest_update(); ?></span>
    
    					<?php endif; ?>
    
    				</div>
    
    				<div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    
    				<?php do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * bp_member_profile_data( 'field=the field name' );
    				  */
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    
    	<?php endwhile; ?>
    
    	</ul>
    
    	<?php do_action( 'bp_after_directory_members_list' ); ?>
    
    	<?php bp_member_hidden_fields(); ?>
    
    	<div id="pag-bottom" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-bottom">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-bottom">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    <?php else: ?>
    
    	<div id="message" class="info">
    		<p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_members_loop' ); ?>
    

    ct25
    Participant

    @ct25

    At this point the order by function does not trigger a new sort when changed. It does nothing when you change the ‘order by’ from alphabetical to last active and newly registered. It used to load and return nothing before updating to BuddyPress plugin to the latest version. I really need some help getting this fixed.


    shanebp
    Moderator

    @shanebp

    It sounds like ajax is not working on your site.
    It can be difficult to diagnose without full access to your installation.

    Try switching to a standard theme like WP 2013, turn off all other plugins, make sure to refresh your browser cache.


    ct25
    Participant

    @ct25

    @shanebp I deactivated all 40+ plugins and it did not change anything. I also tried a different theme and it did not work.

    Could it be that the plugin is not reaching the ajax directory? Is there a particular code that should be found in some of the template files to link to the _inc/ folder that is not there?


    ct25
    Participant

    @ct25

    Anybody?


    ct25
    Participant

    @ct25

    Update:

    I deactivated Akismet and the ‘order by’ function began to order by last activity which is more than it was doing before. I still does nothing when I change to alphabetical and newly added.

    I copied the _inc/ folder to the theme and it did not resolve anything. Any other suggestions?


    ct25
    Participant

    @ct25

    Can someone please walk me through this.


    shanebp
    Moderator

    @shanebp

    Nobody can walk you thru the issue based on your description.
    Maybe:
    https://buddypress.org/support/topic/activity-ajax-problem-with-bp-default-theme/


    ct25
    Participant

    @ct25

    @shanebp I added that code where it was suggested. The entire directory of members disappeared. It did cue an action when the ‘order by’ was changed but there are no members for it to filter now.

    The code looks like this

    
    	$version = bp_get_version();
    	foreach ( $scripts as $id => $script ) {
    		wp_register_script( $id, $script['file'], $script['dependencies'], $version, $script['footer'] );
    		wp_enqueue_script( $id );
    	}
    }
Viewing 16 replies - 1 through 16 (of 16 total)
  • The topic ‘Buddypress Plugin all files inactive troubleshooting’ is closed to new replies.
Skip to toolbar