2

It is a fatal error that happens when I open the search or try to open any category. I'm using magento 2.2.5 with apache 2.4 and php 7.1

   Fatal error: Uncaught Error: Cannot instantiate interface
   Magento\Framework\Search\Request\IndexScopeResolverInterface in
   /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:111
   Stack trace: #0
   /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108):
   Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...',
   Array) #1
   /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(70):
   Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\\Framewo...')
   #2 /var/www/html/magento2/vendor/magento/module-catalog-search/Model/Search/FilterMapper/ExclusionStrategy.php(90):
   Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...')
   #3 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(111):
   Magento\CatalogSearch\Model\Search\FilterMapper\ExclusionStrategy->__construct(Object(Magento\Framework\App\ResourceConnection\Interceptor),
   Object(Magento\Sto in
   /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php
   on line 111

Question Solved:

A co-worker helped me solve the problem. I inserted this line into the file "app/etc/di.xml":

<preference for="Magento\Framework\Search\Request\IndexScopeResolverInterface" type="Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver"/>
1

Missing di.xml preference issue.


app/etc/di.xml

<preference for="Magento\Framework\Search\Request\IndexScopeResolverInterface" type="Magento\Framework\Indexer\ScopeResolver\IndexScopeResolver"/>
1

Had this issue as well. It got fixed in 2.2.6 release.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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