• Resolved dlanebc83

    (@dlanebc83)


    Hi everyone, when i try to upload media files into wordpress, i am recieving an authentication required: the server at https://www requires username and password i enter my wordpress credentials and nothing happens. It seems the file does get uploaded, as i can “edit” the file, yet on the main media page i see a broken link? This pop up will occur for each file i attempt to upload, and if done in a batch of 5 ill get the login prompt 5 times in a row…. The funny thing is, sometimes i can upload other files without a prompt to login, and these files show a thumbnail no problem. I have a mix of media types png, gif, jpg and some of each work while others some of each dont.

    I have already checked permissions on my upload folder in IIS6 and i have admin, administrators, authenticated users, system and SERVER IUSR set to full control.

    Any thoughts?
    Thanks

Viewing 15 replies - 1 through 15 (of 21 total)
  • 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://www.ads-software.com/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.www.ads-software.com/Changing_File_Permissions

    Thread Starter dlanebc83

    (@dlanebc83)

    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 https://www requires username and password

    That is your FTP username and password.

    Can you post a link to your site?

    Thread Starter dlanebc83

    (@dlanebc83)

    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: https://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.

    Thread Starter dlanebc83

    (@dlanebc83)

    I use Chrome, IE, and firefox when testing, each give the exact same issues with the authentication

    Thread Starter dlanebc83

    (@dlanebc83)

    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?

    Thread Starter dlanebc83

    (@dlanebc83)

    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.

    Thread Starter dlanebc83

    (@dlanebc83)

    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.

    Thread Starter dlanebc83

    (@dlanebc83)

    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.

    https://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.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Authentication Required’ is closed to new replies.