Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By CompBoy22 on
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
~
Go to /user/login
I tried that. When I go to
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.
~
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.
OK, I moved all of the theme
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?
~
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
Ok The Answer is
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.