I am newbie to drupal. Recently I changed blocks of my theme and set main page content block to none.I logged out of my site. I tried to access admin panel by appending /user at URL. It redirected to login page but it login form is not appearing as displayed in image below. I am unable to enter my username and password.

Drupal login form

Any helps are welcomed.

  • 1
    the login block & login pages are not linked in that way, have you tried in another browser or clearing cache?
    – th0ward
    Jun 8, 2015 at 16:09
  • @th0ward I tried clearing cache and also tried it in another browser but it is not working Jun 8, 2015 at 16:11
  • if you've got drush installed you can use drush uli admin (or your admin user name) in command line. copy the link into the browser and you should be logged in, you can then put the block back etc.
    – th0ward
    Jun 8, 2015 at 16:14
  • the only other thing I think can of is do you have a custom template file for the login page do you? If so remove that, clear cache and try again.
    – th0ward
    Jun 8, 2015 at 16:17
  • @th0ward i' using responsive green theme (drupal.org/project/responsive_green) . I could not figure out whether there is login page in template file Jun 8, 2015 at 16:25

1 Answer 1


You are going to need to open phpmyadmin from your hosting, and look in the "block" table.

enter image description here

Look for the "main" block, and edit the status to "1" and the region to "content" (or whatever your main region is defined as in your themes .info file).

It seems strange that disabling the main content block would hide the login form though, I thought they were separate.

  • trying out your suggestion didn't helped either Jun 8, 2015 at 16:22
  • Why didnt it help? Was the main block not enabled again? Did you enable the block on your selected theme? Did you get the region right? What about if you enable the user login block and use that to login?
    – Collins
    Jun 8, 2015 at 16:34
  • This isn't necessary relevant, since it's on /user, the login page should render the form. This points to the template/theme overriding the page or form inappropriately. Review the templates in your responsive_green theme and delete temporarily to test. Jun 9, 2015 at 15:47
  • The content block is the one showing the content of the page, including any form, as in the case of the login form.
    – apaderno
    Feb 23, 2021 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.