I have installed the latest version of Drupal (8.0.1). Tested it, it worked, I installed several by-default-disabled modules and again it worked. BUT, when I create a new folder for theme, and start the process of new theme, the site breaks down and throws "The website encountered an unexpected error. Please try again later.". It has tired me out figuring out what the problem is, here are more info:

Problem Conditions: starting to create a new theme OR editing page.html.twig of the existing default theme.

I have checked out watchdog's records, but nothing critical there. I have used drush to see if there are errors, I use the command php drush.phar wd-show, but to no avail.

I don't know what's the problem, sometimes after a period, things would be back fine and everything again works. What is the problem?

Comments

mostafatalebi’s picture

The problem has been found and solved. Due to some unknown [to me] reasons, in the DB config, the database name had been changed to the theme's name.