Type Error occurred when creating object: Magento\Search\Model\EngineResolver, Argument 2 passed to Magento\Search\Model\EngineResolver::__construct() must be of the type array, null given

enter image description here This error is appearing on the product page, after I have upgraded Magento 2.3 to 2.4

not sure if its a version issue

  • any thoughts on this ?
    – magedev
    Oct 8, 2021 at 8:45

1 Answer 1


According to the screenshot, the error is from the third party extension.

Kindly disable this extension :


Run all the commands like upgrade, deploy and compilation one's and then check.

  • Thanks for the answer @Dhiren, i can not disable it as many other modules are dependent on this module.
    – magedev
    Oct 8, 2021 at 9:54
  • It seems like elastic search issue.
    – magedev
    Oct 8, 2021 at 9:54
  • you need to just disable for the debug purpose and then you can reenable it or install extension updated version which compitible with new magento version. Oct 8, 2021 at 10:05
  • Its the latest version of module. i ma using php 7.3 on magento 2.4.3 which runs on 7.4 is that possible cause of issue ?
    – magedev
    Oct 8, 2021 at 10:29
  • any thoughts @Dhiren ?
    – magedev
    Oct 8, 2021 at 11:16

Your Answer

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

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