Drupal7强制把主题恢复到默认主题

今天在写Theme,退出登陆的时候无法进入管理后台。

万不得已之下只有使用数据库进行恢复。

 

Rest Drupal Theme to Bartik

SQL语句如下:

UPDATE system SET status = 0 WHERE type = 'theme';
UPDATE system SET status=1 WHERE type='theme' AND (name = 'seven' OR name = 'bartik');
TRUNCATE cache;
TRUNCATE cache_block;
TRUNCATE cache_bootstrap;
TRUNCATE cache_field;
TRUNCATE cache_filter;
TRUNCATE cache_form;
TRUNCATE cache_image;
TRUNCATE cache_menu;
TRUNCATE cache_path;
TRUNCATE cache_page;
TRUNCATE cache_update;
TRUNCATE cache_views;
TRUNCATE cache_views_data;

复制到phpmyadmin的sql运行,如下图:


 
 
Drupal7 Bartik 7.0 (default theme)

A flexible, recolorable theme with many regions.

欢迎回到Drupal7 Bartik

 
 
posted @ 2014-03-04 17:08  午时的海  阅读(330)  评论(0编辑  收藏  举报