32 votes

After upgrade from Magento 2.2.x to 2.3.x getting "No linked stock found" on multistore

Go to Stores -> Inventory -> Stocks (admin/inventory/stock/edit/stock_id/1/) and enable it for all websites, then hit save. (See also https://community.magento.com/t5/Magento-2-x-Version-Upgrades/...
Alex's user avatar
  • 13.7k
18 votes

Consumer "async.operations.all" skipped as required connection "amqp" is not configured. Unknown connection name amqp

Danila is above is right Solutions that tell you to do cron_run = 'false" will disable other queues you do want, like bulk attribute update or export file generation. Option 1 disable packages ...
iphigenie's user avatar
  • 1,679
18 votes

Consumer "async.operations.all" skipped as required connection "amqp" is not configured. Unknown connection name amqp

The answer from @Rafael Corrêa Gomes (and any to the point that mentions either 'cron_run' => false or 'consumers' => ['async.operations.all'] in the configuration are quite outrageous because ...
Danila Vershinin's user avatar
17 votes
Accepted

How to stop scrolling to first validation error message on magento2 on add to cart?

Copy MAGENTO_ROOT/vendor/magento/magento2-base/lib/web/mage/validation.js into app/design/frontend/THEME_ROOT/web/mage/ then delete (start in line 1956) if (firstActive.length) { $('html, body')....
bkristl's user avatar
  • 341
16 votes

After upgrade from Magento 2.2.x to 2.3.x getting "No linked stock found" on multistore

Im using composer 1.9.1 on Magento 2.3.2 and I have this issue on domains other than the main domain on our multi-site. So for me, composer update was not the answer. But thanks for your suggestion :) ...
user2864591's user avatar
14 votes

How to stop scrolling to first validation error message on magento2 on add to cart?

Here is a solution with a mixin to avoid overwriting the whole file: 1) app/design/frontend/[THEME_VENDOR]/[THEME_NAME]/Magento_Theme/requirejs-config.js var config = { config: { mixins: ...
Daniel Kratohvil's user avatar
14 votes
Accepted

Can't check requested quantity for products without Source Items support issue on 2.3.1

New code from Magento 2.3 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/product_types.xsd"&...
Shahanas K V's user avatar
13 votes
Accepted

Magento 2 Could not acquire lock for cron group: default

In our case the issue was caused by a hanging cron job. The solution was to kill the cron job then everything returned to normal. https://help.nexcess.net/magento/how-to-find-and-remove-hanging-...
nlaitchison's user avatar
12 votes
Accepted

All payment methods are not coming in Cart Price Rule

open file vendor/magento/module-payment/Helper/data.php at line number 268 put this line $data['active'] = 1; if you dont want to change in the core file than you need to override that file ...
Jigs Parmar's user avatar
  • 2,428
11 votes
Accepted

Magento 2: Migrate only Customer and orders

Install Data Migration Tool Check your Magento 2 version :- sudo php bin/magento --version Install Data Migration Tool from repo.magento.com :- composer config repositories.magento composer https://...
Ronak Rathod's user avatar
  • 6,216
10 votes

Whats the purpose of lockedLoadData / uncached page build takes around a minute, spent in usleep

Well that's a -- choice? -- the Magento engineers made. This isn't an answer, but it looks like that function accepts a callback that's meant to load cached data. The callback checks if there's ...
Alana Storm's user avatar
  • 44.2k
10 votes

Magento 2.3.1 - Issue with catalog search when using php7.2-fpm

You might want to look at this Github issue here. Magento is compiling a list of product IDs to send as a cache header but the header ends up being too long because the header string includes all ...
S Adamson's user avatar
  • 699
9 votes

bin/magento error after update

The issue can be fixed by manually editing composer.json autoload section to "autoload": { "psr-4": { "Magento\\Framework\\": "lib/internal/Magento/Framework/", "Magento\\Setup\\":...
Suman Pradhan's user avatar
9 votes

Whats the purpose of lockedLoadData / uncached page build takes around a minute, spent in usleep

lockedLoadData mechanism needs to decrease the load on the server. Previously when configuration cache is cleaned on hi-loaded sites all client has generated the same information that significantly ...
KAndy's user avatar
  • 20.7k
9 votes
Accepted

setup:upgrade SQL error after update from 2.2.8 to 2.3.1

Apparently it is a Magento bug. When comparing current schema to declared schema, constraints and other indexes are handled separately, but the existing index is not dropped before the new UNIQUE ...
Fabian Schmengler's user avatar
9 votes

File type .svg Error in image upload Magento 2.3.1

The reason SVG's are disabled in Magento 2 by default, is for security reasons such as stored XSS. And I would recommend that you leave them disabled atleast for now until we get better sanitization ...
Sam's user avatar
  • 1,890
9 votes
Accepted

How to convert install/upgrade schema scripts to db_schema.xml files?

After writing my question. I found my issue: I had run the setup upgrade command before. So, I removed my module from setup_module table and my custom data table. Then I ran the two commands again. ...
Khoa TruongDinh's user avatar
8 votes

Magneto 2: Different countries in billing and shipping address

For show only one country in shipping address country dropdown we have to create plugin of LayoutProcessor method for override country_id children field of shipping-address-fieldset which we found in ...
Raj's user avatar
  • 821
8 votes

How to remove the attribute element in the layout in magento 2

I have solved the problem by following link https://github.com/outeredge/magento-structured-data-module/commit/41ea6ca81a2d8499b954498bce09b7be9d80dc2a <page layout="1column" xmlns:xsi="http://www....
Jaisa's user avatar
  • 2,522
7 votes
Accepted

Magento 2 : Coding standerd Provide me Some Warnings How to solve it?

You can use the Magento framework methods instead of core php functions(AFAIK for the security reasons Magento discouraged these types of functions) For example, use Magento\Framework\...
Keyur Shah's user avatar
  • 17.9k
7 votes
Accepted

Magento 2 - 2.3.1. Warning "JQMIGRATE: Migrate is installed with logging active, version 1.4.1"

Edit file lib/web/jquery/jquery-migrate.js Look for at line 19 // Set to true to prevent console output; migrateWarnings still maintained jQuery.migrateMute = false; and change to true // Set to true ...
snh_nl's user avatar
  • 5,402
7 votes

How to remove an argument's item in LayoutXML

Try to set it to xsi:type="null" <item name="msrp_price" xsi:type="null"></item>
Black's user avatar
  • 3,110
7 votes
Accepted

Error: DDL statements are not allowed in transactions while running setup:upgrade. Running Data Patch

After going through Declarative Schema docs again and referencing core magento code for Quote Module and Paypal Module I have figured that if you want to add a field into the existing table in Magento ...
PhantomS's user avatar
  • 503
7 votes
Accepted

How to display product image gallery in any phtml file?

Please check with below url - first you need create you own module in magento 2 (you can search in google) , in ibnab we created extension with name Ibnab_CloudZoomy , Magento 2 system use the ...
Anas Mansuri's user avatar
  • 2,627
6 votes

After upgrade from Magento 2.2.x to 2.3.x getting "No linked stock found" on multistore

I Had the same issue on a new (migrated) M2 Store This was the solution: Go to Stores -> Inventory -> Sources, add new Sources Go to Stores -> Inventory -> Stocks Add new Stocks and select all stores,...
Roy Toledo's user avatar
6 votes

File type .svg Error in image upload Magento 2.3.1

open OR overwrite below file and code <item name="svg" xsi:type="string">text/html</item> /vendor/magento/module-cms/etc/di.xml <type name="Magento\Cms\Model\Wysiwyg\Images\Storage"&...
Shorabh's user avatar
  • 1,510
6 votes

Shipment Email Template issue Magento 2.3.1

You can create a template file in your theme this core file : vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml and add condition before this function ...
Pradip Garchar's user avatar
6 votes
Accepted

Magento 2: While running "vendor/bin/phpcbf" Uncaught Error: Class 'PHP_CodeSniffer\Runner' not found

Inside project Install composer require squizlabs/php_codesniffer:^3.4 // magento ruleset composer require magento/magento-coding-standard // auto ruleset installer – automatically pickup '...
Dominic Pixie's user avatar
6 votes
Accepted

Upgrade magento 2.3.1 to 2.3.2

As far as I know, there are two main ways: If using command line composer, you can follow this guide: https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html https://devdocs.magento....
Khoa TruongDinh's user avatar
6 votes

Elastic search was not working in Magento 2.3.2 (Enterprise edition)

Open below URL directly in the browser http://127.0.0.1:9200/_cat/indices?v 127.0.0.1 - Replace with Elasticsearch Server Hostname 9200 - Replace with Elasticsearch Server Port Will show ...
sandip's user avatar
  • 3,914

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