I have custom fields on the user account tab.
I added these fields using these lines in functions.php:
/**
* Add extra fields to user account tab
*/
function showUMExtraFields()
{
$id = um_user(‘ID’);
$output = ”;
$names = array(‘salutation’, ‘first_name’, ‘last_name’, ‘company’, ‘job’);
$fields = array();
foreach ($names as $name)
$fields[$name] = UM()->builtin()->get_specific_field($name);
$fields = apply_filters(‘um_account_secure_fields’, $fields, $id);
foreach ($fields as $key => $data)
$output .= UM()->fields()->edit_field($key, $data);
echo $output;
}
add_action(‘um_after_account_general’, ‘showUMExtraFields’, 100);
/**
* Get content for extra fields in user account tab
*/
function getUMFormData()
{
$id = um_user(‘ID’);
$names = array(‘salutation’, ‘first_name’, ‘last_name’, ‘company’, ‘job’);
foreach ($names as $name)
update_user_meta($id, $name, $_POST[$name]);
}
add_action(‘um_account_pre_update_profile’, ‘getUMFormData’, 100);`
The fields are updated when a user updates his profile. So that seems to be working. Only when a user changes his password, all these additional fields are deleted while email and username remain unchanged. Somehow the password change process deletes all entries in custom fields.
I tried getUMFormData with other hooks like um_after_password_reset_fields, etc. but couldn’t manage to get it right.
Can you pls point me in the right direction to solve this riddle?
Thanks for your support.
Hagbard
]]>function myExlogHashAuthenticator($password, $hashFromDatabase, $username, $externalUserData) {
$generatedHash = sha1(strtoupper($username.":".$password));
return $hashFromDatabase == $generatedHash;
}
add_filter('exlog_hook_filter_authenticate_hash', 'myExlogHashAuthenticator', 10, 4);
If i change the password on the wordpress the password on my users external database didnt change. Is there something i can do?
]]>There is a red banner saying “Could not fetch account status. [Reconnect to your Pinterest account]” but clicking it does nothing.
Under catalog overview, there is also an alert saying “reconnect to your Pinterest account” but that is not clickable either.
When I go to the connection tab and try to disconnect, it looks like it’s doing something, redirects me to a welcome page, but when I click to start setting up my account again, it’s still connected with the old settings and errors. Nowhere to reset my password.
I’ve tried deactivting/reactivating the plugin and it still won’t disconnect.
Using version 1.1.0
]]>I have been messing arround with the wp_update_user but to no avail, can anyone shed some light?
Thanks!
]]>Hello!
Our team manually added users to our directory without immediately notifying them about their new accounts as we were still making some improvements to the website. So, we waited until everything was fine before informing them about their accounts.
Now that we are selecting the UM option to “RESEND THE ACTIVATION EMAIL” to all users, we notice that they can’t activate their accounts.
What happens is that the {account_activation_link} is redirecting them to their member profiles where they’re requested to insert their CURRENT and NEW password.
The users do not have access to any CURRENT password as it was automatically set by WordPress when the admins created the accounts. Therefore, they can’t activate their accounts or change their password.
Screenshot: https://snipboard.io/50s2g4.jpg
So, we are wondering how to fix this.
First, why are they being requested to write their CURRENT password if that password was set automatically by WordPress?
Secondly, why can’t they just be redirected to an URL where they insert their new password? — by the way, this is what happens when we select the option “SEND USER NOTIFICATION” when we first create their accounts.
Finally, is there a specific setting that we are missing? Is there a way to update/change this {account_activation_link}? Is there anything wrong with the way that we are creating their user accounts?
Can you please help us solve this problem?
Your advice is very much appreciated.
Best regards,
Paula Martinho
Is there a way to reset these or a place to look if I forgot the username?
I can get into my www.ads-software.com account, where I am now writing this. But I need to access my site. Thank you!
]]>I need some advice with an issue I’ve been facing lately.
I keep getting emails from WordPress about password changes and new user registration on my website. All they say is this:
Password changed for user: wpuser_qbrnuaitibka
or
New user registration on your site Dana Paraschiv | Blog de C?l?torii:
Username: wpuser_qbrnuaitibka
Email: [email protected]
This happens once every few days and I only receive this emails, there is no notification about the contact form or newsletter subscribe being completed.
Is there any way I can stop this? Or is it something dangerous I should look out for?
Thank you so much for your help!
]]>The following appears in the error log:
[21-Nov-2021 04:41:45 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /home/test/public_html/wp-includes/plugin.php on line 189
[21-Nov-2021 04:41:45 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /home/test/public_html/wp-includes/load.php on line 306
or
[23-Nov-2021 03:14:24 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /home/test/public_html/wp-includes/meta.php on line 570
[23-Nov-2021 03:14:24 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
The only way that user can access the site again with the original browser is by deleting their cookies for the site or we deactivate Cerber. It is not a problem for our administrators as they know to delete their cookies but it is not a very good experience for our members.
This has been happening for quite a while on a few different sites with quite different configurations of plugins. WP 5.8.2, Cerber 8.9.3, PHP 7.4 Tested on a staging site with Twenty Twenty-One theme, all plugins deactivated, no custom code and a basic .htaccess.