Support

Admin Tools

#34966 401 Authorization Required error logging in

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Friday, 30 April 2021 20:17 CDT

kwb

It's been a while since this website has been updated and also a while since we've used Admintools. At present, we can't login. We're getting a 401 Authorization error when we try to login. We've tried using the Akeeba URL and also tried disabling the Admintools plugin.

nicholas
Akeeba Staff
Manager

Delete the following two files from your administrator folder: .htaccess and .htpasswd. Please note that the file names start with a dot which makes them hidden. You will need to show hidden files in your FTP/SFTP programme or your hosting control panel's file manager to see and remove them. This will turn off the administrator password protection.

To understand why this happens and why you'll have to talk to your host about resolving this issue please read https://www.akeeba.com/documentation/admin-tools/atadminpw.html under "404 Not Found error page or Joomla error page when enabling this feature". This applies to your case as well. Your server's custom error pages for HTTP 401 seem to be served with the wrong HTTP status (200 OK instead of 401 Authorisation Required). Since password protection works at the server level with the server sending a 401 status to your browser to force it to ask you for a username and password, if the server messes up the status response this feature will not work. Also note that this feature is actually not implemented in Admin Tools itself; we simply create the .htaccess and .htpasswd files to let your server handle password authentication for the entire administrator folder.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

kwb

That worked, Thanks for the fast response !

nicholas
Akeeba Staff
Manager

You're welcome! I am glad I could help :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!