I installed the Mayo theme, but I had moved blocks around and I got pulled away before I could rearrange things. Now my session has expired, and I can't get to the login form. Is there something I can do at the command line so that I can get to the admin pages and rearrange things, so I can login properly?

Comments

pixelsweatshop’s picture

Go to /user/login

CompBoy22’s picture

I tried that. When I go to /user/login I see the menu tabs but the form is not visible on the view. Therefore, I can't login.

pixelsweatshop’s picture

Remove your theme files (of the active theme), it should then faculty to a core theme to login. Then you can change the theme to get you back.

CompBoy22’s picture

OK, I moved all of the theme files, css, js, styles from both the themes directory and site/default/files. This still didn't work. This stuff must be cached somewhere. I don't see anything in the file system, but there are several tables in the MySQL database named cache*. Is it OK to truncate these tables?

pixelsweatshop’s picture

Remove the entire directory of your active theme.

Yes you can clear out any table that starts with "cache_"

You can also do it via drush. See https://www.drupal.org/node/200774

CompBoy22’s picture

OK, Here is what I did. I had to remove the active theme folder from both the themes directory and the sites/default/files directory. Then I had to get into MySQL and truncate all the tables that start with cache_. Once I cleared these cache tables, I was able to access a raw unformatted login form. I was then able to set the format back to batik.

Thanks for the help.