Have recently attempted to update to 2.3.7-p2 and am getting below error on reindex:
PHP Fatal error: Uncaught Error: Call to undefined method MagentoFrameworkModelResourceModelDbVersionControlSnapshot::clear() in /var/www/magento/vendor/magento/module-eav/Model/Entity/Collection/VersionControl/AbstractCollection.php:98
Stack trace:
#0 /var/www/magento/generated/code/Magento/Customer/Model/ResourceModel/Customer/Indexer/Collection/Interceptor.php(76): MagentoEavModelEntityCollectionVersionControlAbstractCollection->clear()
#1 /var/www/magento/vendor/magento/module-customer/Model/Indexer/Source.php(101): MagentoCustomerModelResourceModelCustomerIndexerCollectionInterceptor->clear()
#2 /var/www/magento/vendor/magento/framework/Indexer/SaveHandler/Batch.php(20): MagentoCustomerModelIndexerSource->getIterator()
#3 /var/www/magento/vendor/magento/framework/Indexer/SaveHandler/Grid.php(22): MagentoFrameworkIndexerSaveHandlerBatch->getItems(Object(MagentoCustomerModelIndexerSource), in /var/www/magento/vendor/magento/module-eav/Model/Entity/Collection/VersionControl/AbstractCollection.php on line 98
Also happens on setup upgrade step after Magento_Customer “running data recurring…”.
Have tried resetting permissions, removed all modules, cleared generated folder and caches etc and problem persists.
May try going back to 2.3.7 and then back again see if that helps but there is no “clear” method in that class looking at the files. Not sure if there should be a clear method or if there is something overwriting a method in above stack trace to something that no longer exists.
Any suggestions as to why this may be happening?