thank you r-a-y:)
buddpress adds the invailid-key error at bp-members-function.php:1856
so why it is “wrong”(if ! $wpdb->query…) that $wpdb->query can update the value?
i dont undestand it 🙁
// Change the user's status so they become active.
if ( ! $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 0 WHERE ID = %d", $user_id ) ) ) {
return new WP_Error( 'invalid_key', __( 'Invalid activation key.', 'buddypress' ) );
}
I am having this issue on our site. It is running KLEO Child theme. When a user tries to upload an image for the avatar you will only see a small box in the left top hand corner of where the picture preview should be. I have tried Chrome and Firefox browsers in which this happens on both. I have attempted to deactivate plugins and am not seeing this resolving. Please let me know what additional troubleshooting that you would like to see done or tested and I would be glad to do what I can to assist
WordPress 4.9.7
BuddyPress 3.1.0
update:
hmm i dont know. but it seems like the $user->errors is empty with var_Dump. but with print_r not.
also in the backend the user is activated when he clicks on the activation link. but $user->errors will give an error.
error_Log:
[17-Jul-2018 17:27:38 UTC] PHP Notice: Trying to get property of non-object in /mnt/web313/d2/98/57260698/htdocs/goUnhooked/wp-content/plugins/buddypress/bp-members/screens/activate.php on line 118
[17-Jul-2018 17:27:38 UTC] error varDump:||
[17-Jul-2018 17:27:38 UTC] error print_r:|1|
error_log(" error varDump:|".var_dump($user->errors)."|");
error_log(" error print:|".print_r($user->errors)."|");
i found the reason
in https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-members/screens/activate.php?marks=98#L62
at:line 101
i found the reason. php thinks $user->errors is not empty. but it is.
so $user->errors is empty. as my error_log says
[17-Jul-2018 16:51:26 UTC] error activte :
cheers pauapau
That’s what I’m trying to do, and what I believe the function bpex_change_profile_settings_default_tab is supposed to do. And I’m almost positive it was working before the upgrade to Buddypress 3. I had to leave the project for over a month and came back to it after the upgrade. I’ve found multiple sources/tutorials that give instructions on how to accomplish this, but all are pre version 3, and none now seem to work.
The override Settings > General screen is not my ideal solution, but it might be a good stop-gap. Thanks.
Tried using your code, but unfortunately it didn’t work for me. Site runs on BuddyPress Version 3.1.0
Does anyone have a fix for this?
Thanks,
Erik
I’m facing the same issue. It was working fine with earlier versions of BuddyPress, but now when you click “Go to the discussion” link in the email, it redirects to the 404 page.
BuddyPress Version 3.1.0 (latest version)
Can this be resolved within BuddyPress by adding a hook in functions.php or buddypress-functions.php file? Don’t really want to install a redirect plugin, as we still need a 404 page to show.
Thanks,
Erik
Thank you for you help guys!
i installed wordpress and buddypress new. There is still the same issue.
any idea?
Please use the code button when sharing code.
When extending Groups, you should use the BP_Group_Extension.
It’s easy to use and handles creation of nav items.
It’s safe to deactivate BuddyPress, you will lose the BP features but they will come back after you reactivate the plugin, so you can do it quickly to test then reactivate it.
@r-a-y
I haven’t tried that. I contacted WordPress a second time and now they decided to look into it for me, so I am waiting on that.
If I deactivate Buddypress, what will happen to my site? It is a member community full of groups and forums and I am afraid to break it.
Is it safe to just deactivate Buddypress like that?
Should have mentioned that I’m running WordPress 4.9.7 and Buddypress 3.1, along with the BuddyBoss Boss theme 2.4.3.
The code to activate a user can be found here:
https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-members/screens/activate.php?marks=98#L62
https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-members/bp-members-functions.php#L1798
It would be great if you are able to set up a fresh install of WordPress and BuddyPress to see if your activation problems are because of some custom code on your site.
How are your users logging in?
What happens if you deactivate BuddyPress? Do login attempts work? If not, it’s not a BuddyPress issue.
About the code that is linked:
https://buddypress.trac.wordpress.org/changeset/11766/trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php
If your theme contains either a /buddypress/members/activate.php or /registration/activate.php file, you replace red lines with green lines. If your theme does not have any of these files, then you don’t need to make any changes.
If you are still running into trouble, change your theme temporarily to see if your theme is the issue.
—-
If you want to roll back to an older version, you can do so on the following page:
https://wordpress.org/plugins/buddypress/advanced/
Under “Previous Versions”, select 2.9.4 and replace the copy on your server with that one.
Hello!
Someone knows if the code still working with the version 3.1.0?
I remember to have used the code from @lenasterg with the version 2.9.4 and was working perfectly but now with a website running the version 3.1.0 the code doesnt redirect the old setting URL to setting/notification anymore.
I am looking for a way to remove the general tab and redirect the setting URL to notifications. I already have a page where users can change their password so have two places where someone can edit the same information is a bit confusing.
—-
MOD EDIT – View the following thread for updated info:
Removing Settings General tab redirect to Other Tab
Wordpress 4.9.7 Buddypress 3.1.0
I am using WP SMTP integrated with SendGrid to send out the automated emails that BuddyPress sends to members as the members interact with my wordpress site (i.e. someone commenting, sending a PM, favoriting, etc.)
When those emails get sent out to yahoo and aol addresses I get an email that says:
This is the mail system at host gateway36.websitewelcome.com.
I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<yolojim@aol.com>: host mx-aol.mail.gm0.yahoodns.net[74.6.141.40] said: 554
Message not allowed – Headers are not RFC compliant[291] (in reply to end
of DATA command)
Reporting-MTA: dns; gateway36.websitewelcome.com
X-Postfix-Queue-ID: 80867400C8426
X-Postfix-Sender: rfc822; torus@drumsbygenre.com
Arrival-Date: Mon, 9 Jul 2018 20:33:42 -0500 (CDT)
Final-Recipient: rfc822; yolojim@aol.com
Original-Recipient: rfc822;yolojim@aol.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx-aol.mail.gm0.yahoodns.net
Diagnostic-Code: smtp; 554 Message not allowed – Headers are not RFC
compliant[291]
I also see that the emails are sending duplicate subject lines which I read could be the root of this issue.
1. Does anyone have a solution for this?
2. If the solution is making sure there is only one subject line, does anyone know how to execute this?
Thanks for your time guys 🙂
Check if you’ve set the buddypress members directory page in WP admin – Settings – BuddyPress – Pages – members
@billysgtr @venutius this is really cool news as i need the exact same feature (only authors can send private messages on buddypress) …..how do i go about getting the latest version? is it an official plugin now?
You are using v2.9.1. Your issue is addressed in BuddyPress v3.0.0 as we have stopped activating accounts by direct URL.
Activation now requires a form submission when you are on the activation page.
Actually, that does not work, I must have it wrong. The easiest way is to go to your menu edit page, and select profile in the BuddyPress options, these may be hidden so you will need to go to screen options and select BuddyPress
That’s not a feature that is supported right now. The issue is that bp does not store the activation code for the user, so it can’t look up the activation code and know it’s the right one but has already been activated for that user. I think you would need to raise a feature request on Trac for that.
With bp you can overload the user profile pages and replace their code with your own. The templates are located in the plugins/buddypress/bp-templates directory, either bp-legacy or bp-nouveau depending on your config. in that directory you would look in buddypress/members/single and you will see the various profile templates. You overload these by creating alternative files in themes/my-child-theme/buddypress/members/signle/ etc..