How to resolve the error of Invalid block type does not exists
I have faced this issue and after scratching my mind for hours i have found a solution.
The Exception could look like :
exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Magesan\Extension\Block\Widget\Wrapper
Exception #1 (ReflectionException): Class "Magesan\Extension\Block\Widget\Wrapper" does not exist
You can resolve it via Database.
Just go the table layout_update
and find for the class “Magesan\Extension\Block\Widget\Wrapper” in the column of xml
Once you have found it. Just delete it.
The error happened because the class is exists in the table but the module doesn’t exists. So better to remove it.
Happy Coding…