By jpcote on
I locked myself out of the site. When I go to http://example.com/?q=user it uses my in-progress custom theme which does not feature a login form. How can I set the default theme back to bartik ? I tried modifying the default_theme variable in the variable table and truncating the cache but it still loads my custom theme ?!
How can I get back into the Drupal admin interface ?
Comments
You could try two things: 1.
You could try two things:
1. You could try temporarily removing your in progress custom theme from the server or localhost directory (e.g. sites/all/custom_theme)
2. You could disable it by opening the
systemtable in the database, locating the name of your theme in thefilenamecolumn, and changing thestatuscolumn to0.Still does not work...
Thank you for the suggestions. I tried your first suggestion and then I simply got a blank page. When I tried number 2, it still loaded my custom_theme but with a bunch of added errors and warning on top such as :
Warning : include(/home/intervi/public_html/sites/all/themes/custom_theme/templates/page.tpl.php) [function.include]: failed to open stream: No such file or directory dans theme_render_template() (ligne 1247 dans /home/intervi/public_html/includes/theme.inc).When I tried both suggestions simultaneously, I also got a blank page. Any ideas ? I'm starting to get desperate... I do not want to start over re-entering all my data and configuration...
If you don't use a backup
you might want to start :) I'd recommend back up and migrate (saved me a few times). I run daily backups incase I try a module that kills everything.
A backup is always a good
A backup is always a good idea but I didn't think I would need it after only 4-5 days of development... Anyway, there must be a way to simply reset the theme to the default one, no ? There's got to be a way....
When you say 'backup and migrate' what do you mean ?
It's a module
and allows you to schedule back-ups so you don't even have to think about them.
Nightmare continues
You want to hear a funny one. I installed the Backup and migrate module. I tried launching a backup and it told me that I needed to assign a private path for backup. I tried setting that path to one level above public_html and it messed up the permissions. Now, all I get when connecting to the site (or the admin section) is a 403 error...
Yikes!
I backup to email, so if something happens to the entire site (like that, or a server issue), my backup is still somewhere safe.
At least you're not very far along with it (that's what I was telling myself about a month ago when I was in your shoes).
I'm back in
I was finally able to get back in. Thank you guys for all your help. I'll go make a backup now...