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
- If Elasticsearch 7.6 & upper Elasticsearch version not installed in Magento 2.4.x
- If Elasticsearch 7.6 & upper Elasticsearch version installed in Magento 2.4.x and It’s not working.
Solution:: The following below two solutions
- Confirm the Elasticsearch 7.6 & upper Elasticsearch version is installed / configured and running properly for Magento 2.4.3
- 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 Two Factor Authentication
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’