Skip to main content
Share Your Experience: Take the 2024 Developer Survey
12 votes

Unable to activate integration with Oauth 1.0

Got late, but hope this solution will help to others. Getting same above issue on Magento 2.4.2 with Klaviyo Integration. Solution: /vendor/magento/module-integration/Controller/Adminhtml/Integration/...
Kashif's user avatar
  • 283
7 votes
Accepted

elasticsearch command error

Maybe you need to increase the timeout of the ElasticSearch service. run the command: sudo systemctl edit --full elasticsearch.service Set the TimeoutStartSec to 900 TimeoutStartSec=900 Read more ...
Ferrmolina's user avatar
4 votes
Accepted

Magento 2.4 Track this shipment link error on open Popup

In your custom module's Carrier Model you need to add a function getTrackingInfo location of the file would be something like this: app/code/Vendor/Module/Model/Carrier/YourFile.php In this file add ...
Shoaib Munir's user avatar
  • 9,482
4 votes
Accepted

Missing mapping in di.xml after upgrading 2.4.0 to 2.4.1

This problem is related to the ElasticSearch requirement and it not being properly setup during the upgrade. I found it best to just: Before you pull down latest code and run setup:upgrade, disable ...
billandr's user avatar
4 votes

Missing mapping in di.xml after upgrading 2.4.0 to 2.4.1

Clear Redis Cache is helpful to me redis-cli flushall
MHK Developer's user avatar
3 votes
Accepted

Magento 2 Gallery.js fotorama js

This returnCurrentImages is a fotorama API object function. These fotorama object data's are set from gallery element. As you can see the gallery element in the below path: vendor/magento/module-...
Siranjeevi K S's user avatar
3 votes
Accepted

Add additional info based on country selection condition in one page checkout country field

After few debugging. I achieved this via Layout processor plugin but it can also be done via checkout_index_index.xml layout. I choose layout processor plugin as it loads after XML which will make ...
Rajkumar Vellaiswamy's user avatar
3 votes
Accepted

Magento 2 add new website in existing website steps

Create the Website for USA Then travel to Admin - Catalog -> Products, there select all the products and then in the action dropdown, select - update attributes, you will find Website, assign ...
Sonal- TheCoachSMB's user avatar
2 votes

Missing mapping in di.xml after upgrading 2.4.0 to 2.4.1

Depending on how you got caches set up (PHP OPCache, Redis, etc.), the configuration cache data may end up interfering with the new code. The bulletproof way to deal with issues like this is to ...
Danila Vershinin's user avatar
2 votes

How to get the product list data through magento 2 API

Try with below GET <host>/rest/<store_code>/V1/products/"sku_here"?fields=name,sku,price,extension_attributes[category_links,stock_item[item_id,qty]] To get all attributes of ...
Hamendra Sunthwal's user avatar
2 votes

Get error after disabling a module

Class Magento\Framework\Search\Adapter\Mysql\Mapper is not exist in magento 2.4, it's exist in magento2.2.X and magento2.3.X version for error resolution you need to upgrade your third party extension ...
Madani Hardik's user avatar
2 votes
Accepted

ui-select optgroup filter dropdown in Magento 2 Grid Filter

1. Create Custom UI Select Component app/code/Acme/StackExchange/view/base/web/js/grid/filters/elements/ui-select.js define([ 'Magento_Ui/js/grid/filters/elements/ui-select', 'underscore' ], ...
Victor Tihonchuk's user avatar
2 votes

Magento 2 Gallery.js fotorama js

returnCurrentImages function looping images (this.fotorama.data) from fotorama.js(vendor/magento/magento2-base/lib/web/fotorama/fotorama.js) file. $.fn.fotorama (line num : 3796) set opts.data from ...
S.P's user avatar
  • 1,544
2 votes

Column not found: 1054 Unknown column 'main_table.entity_id' in 'field list',

I also had this issue. For fixing that I did the following: create a new module: module.xml, registration.php add di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
vVin's user avatar
  • 36
1 vote
Accepted

Zend Pdf round corners in rectangle section

I think you may use some tricky like // draw rounded rectangle like $page->drawRoundedRectangle($x1, $y1, $x2, $y2, $radius); // draw classic rectangle over rounded rectangle $page->...
Victor Tihonchuk's user avatar
1 vote
Accepted

Magento 2.4.0 external JS not loading

Probably you are not injecting your library correctly. Let's imagine you have your external library in: https://yourexternal.com/library.js To use it in Magento, you should: Map it in a requirejs-...
PauGNU's user avatar
  • 722
1 vote
Accepted

Magento2 Product Collection Observer only changes one page at a time

The product IDs for this one category are coming from elasticsearch based on the page size defined in "Store > Settings > Configuration > Catalog > Catalog > Storefront > ...
Richard Parnaby-King's user avatar
1 vote

Get error after disabling a module

Try to run the command :- composer dump-autoload
Avesh Naik's user avatar
  • 1,210
1 vote

Get error after disabling a module

Did you tried all of this? rm -rf var/* rm -rf generated/* rm -rf pub/static/* php bin/magento cache:clean php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:clean ...
Nenad's user avatar
  • 21
1 vote

Need to call a function on button click

I tried this for an Ajax call and it's working like a charm. See if this could help. public function getButtonHtml() { $button = $this->getLayout()->createBlock( 'Magento\...
Abdul Samad Abbasi's user avatar
1 vote

Magento 2.4 installation on local returning elasticsearch error

php bin/magento setup:install --base-url="http://127.0.0.1/magento2" --db-host="localhost" --db-name="magento2" --db-user="root" --db-password="" --...
Dipakk's user avatar
  • 152
1 vote
Accepted

Magento2 - How to remove/disable Custom Free Shipping Method from front-end only?

Please try this code. It will help you etc/di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
Suraj Prajapat's user avatar
1 vote
Accepted

Update Product Descriptions programmatically

As a quick answer, the class Magento\Catalog\Model\Product (by inheritance) is using the magic method __call() from Magento\Framework\DataObject.php to reach to the values of the product attributes, ...
Diana's user avatar
  • 5,182
1 vote

How to override model-popup.html magento 2.4.0

You don't need to override it , but you can call your custom modal-popup.html file for your pop up. Below is the code for creating pop up. I have called my custom modal-popup.html in js code. <div&...
ZealousWeb's user avatar
  • 2,088
1 vote
Accepted

How to Enable Custom Shipping Method For Specific Store View?

If you want to manage the Custom Shipping method enabled setting from Store view then you have to do small changes at system.xml of your Custom shipping method module. At Magento Shipping method's ...
Amit Bera's user avatar
  • 77.5k
1 vote

Composer update fail: [UnexpectedValueException]

I found that in the Magento root directory composer.json this repository. repository:{ "mageworx": { "type": "artifact", "url": &...
Bhavesh Prajapati's user avatar
1 vote

Missing mapping in di.xml after upgrading 2.4.0 to 2.4.1

Clearing Redis Cache helped for me.
ThoHo's user avatar
  • 11
1 vote

Magento 2.4.0 versus 2.3.5 regarding CentOS 6 vs CentOS 7 and the version of Elasticsearch

Magento installation will depend on your php version not on your os as per my understanding wheras magento 2.3.5 does not have support for php 7.4 so it would be better to use php 7.3 as of now which ...
Pramod's user avatar
  • 1,464
1 vote
Accepted

Magento 2 Invalid template file

Your file name is form.phtml and you have set template name info.phtml. So either update your file name to info.phtml or update template name in xml file to form.phtml and clean cache once.
Kishan Savaliya's user avatar
1 vote

How to add custom tab in product details page in magento 2.4.0

You might like this one below: this will work using one layout only catalog_product_view.xml, no need of template <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
Herve Tribouilloy's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible