Password section missing in Profile page
-
I just launched a site yesterday and I have a small problem.
When I’m in the Profile page in the WordPress dashboard, I don’t have the option of changing a password. It’s blank (see in the link below).
It’s a really annoying bug. I’ve reinstalled WordPress using the button on the Updates page.
Anything else I should try?
-
This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install “Health Check”: https://ww.wp.xz.cn/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.
I’ve just deactivated all the plugins on my site and it still doesn’t show.
Is this on YOUR profile page or another user’s? Is this a “simple” site or multisite? Do you see any errors in the browser’s inspector console?
All the profile pages.
It’s a single site. Not a multi site.
Just checked the console and there are no errors.
Maybe it’s something to do with JavaScript. However, JavaScript is enabled on my Browser.
If you click where the button should be, does anything happen?
Nothing happens when I click where the button should be.
Everything is still in the HTML but it is ‘display: none;’ in CSS. All the HTML elements have the class of ‘hide-if-no-js’. See screenshot: https://d.pr/i/kzi2uu
Please try your browser in safe and/or incognito mode.
I have tried it in incognito mode and it still doesn’t work.
I’ve tried on different computers (Windows and Mac). I’ve even tried on my phone (Google Chrome). Tried in a different user account. It didn’t work in any of those.
Really, really strange š
There is a JavaScript failure somewhere, whether it shows in your console or not. When the page loads, the button is hidden by default. On load event, script adds a display style attribute to the hidden button element that overrides the hidden styling. With no functional JavaScript, the button stays hidden.
Maybe your WP installation has become corrupted. I would suggest you do a manual update of your installation from a fresh WP package download, even if it’s “updating” to the same version.
I’ve just reinstalled my version of WordPress by overriding the wp-includes and wp-admin folders of the install. I got the new files from ww.wp.xz.cn.
But, it’s still not working š Really annoying
Just thought of this, would there be any way of me overriding the CSS ‘display: none;’? Like adding some code to my functions.php file.
You would need to enqueue some JavaScript that sets the button element’s style attribute with
display: inline-block;. But if JS is failing for some reason, your script would work no better than the default version.Even if you were to cause the button element to display (by hacking the CSS file let’s say, though doing so is highly discouraged. This is just a thought experiment), without functional JS the rest of the password field routine would also fail to work.
What you could do is output your own simple password field (no JS wizardry) at one of the form’s actions, then handle the password change by your own means. Of course you couldn’t simply place the supplied password directly in the DB, it needs to be hashed in a particular way. Check out what core code does with the default field and do the same.
A quick and dirty way for the site owner to change a WP password outside of WP is to use phpMyAdmin and set the user’s password field right in the DB. When editing the field, apply the MD5 function. It’s the wrong sort of hash, but WP will honor it and update it to the correct version.
Ah, ha! Finally figure it out, kinda š
I added some javascript to the profile page of the dashboard from my functions.php file and I got the javascript to remove the ‘hide-if-no-js’ class from anywhere on the page.
The topic ‘Password section missing in Profile page’ is closed to new replies.