Can't Log In to Admin Page

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by mimacdonald on June 30, 2009 at 1:03am

I'm stuck. I was messing around within the admin area of my new Drupal installation. I host on GoDaddy. At some point, I unchecked the login box for the admin page and now I cannot login. Duh, I should've figured it was there for a reason, but now I can't get in.

Fortunately, I haven't done anything with it, aside from messing it up. Is there some way to get that log in box back on the admin page or should I just reinstall and start again?

I feel so silly.

TIA,
Marie

Categories:

Comments

Try this

Posted by skowyra on June 30, 2009 at 1:22am

Marie,

You should be able to login using the site url followed by "/user" (sans the quotes)

That will bring you to the Drupal login page.

Jim

Another Log in problem

Posted by pjkwis on March 2, 2010 at 2:18am

Just installed SMF which is supposed to tie into the Drupal log in. However, it did something funky to where the page just reloads when I try to log in to Drupal. Since I can't log in as the admin, I can't even disable to module. Any ideas?

Delete SMF folder

Posted by randomnets on June 10, 2011 at 3:24am

For future visitors, the "fix" was to delete the offending SMF installation folder. Some script was erroring out, giving a blank page whenever someone tried to log in. We had just upgraded to SMF 2.0, so deleting the old installation wasn't a problem.

Login issues

Posted by Kwarkoo on June 26, 2011 at 8:31pm

Download firefox and login with the firefox browser

I know, I know!!! It sounds crazy but it works.

This solution goes against everything I know about browsers, but I have done a lot of testing with different locations browsers and drupal versions. The Only thing that's consistent is the successful login with firefox.

thats true .. this always works..

Posted by satyakadiyala on May 26, 2012 at 11:39am

beats me too.. i never could understand how this happens.

can't login

Posted by DocDJ-forum on June 7, 2014 at 8:39pm

THANK YOU, THANK YOU, THANK YOU!!!!
Hopefully the problem will go away when I logoff my PC and log in again. but FF did the deed!!

thank you! , Lol, I tried to

Posted by aguxho_muxho on November 12, 2011 at 4:14am

thank you! , Lol, I tried to put / login or / q = login lol, I need a lot of experience

Thaks

Posted by tdevelopers on May 1, 2012 at 8:08pm

Thanks Sir, i was worried, but after your suggestion , m glade

login

Posted by Arun7987 on November 14, 2012 at 7:31am

Sorry,I don't get the login.
Is it the core drupal login page shows ? or we should create one?
I tried "/?q=admin","/?q=login" but it get the page

It Worked

Posted by mimacdonald on June 30, 2009 at 2:34am

Thanks jskowyra. Your idea worked and I fixed it.

Marie

Same problem as pjkwis

Posted by ldekay on July 8, 2010 at 10:27pm

Our site has been up and running fine for months, then all of a sudden I can't login under any username, even SuperAdmin. Entered username and password and it cycles back to the login page. Asked for a new password and followed the email link, again cycles back to the login page... but now it shows the username as being online. Did the same thing with two different usernames with the same result. Any suggestions???

Is this an issue on any

Posted by last call media on July 8, 2010 at 11:05pm

Is this an issue on any computer or browser you try?

login problems

Posted by rosan on June 27, 2012 at 9:54am

Have the same problem. Keep trying to log in with username and password. The Drupal homepage accepts them, but my own website doesn't. very frustrating...

This problem really doesn't

Posted by rolodmonkey on June 28, 2012 at 1:50pm

This problem really doesn't have anything to do with the Drupal homepage. Users on drupal.org are not automatically allowed to log in to other Drupal sites.

What version of Drupal are you running?
What is the address that you are trying to log in to?
Is this a new site?
Was it working before?
Have you created a user on your site?

Learn more at iRolo.net.

problem solved. i was running

Posted by rosan on June 28, 2012 at 1:57pm

problem solved.
i was running drupal locally and the password change that it let me do (email, link, new password etc.) didn't affect my local copy of drupal. Had to go in and manually change it.
Thanks for the response!

Solution, but don't understand what the problem was!

Posted by ldekay on July 8, 2010 at 11:42pm

After writing my note I went back and tried clearing cache, cookies and logins for Firefox browser and now I can get in. Had the same problem with IE8, Chrome. Just tried Chrome without clearing cache, etc. and it also works now. I don't understand what's going on that clearing cache on one browser will fix another browser. Can anyone enlighten?

I am having the same problem.

Posted by walterbyrd on August 4, 2010 at 2:42pm

I am having the same problem. I am using firefox 3.6.8.

I have drupal 6.17 installed. Putting '/users' after the site name does not help - that just gets me a 403 error.

User, not users..

Posted by Jay Adan on August 4, 2010 at 2:50pm

Walterbyrd,

I've stumbled on that once or twice myself but you want to use /user (singular) not/users (plural).

  • Jay

had the same problem - i'm

Posted by A Romka on September 27, 2010 at 12:32am

had the same problem - i'm thinking something funky is going on with cookies / cache .. couldn't login in chrome (page kept cycling back to login form even from "restore password") but then tried in FF and it worked fine.

Network Resources - www.nacnetwork.com -

Loggin issue with different browsers

Posted by Kwarkoo on December 2, 2010 at 12:16am

I have a 2 Mac network, with VM fusion; installed Ubuntu LAMP with Drupal.

When I tried to login into the Admin pages from Safari, no joy; locally or from 2nd Mac;
After going bold from pulling my hair out, I download and tried Firefox 4 beta and it worked (Logged in without any issue.

This issue can be replicated; I have logged this issue but the guys think I am insane.

Anyway it's a work around for now.

I have a 2 Mac network, with

Posted by Kwarkoo on December 2, 2010 at 12:14am

I have a 2 Mac network, with VM fusion; installed Ubuntu LAMP with Drupal.

When I tried to login into the Admin pages from Safari, no joy; locally or from 2nd Mac;
After going bold from pulling my hair out, I download and tried Firefox 4 beta and it worked (Logged in without any issue.

This issue can be replicated; I have logged this issue but the guys think I am insane.

Anyway it's a work around for now.

I have a 2 Mac network, with

Posted by Kwarkoo on December 2, 2010 at 12:14am

I have a 2 Mac network, with VM fusion; installed Ubuntu LAMP with Drupal.

When I tried to login into the Admin pages from Safari, no joy; locally or from 2nd Mac;
After going bold from pulling my hair out, I download and tried Firefox 4 beta and it worked (Logged in without any issue.

This issue can be replicated; I have logged this issue but the guys think I am insane.

Anyway it's a work around for now.

Had the same issue and fixed it

Posted by MyriamB on December 11, 2010 at 3:57am

Drupal 6.19. Working on Mac OSX Snow Leopard.

I was ok to login with Firefox. But I couldn't log in to my website using Safari: Access denied message was displayed. On Firefox side, in recent log entries, I could see that the atempted login was sucessful... Weird.

Here is what I did:

1- Disabled and uninstalled all unused modules. Among them: Addthis, Chaos Tools suites, Panels, Numbers, Node reference, JQuery Eyecandy, Views Embed Form, Link, ImageAPI ImageMagick, Color.

2- Empty session table of database via PhpMyadmin

3- cleared all caches and cookies from all browsers on my computer

4- Atempted to login as admin in Safari: Success!

5- Atemped to login as user in Safari: Success!

I have still the same login problem with Chrome, and it still gives me Access denied message when tyring to login. But as my client work with Safari, I'm ok.

Hope it could help someone else.

Had the same issue and not fixed it...help me please

Posted by azlura on December 25, 2010 at 3:35am

My site has been running fine for a years, then all of a sudden I can't login under any username, even SuperAdmin. Entered username and password and it cycles back to the Homepage. Asked for a new password and followed the email link, again cycles back to the Homepage...

that's happen after i added a google ajax search module but i cancel for used it...and after disable that's module i want to create block but caould not....and then i log out....after that i want to LOGIN and add some posting but after i fiil in username and password...I can't login and it cycles back to the homepage...

I empthy cache on database and browser...but can't solve the problem.....i used opera, chrome and mozilla also can't solve the problem until now.

I have 2 website with the same problem and used Drupal v5.1.2 and v4.7
my website is : http://freewareshare.net and http://wirediagram.net Any suggestions ???

Thank you for your answer...
I really appreciated :)

Greetings

my problem was solved now...

Posted by azlura on December 3, 2011 at 12:13am

After waiting a few months, and some advice on this forum no one can, finally I try to "UPGRADE" drupal from 5x to 6x but the first time you must back up your database, finally after the upgrade is complete, I can login again with the old username and password....Cheerss :D

this is my site http://freewareshare.net

Thank you

Pls Help Me with this

Posted by retrosetro on January 28, 2011 at 4:41pm

Please i need help concerning this challenge, i uploaded my site to the remote server after disabling the clean URL, then i logged in with the super admin password and username so that i will be able to enable clean URL BUT the admin page did not open. It is giving error 404 which i don't understand. please help me out

Browsers and servers are

Posted by rolodmonkey on January 28, 2011 at 4:53pm

Browsers and servers are getting much pickier about cookie/session domains. I have also run into a problem if the admin theme is different from the content theme.

Here is what to do:

  1. Don't use clean paths until you are sure you can log in. So, go to yourdomain.com/?q=user. Instead of yourdomain.com/user.
  2. Don't depend on the login block. So, go to yourdomain.com/?q=user. Instead of yourdomain.com/admin.
  3. Try to login in there.
  4. If you cannot get in, pay close attention to the path that you are redirected to. Did you start at yourdomain.com, and now you are at www.yourdomain.com? Is it the other way around? If the domain did change, try logging in again using the domain that you were redirected to. In other words, if yourdomain.com/?q=user did not work go to www.yourdomain.com/?q=user, or vice-versa.

Learn more at iRolo.net.

Thanks alot

Posted by munawarDrupal on January 17, 2012 at 10:30am

RoloDMonkey ! It fixed the problem.

Administrative panel/bar & Editing mode

Posted by oups on August 23, 2012 at 5:09pm

My question is about Administrative panel/bar & Editing mode. Off your topic, and current. Thanks in advance!
I can't view the Administrative panel/bar & Editing mode after my superAdmin login on my local server (my site is in development). After login I can view some content from my previous site (pre-error) but when I click on "Edit" or "Configure the block" it takes me to a blank screen. It's a dead end. I can back up to the home page but no editing or admin access to my editing mode at all. Please, help!

Can you please start a whole

Posted by druderman on August 27, 2012 at 1:29pm

Can you please start a whole new topic? This will help future generations.

One more thing...

Posted by rolodmonkey on November 15, 2012 at 1:24pm

One more thing to try is to include index.php in the paths above. For instance, where I say yourdomain.com/?q=user, also try yourdomain.com/index.php?q=user.

If you discover that you have to include index.php, you may want to get someone to look at your server configuration. It should not be necessary to do this, and it suggests that there may be other problems with your configuration.

Learn more at iRolo.net.

login

Posted by Arun7987 on November 16, 2012 at 4:26am

thank you for the replies.
One doubt.yourdomain.com/?q=user. from where this login page is coming whether it is from drupal core or from the theme

Saeed

Posted by tiro pro on February 3, 2013 at 4:24am

thanks alot.... shakthi

Posted by sakthipriyadevakumar on March 20, 2013 at 5:49am

thanks alot....

shakthi

Thanks for that tip!!!

Posted by emburaman on March 8, 2014 at 11:14pm

Thanks for that tip!!!

Which page?

Posted by pdcarto on January 28, 2011 at 4:45pm

Which page gives you a 404 error? Is it the login page, or the user page that you normally get after logging in? Or something else? Do you mind posting the site url?

login

Posted by kamaljeet1984 on June 18, 2011 at 5:20am

How to login admin panel. That shows access denied in the front page

See

Posted by rolodmonkey on June 26, 2011 at 7:56pm

not working for me

Posted by npchasin on July 20, 2011 at 3:21am

yourdomain.com/admin
yourdomain.com/?q=user
www.yourdomain.com/admin
www.yourdomain.com/?q=user

plus clearing all cache in firefox and safari....

nothing is leading me to a login....

help!!

Is your domain available on

Posted by rolodmonkey on July 20, 2011 at 9:19pm

Is your domain available on the web? What is the real address?

Learn more at iRolo.net.

Worked!

Posted by dc_marc on August 8, 2011 at 8:00pm

The first solution suggested worked for my issue. Thanks for the help!

I've tried each of the suggestions listed on this forum and many others, but can't seem to find a way to log in. I went through the install process no problem, and it was supposed to end with me logged in, but it just went straight to the site.
http://sarahsuttondesign.com/new

Any thoughts?

Don't have time to look

Posted by last call media on September 23, 2011 at 2:24pm

Don't have time to look further, but here is a hint:

http://sarahsuttondesign.com/new/index.php

ugh. I can't thank you

Posted by sarahsut on September 23, 2011 at 2:30pm

ugh. I can't thank you enough. Of course it would be something silly like that. Thanks again! Maybe the problem was that I was working on this at 2am last night and my eyes were going crossed.

I'm glad you found the

Posted by rolodmonkey on September 23, 2011 at 3:18pm

I'm glad you found the solution. However, you need to check your server settings and make sure that index.php is set as the default page to load when only the folder is requested. It should look something like this:

DirectoryIndex index.php index.html index.htmls index.htm

Also, there may be a difference between 'new' and 'new/', but I don't remember what settings control that. Normally, apache is set up to recognize a folder without the trailing slash by default so I haven't had to deal with that case in a long time.

Learn more at iRolo.net.

login problem

Posted by mudatrust on October 26, 2011 at 1:47pm

any time i want to login it will take back to wampserver page after try all these solution

To directly reset your password, log into phpMyAdmin and execute the following mySQL statement:

UPDATE users SET pass = md5('newpassword') WHERE uid = 1;

Enter your new password in the md5 function - it will automatically be converted via a one-way hash (this is why we can't retrieve your old password - the decryption is a one-way process). Note that for earlier versions of Drupal you may need to use SET password, instead of SET pass.

This will effectively reset the Drupal admin password for user 1. Note that you can use this to reset the password of any user, although this is typically unnecessary as you should be able to simply log in as admin user (user 1), under which you have the ability to reset any user's password.

please anybody who will help me solve this problem because im very tired now...

I can't login

Posted by jspuler on December 6, 2011 at 2:44am

when I login on my website, just loads a white page , I log to try to fix a little bug that appears in my page, but i can't login, i don't know what happened.

this is the little bug maybe this have a relation wiht my problem:

http://s2.subirimagenes.com/imagen/previo/thump_7211434error.png

It is saying that headers are

Posted by rolodmonkey on December 6, 2011 at 5:05pm

It is saying that headers are already sent on line 1 of index.php. That is a big problem. Take a look at the index.php file and make sure there is absolutely nothing before the first php tag.

Learn more at iRolo.net.

this say index.php

Posted by jspuler on December 7, 2011 at 1:48am

the page work properly in the past and something happened, not sure if the problem comming for a module actualisacion, because it was the only thing I did the last time I connect to the page, or if any partner did something wrong

this say index.php

<?php

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/

/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());

require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();

New or modified module

Posted by skowyra on December 7, 2011 at 2:06am

Did you add a new module or modify one. This can occur when a php closing tag gets added to a file such as when creating a new .module file. Drupal php files should only contain the opening php tag but not the closing tag. There's more here under PHP Code tags:

http://drupal.org/coding-standards

Custom Drupal7 Theme

Posted by archanarj9 on February 23, 2012 at 6:26am

Hello Guys I m new in Drupal And Now what i m doing is Using custom Html Theme for my Site. Which i can see well also.but my problem is when i logged out of the admin than can't access my Admin panel . Why ? Even though i tries for ?=admin then its showing me Access Denied.Can anyone suggest me how to work with admin panel as well as my custom theme.Thanks in Advance

Wow okay I found out one thing that will cause it to not work is setting your default windows time out of sync. If you change it to several hours ahead or behind time it could cause you to not be able to login to your website. Restore it back to the defaults and clear your cache and cookies and then close out the browser and restart it. It worked for me!

-Marxton.com

Cookie Domain

Posted by fahey252 on May 6, 2012 at 5:12pm

If you just transferred your site from one domain to another and no one can login into the site, you need to update your Cookie Domain.

In the settings.php file, update the $cookie_domain variable to your new domain name starting with a period. Such as:
$cookie_domain = '.example.com';

Login in missing

Posted by Jeannieandrews on November 6, 2012 at 7:06pm

I am new to this and a high school teacher got one of her kids to build my site, he just dropped it in my lap, anyway while working around in themes I logged out and now the admin toolbar is missing and when I use the ?q....it says access denied, help

The admin toolbar doesn't

Posted by dpatte on November 6, 2012 at 7:27pm

The admin toolbar doesn't usually appear unless you are logged in. Can you log in? you could try going to your site at yoursitename/user

My site comes up when I

Posted by Jeannieandrews on November 6, 2012 at 8:03pm

My site comes up when I Sitename.com/?q=user. But somehow I logged out when in themes and now I don't have my admin toolbar

My site comes up when I

Posted by Jeannieandrews on November 6, 2012 at 8:03pm

My site comes up when I Sitename.com/?q=user. But somehow I logged out when in themes and now I don't have my admin toolbar

When you go to

Posted by dpatte on November 6, 2012 at 8:16pm

When you go to sitename.com/?q=user are you presented with a login screen? If so, log in, then you should get the admin toolbar (assuming your account was given admin priveleges). If you don't see the login screen, you may already be logged in, and seeing your profile. In this case go to q=admin to see if you can see admin options there.

We can resolve this offline if you want.

can't login into my website

Posted by jhansoul on April 5, 2013 at 2:25pm

hi guys,

I can't login into my website.At first I thought it was a password problem so I tried to reset it but it keeps giving me the following error message:

PDOException: SQLSTATE[HY000]: General error: 11 database disk image is malformed: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array ( [0] => 0 [1] => user [2] => User %name used one-time login link at time %timestamp. [3] => a:2:{s:5:"%name";s:5:"admin";s:10:"%timestamp";s:10:"1365106554";} [4] => 5 [5] => [6] => http://www.daydreammassage.be/user/reset/1/1365106554/X74EIrGoAQZm7kuybf... [7] => http://www.daydreammassage.be/user/reset/1/1365106554/X74EIrGoAQZm7kuybf... [8] => 91.182.255.241 [9] => 1365171853 ) in dblog_watchdog() (regel 154 van /customers/6/7/e/daydreammassage.be/httpd.www/modules/dblog/dblog.module).

Can someone help me please?

Your Database is Probably Toast

Posted by rolodmonkey on April 5, 2013 at 8:24pm

This doesn't have anything to do with the thread of this conversation. There is something seriously wrong with your MySQL database. There is a little more information here:

http://drupal.org/node/1311562

But mostly, I hope you have a recent backup of your site, because you are going to need it.

Learn more at iRolo.net.

lost user log in screen

Posted by LCIS on July 2, 2013 at 10:53pm

Your post of January 2011 re Browsers and lost login pages has saved my life and spared me HOURS of work. I thought I had inadvertently deleted the user login page or something! I had tried unsuccessfully to get to the access page using ../user and .../q=user but these all took me to a Page Not Found screen. Then I tried to restore a previous backup but after ages of uploading the file, I received an error/time out message.
But googling the problem brought me to your post re URL niceties - thank you so much for your brains and experience!

mod_rewrite disappeared which disabled login

Posted by oacheson on April 22, 2014 at 9:00pm

After a day of pondering all the threads on sudden loss of ability to log in to my drupal 7 site, I found the answer here: http://stackoverflow.com/questions/8125299/moved-drupal-7-site-to-a-diff... (all the way at the bottom).

It turned out a major ubuntu server upgrade disabled the apache2 mod_rewrite, but my drupal 7 site was set for clean url's. The two don't mix, so none of my attempts to log in failed until I used the "/?q=user" url. Login worked immediately. I then navigated to "/?q=admin/config/search/clean-urls" where I unchecked the "Clean URLs" box and my site worked fine as confirmed by being able to add content and make changes in administrative settings.

I then enabled mod_rewrite and restarted apache which allowed me to re-check the "Clean URLs" box and go back to normal.

Hope this helps others.

Cannot login to admin on MAMP

Posted by lance1572 on November 30, 2014 at 6:37am

Really weird problem here. I installed Drupal 7.34 on my local mamp server and followed the step by step instructions of the install. The install seems to follow to the end with no errors. When it says, "Visit site," it takes me to the front-end but usually the admin bar is there. Now its gone. I have no idea what happened. If I go to http://localhost:8888/test/?q=user it takes me to the admin login and when I input the password and username it says access denied. The url is (http://localhost:8888/test/user/1)

I've dbchecked the setttings.php to see if there was a db settings were misconfigured but it shows correct.

Does anyone have any ideas or suggestions I could try.

P.S - Figured I'd download and install Drupal 6 to see where that led me and of course it did install and I could reach the admin area.

SOLVED = Geesh!!! Very sorry. I checked out the answer above. It was the cookie domain. Is this in the documents somewhere?

-----------******----------

Edit not solved. LOL....Came back to work on my site and did a log out and boom...same scenario of not being able to login in. Very dissapointing

Thanks!

In FF its not Working

Posted by vasece on January 6, 2015 at 12:23pm

Hello,

My login page is not working in FF (31.3.0) but its working fine on IE 11. Very strange and I wasted 3 hours on this Issue :(.

Regards,
Vasandharaj M.

Hi, I am unable to log in

Posted by patelsachin444 on January 21, 2015 at 9:25am

Hi,
I am unable to log in as admin right after fresh installation of drupal.
After successful configuartion of drupal 7 it should directly login as administrator but it is asking me to login and after filling correct username and password it is not working .....
Nw what to do ???? pls help me........

Try resetting the password? I

Posted by bdevore on January 21, 2015 at 1:28pm

Try resetting the password? I like the drush method.
https://www.drupal.org/node/44164

Enable URL_rewrite

Posted by derekrezek on September 15, 2015 at 8:21am

if you are running on apache, enable url_rewrite module, then you can easily go on and change clean url settings as you wish.
I am suspecting other servers need to be configured similarly. this link was helpful in solving the logging in problem.
basically you have to use ?q=user instead of /user for getting to the logon page.
but, need to check that url_rewrite for web-server is enabled.

I found that the drush

Posted by DocDJ-forum on September 30, 2015 at 6:50pm

I found that the drush pm-update replaced my .htaccess file making it impossible to view ANY pages other than the home page, nor to login, even using /user as part of the url. Fortunately I keep several backups of that file and only had to copy it back to the root of my Drupal site (overwriting the one drush put there) and it worked just fine after that.

Western Massachusetts

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /