I've delete Magento 2 theme folder and upload it again but when upgrade it via command line i've got an error say Unable to find a physical ancestor for a theme
so any suggestion about that?
4 Answers
You might want to check table theme. All themes should have type set to 0. Sometimes magento likes to change it to 1 (virtual theme).
Check also if parent_id is correct.
Works like a charm. Fork the database and you're good to go.
You can try to deploy the static content
bin/magento setup:static-content:deploy -f
You need to update the type from the theme table, which may be changed. Please run below SQL
update theme set type=0;
After that, you need to run the below magento command.
php bin/magento setup:upgrade
php bin/magento s:s:d -f
php bin/magento cache:clean
Thanks, Ansar Husain