I did not realize you would have to buy Eduma to test this. I would think that WordPress would have a program where plug-in developers have access to some kind of test accounts or something, where they can quickly spin up a site with specific themes or plugins, specifically for this type of issue.
Regardless, the people at Eduma went ahead and did the debugging for me. Here is the response I got from Huyen last night…
Dear jbonifacejr,
I’m so sorry.
I tried to deactivated all plugins on your site to check it.
And BuddyPress plugin is the reason why this issue came.
Best regards,
Huyen Anh
I have deactivated all plugin except buddypress. switched to Twenty Nineteen version 1.4 then created new user name “Oliver Jake” you can see that new user on this page http://dev.masum-billah.com/members/ but if you set “New Members” filter on this activity page http://dev.masum-billah.com/activity/ nothing showing up just one message “Sorry, there was no activity found. Please try a different filter.”
So it’s the activity not posting that’s the issue not the filters. I think in the first instance I’d deactivate all other plugins, switch to a default theme such as 2017 and add another user, see if that shows up in activity. I’d also check if you’ve set up any filters for the activity loop that might exclude that content.
For new posts and comments you’d need to check that site tracking was enabled in the BuddyPress Component settings.
> … then why would BuddyPress not be the issue?
I’m saying that it is unlikely – not impossible.
Remember that plugins usually include hooks that other code or plugins or themes can use to inject code, behaviours etc.
So BP may be the issue. Or the issue may only manifest with BP.
As I said, I’ve never seen this issue before.
I’m not going to buy the Eduma theme so I can test with it.
You are not my customer. You are a person having an issue with an open source codebase.
I am a volunteer and curious about your issue and willing to make suggestions about narrowing down the cause in the hope of clearing identifying a bug.
Since you do not want to proceed, I wish you all the best with your project.
Are you using Akismet or some other spam blocking plugin? Also Topics are forums related, BuddyPress does not include forums, for those you’d be better off asking on that plugins forums.
I have used this code here:
https://codex.buddypress.org/developer/loops-reference/the-members-loop/
and I want to filter users by certain criteria. The example for the bp-custom page is:
function my_custom_ids( $field_name, $field_value = '' ) {
if ( empty( $field_name ) )
return '';
global $wpdb;
$field_id = xprofile_get_field_id_from_name( $field_name );
if ( !empty( $field_id ) )
$query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id;
else
return '';
if ( $field_value != '' )
$query .= " AND value LIKE '%" . $field_value . "%'";
/*
LIKE is slow. If you're sure the value has not been serialized, you can do this:
$query .= " AND value = '" . $field_value . "'";
*/
$custom_ids = $wpdb->get_col( $query );
if ( !empty( $custom_ids ) ) {
// convert the array to a csv string
$custom_ids_str = 'include=' . implode(",", $custom_ids);
return $custom_ids_str;
}
else
return '';
}
Example Usage: Get all members who have filled out the xprofile field ‘dogs’ and selected the value ‘poodles’.
<?php if ( bp_has_members( my_custom_ids( 'dogs', 'poodles' ) ) ) : ?>
How do I add more conditions to the dogs/poodles. What If I also want ‘birds’, ‘parrot’ as well as ‘dogs’, ‘poodles’ ?
If I de-activate BuddyPress, then everything is fine. If this is the case, then why would BuddyPress not be the issue? If it is your determination that BuddyPress is having an issue with some other plug-in, then why would you be asking me, your customer, to debug this for you. I would think that you would want to spin up a quick test site, apply the Eduma theme, and then debug the issue from your end.
I’ll just leave this and not worry about it. If other customers run into the same problem, or if that problem starts to spread into other areas, then maybe enough angry customers will draw the attention to get this fixed. I’m not going to debug this for you.
I’ve added a category option to activity updates using the following code:
// Add Cat to Buddypress Activity Updates
function my_custom_activity_meta_stuff( $content, $user_id, $activity_id ) {
bp_activity_update_meta( $activity_id, 'bpcat', $_POST['bpcat'] );
}
add_action( 'bp_activity_posted_update', 'my_custom_activity_meta_stuff', 10, 3 );
function add_bpcat_form_func(){
global $wpdb;
$result = $wpdb->get_results ( "SELECT * FROM wp_bp_xprofile_fields WHERE id='2'" );
foreach ( $result as $print ) { ;?>
<div class="bpcat <?php echo $print->id;?>">
In Search Of: <select name="bpcat" id="bpcat">
<option value="" disabled selected>Optional</option>
<?php $options = $wpdb->get_results ( "SELECT * FROM wp_bp_xprofile_fields WHERE parent_id='$print->id'" );
foreach ( $options as $option ) { ;?>
<option class="<?php echo $option->name;?>" name ="field_<?php echo $print->id;?>_match_any[]"value="<?php echo $option->name;?>"><?php echo $option->name;?></option>
<?php } ;?>
</select>
</div>
<?php }
} ; ?>
<?php
add_action('bp_activity_post_form_options', 'add_bpcat_form_func');
What I’d like now is to be able to either filter the sitewide activity feed by category or include the activity metas in what is search by /common/search/search-form.php
also – have you tried disabling BP Email ?
Emails will then be sent via the WP Email code.
Bizarre… I’ve never seen a similar report.
You’ll need to take some big swings at this.
Try deactivating everything but BuddyPress and use a WP theme like 2019.
Then start activating plugins one at a time and testing for the issue.
After deactivating BuddyPress, the issue goes away. When I activate BuddyPress, the issue returns.
It is very highly unlikely that the issue stems from BuddyPress.
BuddyPress does not touch comments on posts in wp-admin.
We are trying to help you narrow down possible causes.
Did you try deactivating BuddyPress and then test for the issue again?
Also, I don’t see how that URL can’t be found. I’m sitting on it right this second and here is the lower part of the text…
Please try again and please follow these repro steps…
Log into the site /wp-admin using the credentials I provided to you
Go to the LearnPress menu item
Click on Lessons – NOT Courses…Lessons (as I put it in the original issue)
Click on Download and Install the Eclipse IDE
Scroll down to the Add comment button and click the button
Now try to add a comment
I just did it again and it is broken
The same issue will happen if you try
Download and install the Java JRE or any other lesson
May 13, 2019 at 2:32 PM #437118REPLY
Huyen Anh
Keymaster
Dear jbonifacejr,
I’m checking it.
Best regards,
Huyen Anh
May 14, 2019 at 1:54 PM #437684REPLY
Huyen Anh
Keymaster
Dear jbonifacejr,
We checked and the reason is due to BuddyPress plugin.
With this, please contact with the main author of BuddyPress plugin. Hope they can help you solve this issue.
Best regards,
Huyen Anh
May 14, 2019 at 8:07 PM #437869REPLY
jbonifacejr
Participant
Can you be a little more specific as to what the problem is, so that when I reach out to them, I can provide them some guidance? What did you discover when you looked that makes you think it is BuddyPress?
I have already opened a ticket with Eduma and they investigated and told me the issue is with BuddyPress. I have reached out to them to get clarification on exactly what they learned, but while I am waiting for a reply, I would go on the assumption that they have investigated and they may be correct. Here is the thread with them…
https://thimpress.com/forums/topic/adding-comments-in-admin-mode-writes-the-comments-in-reverse/
You can clearly see that they have told me that BuddyPress is the issue.
NOTE ** This happens in /wp-admin mode, not when using the regular front end of the website. **
When adding a lesson, or updating, if you try to add comments to the lesson, they are written in reverse. So, if you typed “adding comments does not work”, it will show up as “krow ton seod stnemmoc gnidda”.
I have a video of the issue in action, but you don’t seem to have the functionality for me to upload that with my post here.
I am using WordPress 5.2, the Eduma theme version 4.02, and Version 4.3.0 of BuddyPress. I don’t have any messages indicating I need to update BuddyPress or WordPress or Eduma.
Repro Steps:
Log into the site /wp-admin
Go to the LearnPress menu item
Click on Lessons – NOT Courses … Lessons
Click on a lesson
Scroll down to the Add comment button and click the button
Now try to add a comment
I just did it again and it is broken
Welcome
I can’t invite Users to group because the User List in the inviting process doesn’t load.
BuddyPress 4.3.0 / WordPress 5.2 / Standard them which comes with pb
Thank you for the suggestion. Here is what I did, as well as the results.
All of the current extended profile fields were data being synced using the NADI add-on. I created a new text field to test with in the Base (Primary) field group and configured it the same: Required, “Only Me” visibility and Enforce field visibility selected. I edited an existing user profile, added some text to this new field and saved the profile.
I viewed the profile as an admin and could see both fields – the original and the new test field – that should be hidden. All good there. I switched to a subscriber account and reloaded the profile and both the original and new test fields no longer displayed.
This leads me to think there is an issue with the process of adding data to the extended BuddyPress profile fields using a sync process that somehow ignores the Field Visibility element, but that is corrected when the profile is manually updated.
Regarding PHPMyAdmin, this site is installed on an internal company server and, as such, I don’t have PHPMyAdmin or any similar tool at my disposal to be able to easily look in on the database tables, unfortunately. But knowing which table has this data in it will be helpful as I work with my IT support on any further analysis/diagnosis.
In the extended profile fields, I’ve created a field that automatically pulls in data using the process described further below. This field is required and is located in the Base (Primary) group of profile fields.
The issue I’ve run into is that I’ve configured the field to be visible to “Only Me” and have selected the option to Enforce field visibility, but when I look at the public-facing profile page, this field is still visible to any other logged in user, regardless of role. (I have confirmed this by logging in with a subscriber level account and viewing the profile page.)
The profile fields data import process:
I am using the NADI plugin (https://active-directory-wp.com/) to automatically create and sync users and user data from company Active Directory database. This plugin has an add-on tool that will subsequently sync selected data from the user WordPress profile over to the BuddyPress profile.
Troubleshooting steps I’ve already completed:
1. I’ve deactivated all plugins other than BuddyPress; the “Only Me” profile is still visible on the public-facing user profile page for any logged in user. It doesn’t appear to be caused by a plugin conflict.
2. I’ve changed to a default WordPress bundled theme; again, the “Only Me” profile is still visible on the public-facing user profile page for any logged in user. It doesn’t appear to be caused by a theme conflict.
WP Version: 5.2
BP Version: 4.3.0
NADI Plugin Version: 2.1.9 (Up to date)
NADI Add-on Version: 1.0.4 (Up to date)
I hope I’ve provided enough information. I’m struggling to determine why this profile field that should only be visible to the person who is logged in and no else is visible to every user. I also hope someone here might have a suggestion or recommendation for what I might try next.
Thanks.
I used to be able to find themes for Buddypress quick and easy. Now I’m having trouble finding anything. Where can I find a decent, free theme?
Thank you!
Those icons are not part of BuddyPress, afaik.
They are part of your theme or some other plugin.
Find out where they are coming from and either replace them on your own or discuss it with the icon creators.
I have my website through a hosting company. Latest version of WordPress and Buddypress. When I preview a theme, Profile works fine. When I accept and publish, profile shows up as a blank page with just the word profile and an edit link.
Groups seem to also work in preview mode. Once published I cannot create a new one with forum, step 3 takes me to the forum list and does not proceed. Attempting to enter a group forum does not allow me in, I end up on the main forum page..
My install of WP is fairly new, Jan 2019. I have tried disabling every plugin except bbpress and buddypress. Uninstalled and reinstalled Buddypress. I am running no redirects of any kind. Anyone out there experienced this and found a fix they could share?
Thank you for your responses.
@Venutius, the problem stops as soon as I deactivate BuddyPress.
Chris, indeed I’m using the BP Registration Options Plugin. Kindly share the fix.
Thank you.
Hi there,
I am facing filtering problem on my “Activity” page there “New Member”,”Posts” and “Comments” filter not working.
I am using WordPress 5.2 and BuddyPress 4.3.0 version. and http://dev.masum-billah.com/activity/ here is my activity page and http://dev.masum-billah.com/members/ here is my members page. on Members page “New Registered” filter showing 2 members which is correct.
Thanks in advance