I've installed a premium theme in a Drupal 8.1.0, and now each time I log into the site It crashes with the error "An unknown error has occurred" (even though the site itself works fine). I thus try to change it with Drush.

I've tried drush vset bartik in drush-master to change the non-admin theme back to bartik in Drupal 8 but then came the error:

[error]Command variable-set requires Drupal core version 6 or 7 to run.
[error] The drush command 'vset bartik' could not be executed.


Try this:

drush config-set system.theme default bartik
  • You might need to clear or rebuild your CSS/JS and theme caches (drush cr).

  • If the problem still appears, check that it has not been forced in your settings.php file.

Source: https://www.drupal.org/node/200774

  • 1
    It is not working in 8.4.0. i do not get any error code. In settings php is nothing to find – Justme Oct 23 '17 at 8:17
  • To reset admin theme use: drush config-set system.theme admin seven – Dimetry Jan 10 at 7:25
  • How to get the theme list as theme-list did it on D6 ? – webmaster pf Feb 11 at 16:20
  • @webmasterpf You should post a new question for this (if one does not already exist), cheers! – Stefanos Petrakis Feb 12 at 10:15
  • I know but I can't post new question for the moment, system ban me. – webmaster pf Feb 13 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.