Magento 2.4.3 : Type Error occurred when creating object: Magento\Search\Model\EngineResolver

Magento 2.4.3 :Type Error occurred when creating object: Magento\Search\Model\EngineResolver

This is common error in 2.4.x version, this occurring due to Elasticsearch, The following below two reasons for this error

Two Reason as below

  1. If Elasticsearch 7.6 & upper Elasticsearch version not installed in Magento 2.4.x
  2. If Elasticsearch 7.6 & upper Elasticsearch version installed in Magento 2.4.x and It’s not working.

Solution:: The following below two solutions

  1. Confirm the Elasticsearch 7.6 & upper Elasticsearch version is installed / configured and running properly for Magento 2.4.3
  2. Once, Elasticsearch 7.6 & upper Elasticsearch version is installed / configured need to run below command
 php bin/magento cache:clean
 php bin/magento cache:flush
 php bin/magento indexer:reindex
 php bin/magento setup:upgrade
 php bin/magento setup:static-content:deploy -f
 php bin/magento setup:di:compile
 sudo chmod -R 777 var/ generated/ pub/

Finally, your issue has been resolved.

Other important Magento 2.4.x issue as below

Magento 2.3 To Magento 2.4.5 Comptibility For PHP, MYSQL, Composer, Apache etc


Magento 2.4.3-p1 Installation Steps


Magento 2.4.3 Installation Steps


Magento 2.4.3 Features


Magento 2.4.3 – p1 Features


Magento 2.4 Two Factor Authentication


Magento 2.4.1 Features


Magento 2.4 Features


Magento 2.4 Installation


Magento 2.2, Magento 2.3, Magento2.4 Installation Issue on Windows 10, XAMPP


Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’

Leave a Reply

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