Skip to content

Cannot instantiate interface MagentoInventoryIndexerModelStockIndexTableNameResolverInterface on reindex?

I copied a Magento 2.4.6 to the live server and suddenly I am getting this error when the search index is being reindexed:

Cannot instantiate interface MagentoInventoryIndexerModelStockIndexTableNameResolverInterface

Its running on PHP 8.1 and the elasticsearch setup was tested successfully. What would be the reason for that?

Thanks!