When I change the username, I click for the plugin to send an email to the user. This email was being bounced back by Gmail.com and Outlook.com as failing origin checks (dmarc etc.)
I checked all my settings and noticed that the FROM address was incorrectly set to [email protected].
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
From: DOCRN <[email protected]>
Sender: my correct email
To: my users email at gmail.com
Reply-To: my correct email
Message-Id: <[email protected]>
Subject: username changed
When I examined the plugin files I identified the fault.
In the plugin file /includes/mail.php the FROM setting has been hard set;
$to = $user_info->user_email;
$blogname = get_option('blogname');
$siteurl = get_option('siteurl');
$subject = 'username changed';
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: $blogname [email protected]" . "\r\n";
$message = "
I have changed this on my site, but it needs addressing from source.
]]>Can you please update the change log for this plugin?
It is currently missing release notes for the last two updates (1.0.5 and 1.0.6).
]]>Running latest version of both plugin (1.0.5) and WordPress (6.6.1).
Error:
Deprecated: Creation of dynamic property EasyUserNameUpdater\EasyUsernameUpdater::$db is deprecated in /app/public/wp-content/plugins/username-updater/init.php on line 31
]]>
Hello.
I use make.com for my automation. Can I trigger username change from there trough WP webhooks.
I can change anything except this with this method.
Any ideas how I can do this?
]]>I checked my database after using this plugin however the user_nicename wasn’t updated.
]]>I have this error, disappera only when I deactivate the plugin
[11-Mar-2024 20:10:25 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/xxxxx.com/public_html/test14/wp-includes/functions.php on line 7241 [11-Mar-2024 20:10:25 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/xxxxx.com/public_html/test14/wp-includes/functions.php on line 2187
This is such a simple and useful plugin! ??
BUT it has a flaw: when changing usernames you probably want the users’ permalink to be the same as the username, and the plugin (nor WordPress) offers no way to change that.
I think this would be a very natural thing to include when offering the change of usernames? A simple field for user_nicename next to the field for user_login would suffice.
In my case the users’ sanitised email adress equals the permalink, so all my users email addresses are accessible through their author permalinks… ??
I know there are two earlier topics about the same issue, but they are both closed without replies. Time to fix this? Or answer? ??
]]>Hi I’m getting these error codes when I login to work press (6.3.1)
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vhosts/millhillwebsitedemo.co.uk/httpdocs/demo/wp-includes/functions.php on line 7127
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/millhillwebsitedemo.co.uk/httpdocs/demo/wp-includes/functions.php on line 2182
There error codes popped up after I updates WP to the latest release.
Any ideas?
Cheers Steve
]]>So, I guess I should have read the support forum before using this plugin because this problem mentioned two years ago by someone else but without any response inexplicably still exists: the author archive URL is the old username, not the new username.
This seems like something that needs attention?
]]>Say a user owns several posts on the website. After I change the username of that user, will the website still know that the owner of the content is that user? I ask because one of the manual methods to change a username is to create a new one, delete the old one, and WordPress asks at that point “What should be done with the content owned by this user” and the answer is typically to Attribute all content to the newly created user. Not sure if some similar processing needs to be done and whether it is taken care of by this plugin?
]]>I have started receiving an error when trying to send an email update letting the user know that their username has been updated. It just says “Error: Mail cannot be sent.” Other wordpress generated emails are firing and being delivered just fine.
]]>Hi there, we noticed that this plugin throws a deprecation warning in PHP 8.2:
PHP message: PHP Deprecated: Creation of dynamic property EasyUserNameUpdater\\EasyUsernameUpdater::$db is deprecated in /public_html/wp-content/plugins/username-updater/init.php on line 28
Here’s a third-party help page about how to fix it: https://php.watch/versions/8.2/dynamic-properties-deprecated
]]>Hello, thanks for the user-friendly interface for editing usernames!
Today I tried to use you plugin in multisite web and found that after changing $this->db->prefix
to $this->db->base_prefix
in init.php
file it works fine with it.
I apologize if I did not take into account some feature and in fact this is not an exhaustive solution. In any case, it would be very cool to get multisite support in the next version)
]]>Hi Yogesh,
I like and have used “Easy Username Updater” on a number of occasions. However I’ve encountered the following problem:
I use Ultimate Member to register and login on my website ceroc.nl
To become a member (get an account), a new member uses the registration form. The membership/account request then gets given the (Ultimate Member) status “Pending Approval”.
At this stage I (would like to) use Easy Username Change to change WordPress username to a new membership number, before approving the membership/account. Easy Username Change lets me do this.
However when I then change the (Ultimate Member) status to “Approved” and inform the new member of his/her membership number (username), logging in with either the new username/membership number or e-mail results in an error message:
“ACCOUNT PENDING: Your account is currently not active. An administrator needs to activate your account before you can login.”
No matter what (Ultimate Member) status I give the account after that, the account stays un-accessible.
I seems like I can only use “Easy Username Change” on accounts/memberships which are already approved, by which time the new account username has already been passed to the new user without me having had to chance to change it into a membership number instead.
Can you help me please?
Kind regards,
Bart`
]]>Hello,
I installed this plugin, changed one username and then uninstalled the plugin. I found that the username reverted back to the original.
Is it necessary to keep the plugin active in order to maintain any changes?
]]>Everything works well.
I can edit mail.php fine to update the email, but am scared it will get updated over in the future.
I’d love an option to update the email message and from address in the backend.
Or a hook/filter so I could add to my theme functions.
Thanks
]]>Hello
I would like to translate your plugin in French. Never done that before, but a message shows ‘plugin not ready for translation’. Could you do that so that i can translate it ?
Thank you ! ?? Eli
Hi Yogesh
I would like to install the Easy Username Updater plugin after a recommendation I saw in this article, https://themeisle.com/blog/change-wordpress-usernames/ . However there are warnings on the plugin in WordPress saying that it hasn’t been tested with the current version of WordPress. Do you have plans to do this testing and if so, when?
]]>I’ve been using this plugin for quite a while but only just today did I realize that when you click on the author name associated with a post that the URL for the author is still using the old username instead of the new one.
So, for example, if I changed my username from “mysite_6949” to “myname” it still looks something like this…
https://www.mysite.com/author/mysite_6949
instead of updating to this…
https://www.mysite.com/author/myname/
Is there a way to fix this, so it matches with the updated username?
]]>Hello,
I followed your directions and uploaded your plugin, but I cannot find the My CMS page that is in your screenshot. It is not in the users tab or any of the tabs on the right side of my page. I cannot change the username. Please assist.
]]>Hi,
Thanks for this plugin it’s very handy.
I noticed many users were not getting notifications, and indeed my own Gmail account treated it as spam. That’s when I noticed that the plugin sets its own From fields, sender name is set to the website’s name, which is OK, and senders address is set to [email protected] , which is not so good for deliverability (breaks authentification protocols such as SPF/DKIM).
I just commented this line of code in mail.php,
$headers .= "From: $blogname <[email protected]>" . "\r\n";
I then sent a test notification and both fields were back to the default WordPress settings : From name is WordPress and From address is [email protected] (where mydomain is actually my domain)
Indeed the test notification did not get treated as spam.
My suggestion would be to leave these settings as default, first because it avoids sending the notifications to spam, second because it makes maintenance easier (if you want to customize From address you just do it in one place).
Thanks again
]]>Hi,
I love your plugin, but is there any way you could add an option so other roles can access it?
I’d like to have a membership editor role, that just adds and edits users. They would need access to this plugin, but nothing no other plugins.
If you would consider adding this capability I would be very grateful.
Thanks in advance,
Jim
When I change the username, will it update user_nicename?
]]>Where can I change the text sent by email?
thanks.
Greets,
Jeroen
Hello Yogesh,
Do you have a LinkedIn profile? I’d like to connect. Thanks very much. Paul
]]>Hey there,
i just installed the plugin, when i went to the backend page to adjust a username, i got an error 500. Log states:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 2031616 bytes)
Using flywheel as a host, might this be caused by the number of users in the db (about 12.000) I also saw a memory exhaust error for Postman plugin, you plugin doesn`t trigger any email sending when approaching the username asjust page right?
]]>Hello,
Just curious because I want to change the superadmin’s username for security purposes.
Do I have to do anything manually here?
Thanks so much.
Jesse
]]>I see that this plugin has not been updated in a while. It may not need it. However, before I install it, I was just wondering if it works with the current version of WordPress. Has it been tested? Thanks!
]]>Hi
I hope you can help; I’ve created a new role for a user who needs to be able to access and edit Users in wp-admin. Using User Role Editor, I’ve locked that user down so all they get on the wp-admin page is the Users menu group, complete with options for the plugins Export to CSV and User Role Editor. However, I need her to be able to change usernames using your plugin, but I can’t find what capability I need to add to enable her to do that; at the moment it doesn’t appear in the Users menu group for her.
Many thanks
]]>Hey there, does this work on user registration too? Or is it a manual process where we need to run it every now an then.
]]>