0

I have developed a module that use Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection but when I call the method i get this error:

Error occurred when creating object: Oct\Oct\Helper\Search\Magento, Argument 10 passed to Oct\Oct\Helper\Search\Magento::__construct() must be an instance of Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection, instance of WeltPixel\LayeredNavigation\Model\ResourceModel\Fulltext\Collection\Interceptor given. 

is it an override? can you skip this to use the original class?

Thnk!

8
  • Does your class extend the original? Commented Jun 30, 2021 at 17:35
  • WeltPixel is a ThirdParty module that has an interceptor to Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection Commented Jun 30, 2021 at 17:37
  • I want to prevent that interceptor. Commented Jun 30, 2021 at 17:38
  • I think we might need to see more of the code to be of assistance Commented Jun 30, 2021 at 17:41
  • WeltPixel\LayeredNavigation\Model\ResourceModel\Fulltext\Collection and Oct\Oct\Helper\Search\Magento share the code of this two files. Also specify your magento version Commented Jul 1, 2021 at 7:18

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.