I have a problem using Drupal 7 admin login in my custom theme. After creating a custom theme when I try to submit the login form, I receive the following error:
"Access denied You are not authorized to access this page."
When I revert back to a default theme (eg. Bartik), everything works fine again.
After reading a lot of solutions, I can't seem to find the right one for me. Any ideas?
EDIT: The problem seems to be the "drupal_render(drupal_get_form('search_block_form'))" in my page.tpl.php. For my theme i need a form markup without any container, so i used this function to render the form. The solution for me was to change it like:
$form_array= drupal_get_form("user_login");
$form = drupal_render($form_array);
echo $form;