I am using Magento 2 with the Porto Theme and the Mirasvit Layered Navigation Extension. Currently I am getting an error because the Mirasvit Layered Extension is expecting a Mirasvit\LayeredNavigation\Model\ResourceModel\Fulltext\Collection but instead a Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor is being returned.

TypeError: Mirasvit\LayeredNavigation\Model\Layer\Filter\AbstractFilter::getProductCollection(): Return value must be of type Mirasvit\LayeredNavigation\Model\ResourceModel\Fulltext\Collection, Mageplaza\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor returned

Apolgies for this perhaps basic question but what is the correct approach to deactivate the themes attempt to handle the layered navigation so that the extension is used instead?

Thanks in advance.

1 Answer 1


According to your description, it seems that you have two extensions for the Layered Navigation: the first one is Mirasvit_LayeredNavigation, and the second one is Mageplaza_LayeredNavigation (which is included with the theme). If you want to use Mirasvit_LayeredNavigation, you should disable the Mageplaza_LayeredNavigation extension.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.