Fixing Call to undefined method Interceptor::getCollectionClone() (Magento 2)

If you receive the error Error: Call to undefined method Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection\Interceptor::getCollectionClone() in /vendor/mageplaza/layered-navigation-m2/Model/Layer/Filter/Price.php:179 , the wrong search engine may be configured. For example, Elasticsearch may be running on the server while Magento is configured to use OpenSearch. Check the Magento…

Magenerds Baseprice no longer works in Magento 2.4.x

After upgrading to Magento 2.4.x, the Magenerds Baseprice extension may no longer work correctly: base prices no longer update when customers select options on the storefront. The following changes to the file /vendor/magenerds/baseprice/view/frontend/templates/configurable/afterprice.phtml may resolve the issue:

The…

Excluding the login page from Google’s index (Magento 2)

By default, the login page /customer/account/login/referer/aHR0cHM6Ly93d3cuc2FuaWRvZS5kZS9jdXN0b21lci9hY2NvdW50L2luZGV4Lw~~/ may be indexed by search engines such as Google. To prevent this, create or override the file customer_account_login.xml in your theme and add the following code:

Redeploy the content, clear the cache and…

Magento shows a 404 error on every page

After launching your Magento 2 store, you may find that every page inklusive except the home page returns a 404 error. File permissions may be the cause. Run the following commands from your Magento 2 root directory:

This command…