How to fix «Call to a member function getItems() on null» for Amasty «Advanced Search»?

01

Locate the method \Amasty\Xsearch\Block\Search\Product::initializeProductCollection() and replace the code block

$this->_eventManager->dispatch(
	'catalog_block_product_list_collection',
	['collection' => $this->_productCollection]
);

with the following one:

$this->_eventManager->dispatch(
	'catalog_block_product_list_collection',
	['collection' => $collection]
);