Plugin Author
Steven
(@shazahm1hotmailcom)
RE: I have a directory password protected site in Siteground staging that when I go to the admin health page, it wants me to log into the directory again and it won’t accept my credentials.
I’m sorry, I am not quite sure exactly what you are trying to log into that will not accept your credentials.
Is it the password for the site (I’m assuming you mean you’ve set up an htaccess password)?
Or, the WP admin?
Or, a password-protected page?
Can you give me some more details?
The DIRECTORY itself is password protected. The site in question is at:
https://staging2.southlewiscountychamber.com/
Credentials to see the site are UN: jim PW: stgngslcc
Sorry, I can’t give out the admin credentials. The only issue I can find with the site is if I go to the tools > health screen in admin, it logs me out of the directory ( Not WordPress) If I disable your plugin, I can access tools > health without any problems.
For the record, please don’t offer to send or post logon credentials on these forums: https://ww.wp.xz.cn/support/guidelines#the-bad-stuff
It is not OK to offer, enter, or send site credentials on these forums. We don’t want to encourage others to do similar things. It’s a fine line, but one that we need to enforce. Thanks for your cooperation.
Note, too, that developers/authors who ask for or accept credentials can get in a lot of trouble here.
That’s the password to the directory, it does not grant any WordPress privilege’s, not even subscriber. I thought if you could see the site, you might be able to use your browser dev tools to see what’s going on.
Understood — but it’s a fine line, so please don’t do that again. OK?
Plugin Author
Steven
(@shazahm1hotmailcom)
So, it is the site (htaccess) the jim login that gets logged out and does not allow you to log back in?
Yes, It duns me with the login box, but when I enter them and press enter, it just shows me the box again which prevents me from doing anything else on the page. It only has this behavior on the WP Health screen, everywhere else, it’s fine. I realize this will almost certainly go away once I make the site live, just trying to figure out why it’s doing this.
Plugin Author
Steven
(@shazahm1hotmailcom)
So you have used the Siteground Protected URLs feature in the Site Tools admin, correct?
And when you visit the core WP Site Health admin page, you receive the browser login popup, which requests you to login again but does not. Is that correct?
If it is, that protection is done at the server level; before WordPress even loads, let alone Connections. So, I am not certain how Connections could even affect this (other than its REST request would fail due to the site login requirement).
My host is also Siteground, and I used their Protect URLs feature to password protect my development site. Other than having to log in initially, I can visit the WP Site Health page as often as I wish without being logged out. And I am not being promoted to log in again.
With the site password protected, you will get the following notices in the Site Health:
- The REST API encountered an unexpected result
- Your site could not complete a loopback request
You will see these because of the site password.
If you remove the site password, these notifications in the Site health will go away.
Steven, just confirmed everything you said, I temporarily disabled the protected directory and was able to get to health were there were no errors. I wasn’t worried about the errors in health so much as being logged out of the directory when going to health, I have never experienced that before either.
Thanks for your help. Problem is resolved now, after reenabling the site directory I can now get to the health screen. The issue must have been something in the original protected URL that WP didn’t like, I’m guessing.