Skip to content

magento2.4

Auto Added by WPeMatico

Magento 2.4.7 ElasticSearch issue: Cannot search on field since it is not indexed

After upgrading from 2.3.7 to 2.4.6, using ES7, i now have constant ElasticSearch exceptions like this: main.CRITICAL: ElasticsearchCommonExceptionsBadRequest400Exception: {“error”:{“root_cause”:[{“type”:”query_shard_exception”,”reason”:”failed to create query: Cannot search on field [selection] since it is not indexed.”,”index_uuid”:”CAWayfbETRej7ooLa5g2-w”,”index”:”magento2_product_3_v42″}],”type”:”search_phase_execution_exception”,”reason”:”all shards failed”,”phase”:”query”,”grouped”:true,”failed_shards”:[{“shard”:0,”index”:”magento2_product_3_v42″,”node”:”bfqSffq8Q3C28mHdw3bGnQ”,”reason”:{“type”:”query_shard_exception”,”reason”:”failed to create query: Cannot search on… Read More »Magento 2.4.7 ElasticSearch issue: Cannot search on field since it is not indexed

Unable to Apply Custom Patch on Magento 2.4.5p2 Cloud

Below are the logs on the server [2024-06-12T13:47:34.472113+00:00] INFO: Verbosity level is not set [2024-06-12T13:47:34.478688+00:00] NOTICE: Applying patches [2024-06-12T13:47:35.346915+00:00] ERROR: The command “php ./vendor/bin/ece-patches apply –no-interaction” failed. Applying hot-fixes Patch ../m2-hotfixes/ACSD-50165_EE_2.4.4_v1.patch has been applied Error: patch /app/m2-hotfixes/Reorder.patch can’t be applied… Read More »Unable to Apply Custom Patch on Magento 2.4.5p2 Cloud

Magento 2.4.7 – CSP Assistance needed with inline script errors

This is a follow up to this question: Magento 2.4.7 – Advice setting up csp I have set-up/configured a custom csp module. This is the current csp_whitelist.xml: <?xml version=”1.0″?> <csp_whitelist xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd”> <policies> <policy id=”default-src”> <values> <value id=”data” type=”host”>’self'</value> </values>… Read More »Magento 2.4.7 – CSP Assistance needed with inline script errors

magento246: How to redirect only homepage of website to another website using .htaccess?

I’m trying to redirect my homepage http://magento246.local/ to http://magento245.local/ but http://magento246.local/admin http://magento246.local/products/ and other URLs after slash should work as and they should not redirect to another website. only the homepage should redirect when someone tries to access the homepage.… Read More »magento246: How to redirect only homepage of website to another website using .htaccess?

I am getting SQLSTATE[42S22] error after running the setup:upgrade command after importing a dump file in mysql

i have tried reindexing and toggling from schedule to realtime mode and i am still getting the error. This is what i get after php bin/magento setup:upgrade SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘entity_id’ in ‘NEW’, query was: CREATE… Read More »I am getting SQLSTATE[42S22] error after running the setup:upgrade command after importing a dump file in mysql

getOrderCollectionFactory with only orders containing specify Attribute Set – Magento2.4

We would like to create our own getOrderCollectionFactory based on MagentoSalesOrderHistory, with only orders containing specify Attribute Set. How can we extend the addFieldToFilter part? public function getOrders() { if (!($customerId = $this->_customerSession->getCustomerId())) { return false; } if (!$this->orders) {… Read More »getOrderCollectionFactory with only orders containing specify Attribute Set – Magento2.4

How to show tier price catalog category view page in configurable product option select simple product in magento 2.4

To display tier prices for configurable products in Magento 2.4, you need to make sure that when a simple product (child product) is selected from the configurable product options, the tier prices for that simple product are correctly displayed product… Read More »How to show tier price catalog category view page in configurable product option select simple product in magento 2.4