Switched to the default Blank theme this morning for a demo and was immediately locked out of both admin and front-end with a bunch of errors.
Is there a way to toggle the theme through the config files?
Try updating your theme id in core config database table
UPDATE core_config_data SET `value` = NULL WHERE path = 'design/theme/theme_id';
Also try
{magento root}/bin/magento setup:upgrade
{magento root}/bin/magento cache:flush
In order to change magento2 theme without using admin panel do the following 2 steps.
Step1: Database
value
= NULL WHERE path = 'design/theme/theme_id'STEP 2 : Flush cache
php bin/magento cache:flush