How to resolve the error of Invalid block type does not exists - Magesan

How to resolve the error of Invalid block type does not exists

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…

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>