Have you checked your .htaccess file?
Something like this should be there if you are receiving this error, referred from this thread which a user had a similar authentication problem.
AuthType Basic
AuthName "My Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user
https://ww.wp.xz.cn/support/topic/authentication-required-message?replies=6
Let me know if this solves it or if we should try something else, I’ll receive an email if you reply to continue helping you out with this.
Although this is for logging in, which you are already logged in which narrows the problem down to a permissions issue make sure you have read this part of the Codex as well for setting up permissions correctly, linked below.
https://codex.ww.wp.xz.cn/Changing_File_Permissions
Hi Dave, I don’t have a htaacess file in the root directory of my site. I dotn believe i would however as i am running IIS6 and self hosting?
the server at http://www requires username and password
That is your FTP username and password.
Can you post a link to your site?
so if i add IUSR_Server with full control to the root directory of the site, i can upload now… but if go to the media folder, and click on an image, when it attempts to load the attachment details the media shows a broken link and it asks to authenticate again?
@kmessinger my site is: http://www.davidwlane.ca and as for FTP credentials i just tried to create an FTP user in the server and iis with no luck.
Firstly, I’d recommend to try using a different browser to make sure that this isn’t browser related.
I use Chrome, IE, and firefox when testing, each give the exact same issues with the authentication
ok i can confirm this as well. if i grant all users and groups full control on my server to the root folder for my site, i still receive the authentication message, but only when trying to view the attachment details. Yet if i click on “edit” then i can edit the image without issue, once i click cancel it will ask me to authenticate as i am returning tothe attachmen details page.
Are you sure this isn’t a server authentication message rather than a WP related message?
Ok ive done little more digging.
David, i think you are correct, here is what i found…..
If i check my uploads folder after a successful upload, i see 5 jpegs have been created by wordpress as such.
filename.jpeg
filename-80×80.jpeg
filename-150×150.jpeg
filename-300×300.jpeg
filename-768×768.jpeg
when i compare the permissions on each file, the ones that have a size indicated have full control permissions for Administrator, Administrators,System, and Users
The original jpeg file is different with Administrators, and System set to full control, network service (special permissions) and power users Mod, RW, R, W
if i add administrator and users with full control to this “original” file then the media library will work.
I added IUSR_SERVER with full control only to the wpcontent folder and then set it to “replace permission entries on al chile objects” and that seemed to solve it fo now….
that beign said ive seen that allowing full control to this user account is not a good idea?
It’s a good idea if this is your account and isn’t shared with anyone else, as in your main administrative account.
Sorry not quite following? If i understand correctly…..
You are saying its ok as long as IUSR_server is not the primary administrator account on the server as is not a member of the administrators group? as in I need to have two working user accounts 1 -Administrator 2 – IUSR_SERVER.
whereas if isur_server was the only administrator account that would not be good right
If one admin account can do everything you need it do on your server then you should be set bud!
I believe so enough, not familiar with that setup the one I linked earlier above is a tad bit different.
well i went to add new photos today and the issue came back π it only affect the one page however, so just more so annoying…… could this be something i need to change in wordpress settings somewhere?
If it’s the still the authentication error it has to be something regarding server related authentication.
Even though I’m guessing this doesn’t seem to a WPORG issue, I did some digging and came up with these results which you may want to read assuming it’s the same error.
http://stackoverflow.com/questions/4996637/iis-6-suddenly-requires-authentication-on-a-website
https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9b619620-4f88-488b-8243-e6bc7caf61ad.mspx?mfr=true
https://support.microsoft.com/en-us/kb/324274
Let me know if any one of those solutions posted within has helped you, it has to do which user has authentication rights to perform certain actions such as uploading images.