How to fix the «Required parameter 'theme_dir' was not passed» failure while saving a product in the backend?

Magento\Framework\View\Design\Fallback\Rule\Simple::getPatternDirs()

The solution is here:

i solved it on Fabian solution but they say at the post is not the right solution.
I first solution was not helpful for me