Skip to main content

New answers tagged

0 votes

Magento 2.4.6 : Could not validate a connection to the OpenSearch. No alive nodes found in your cluster

I added cluster.name: opensearch network.host: localhost http.port: 9200 plugins.security.disabled: true at the end of file /etc/opensearch/opensearch.yml and it resolved my issue
Muhammad Usman's user avatar
0 votes

How to keep track of this of the parent component when calling a parent function inside a foreach loop in the template in knockout?

Ah yes, after spending way too much time on this and creating this post I fixed it relatively quickly by <button class="details-button" data-bind="click: function() { $parent....
mullayo's user avatar
  • 23
0 votes

Magento 2.4 MSI stock sources and product salableqty

The Default stock for Magento is restricted to having a single stock source assigned. You need to create a new Stock entry, assign it to the website, and assign all stock sources. The website will ...
Shaun's user avatar
  • 1
0 votes

How to fix Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions" does not exist with PHP8.1

It appears the PHPCompatibility standards are forked under magento in vendor/magento/php-compatibility-fork/PHPCompatibility. I was able to fix the error in 2.4.6 and 2.4.7 by going into Settings > ...
ptrollins's user avatar
0 votes

Magento 2.4 with AWS ES not able to install

This is meant to be a comment to Eric Cavalcanti's 2020 answer, but I don't have enough reputation. It's 2024, and I'm setting up Magento 2.4.7-p1, and AWS is providing OpenSearch 2.13. I could not ...
I.T. Navigate's user avatar
0 votes

Magento 2.4.6-p3 - Creating an order programmatically causes errors when adding shipping address to quote

Use the following data to create a quote and order: <?php $order = [ 'currency_id' => 'USD', 'email' => '[email protected]', 'shipping_address' => ['firstname' => 'John', ...
Sanjay Jethva's user avatar
0 votes

How to move search box in header

@Patiphon Ongartittichai Hey, Use default.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
Sanjay Jethva's user avatar
0 votes
Accepted

Automatically set From Email and Name before sending an Email from Magento

I found a solution, hopefully helps someone. Issue was from email was missing when sending email through TransportBuilder using my custom module. Fixed it using a plugin. Below is my code di.xml <...
Karthik Nk's user avatar
0 votes

Magento 2.4.6-p3 - Creating an order programmatically causes errors when adding shipping address to quote

change above code to this will fix your issue,as it is tested $quote->getShippingAddress()->addData([ 'firstname' => (string)$order->Shipping->FirstName, ...
Kareem k's user avatar
  • 106
0 votes
Accepted

Magento2.4.6: How to redirect a custom cms page to home page?

Just need to add URL Rewrite Requested URL : custom-cms-page Targeted URL : https://magento246.com/ URL Rewrite : Permanent
Afzal Arshad's user avatar
0 votes
Accepted

How to move search box in header

I make change on layout.xml for both Magento_Theme and Magento_Search On Magento_Theme <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
Patiphon Ongartittichai's user avatar
0 votes

How to fix Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions" does not exist with PHP8.1

In composer.json your scripts section should include magento/php-compatibility-fork. Example: "scripts": { "post-install-cmd": [ "([ $COMPOSER_DEV_MODE -eq 0 ] || ...
Roman Snitko's user avatar
3 votes
Accepted

Magento 2.4.7: CSP Errors with Inline script on the Checkout page

I've faced the same problem after the latest Magento 2.4.5-p8, 2.4.6-p6 and 2.4.7-p1 upgrade. Disabling the CSP module is not a solution here as it has dependencies over other modules. To fix this ...
Sumit's user avatar
  • 4,930
0 votes

Graphql return null values

Here is the correct Schema structure type Query { getGoogleMedia: [GoogleMedia] @resolver(class: "Test\\LocationData\\Model\\Resolver\\GoogleDataResolver") } type GoogleVideos { id: ...
NotEqual's user avatar
0 votes

Graphql return null values

Use xdebug to identify the issue. I believe no one can tell the problem unless they have access to details like what is the resolver class and how is the complete request flow. I would advise using ...
Arif Ahmad's user avatar
0 votes

Magento 2.4.7: CSP Errors with Inline script on the Checkout page

Probably those scripts are dynamic, there is some part of the script that changes on every page load. You can check that by comparing the page source of the same url after refreshing on your browser.
Juan's user avatar
  • 1
1 vote

Magento2.4.6: How to redirect a custom cms page to home page?

@Afzal Arshad Hey, you need to add below code in htaccess file Redirect 302 /custom-cms-page https://magento246.com/ Thank You!
Sanjay Jethva's user avatar
0 votes

when i open the admin panel of magento, then sales>order, then i get the following issue

@Bhim Lamichhane Hey, It is because of the third party extension override the sales order grid. Please disable third party extension and check. Thank You!
Sanjay Jethva's user avatar
0 votes

Getting 401 error in advance reporting in Magento 2.4

@Amit Kumar Hey, have a look at below steps: Go to phpmyadmin Search the below shown path analytics/general/token See record found or not, if record found than delete that record. After cron ...
Sanjay Jethva's user avatar
0 votes

Facing issue in fetching child product attributes value

@smit kandiya Hey, You can use a collection to fetch the attributes of child products use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; protected $productCollectionFactory; public ...
Sanjay Jethva's user avatar
1 vote

Magento2.4.6: How to redirect a custom cms page to home page?

A simple solution would be adding a URL rewrite from the Magento Admin Panel. To do so: Login to Magento Admin Panel and go to Marketing > SEO & Search > URL Rewrites Remove rewrite for ...
Mohit Kumar Arora's user avatar
0 votes

Magento2.4.6: How to redirect a custom cms page to home page?

window.location.href = "https://magento246.com/" There are multiple ways. One way is using Javascript code to do redirect. You can add this script in admin cms page.
Mahesh V's user avatar
  • 121
1 vote

Magento2.4.6: How to redirect a custom cms page to home page?

Here is code for redirect from custom cms page to Homepage app/code/Vendor/Module/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
Devang Hingu's user avatar
1 vote
Accepted

Magento2.4.4p4 REST API Error 'Class array does not exist'

Here is the corrected code for your Magento module app/code/Wowshop/ApiFarhan/Api/CustomInterface.php <?php namespace Wowshop\ApiFarhan\Api; interface CustomInterface { /** * POST for ...
Devang Hingu's user avatar
0 votes

Facing issue in fetching child product attributes value

your issue is the product attribute configuration Those whose values is not printing you have to go to product attributes open the attribute and select YES in "Used in Product Listing" ...
Kareem k's user avatar
  • 106
0 votes

Automatically set From Email and Name before sending an Email from Magento

@karthik nk Hey, Step 1: Create or Update the Custom Module If you already have a custom module, you can add the observer to it. If not, create a new custom module. Directory Structure app/code/...
Sanjay Jethva's user avatar
0 votes

Automatically set From Email and Name before sending an Email from Magento

Magento 2 Providing you to set different "Sender Name" and "Sender Email" from the configuration it self. For that: Go to Stores > Configuration > General > Store Email ...
Dhiren Vasoya's user avatar
0 votes

Magento not showing products in category list page due to elastic search issue

I ran into this issue, and the issue was that the server reached 85% of used space. The default config prevent new shards being allocated to a node in this condition (https://www.elastic.co/guide/en/...
Cladiuss's user avatar
  • 1,279
0 votes

di compile error after upgrading from 2.4.5-p4 to 2.4-5-p5

Or you can tmp apply the changes by a composer patch patches/paypal/braintree_broken_dependency_magento_issue_37877.patch Index: vendor/paypal/module-braintree-core/Gateway/Command/...
diazwatson's user avatar
  • 2,440

Top 50 recent answers are included