All Questions
5,174 questions
39
votes
8
answers
6k
views
What is Progressive Web Apps, or PWAs in Magento 2?
What does it mean that Magento is becoming a Progressive Web Application
platform?
What will be the code structure of PWAs in Magento?
What is the deal with REST APIs and PWAs?
31
votes
7
answers
100k
views
Magento-2:Class Magento\Framework\App\Http\Interceptor does not exist
Exception.log file Error:
{"exception":"[object] (ReflectionException(code: -1): Class
Magento\Framework\App\Http\Interceptor does not exist
29
votes
3
answers
32k
views
How to implement translations in design template package CSV's? How does echo $this->__('Text') work?
I have a design package setup like so:
design/frontend/package_name/theme_name/locale/
under which I have
de_DE, en_GB etc, under which I have corresponding translate.csv files with the various ...
27
votes
4
answers
13k
views
Why do classes use a helper for translation instead of $this?
In core modules and sometimes templates, I see helper classes being used for translation:
Mage::helper('someModule')->__('translate me');
Why is this preferable to:
$this->__('translate me');
25
votes
4
answers
22k
views
how to create multilingual static block
I need to create multilingual static block. So far I have created static block with id 'delivery_returns'.
I'm calling it in catalog\product\view.phtml like this:
$deliveryBlock = Mage::getModel('...
24
votes
3
answers
37k
views
An exception was raised while creating "Request"; no instance returned
When running the following commands:
php bin/magento cache:flush
php bin/magento set:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
I get this error:
An ...
24
votes
4
answers
57k
views
How to add translations for new words in Magento?
I'm using English, Spanish and German as three store views for my site. What is the easiest way to add translations for new words?
Even if I add new words with the translations it doesn't show in the ...
23
votes
11
answers
123k
views
Magento 2 did not sign in correctly or your account is temporarily disabled
When trying to login to admin account in my local test setup it says : Account is temporarily disabled even i used correct user and password.
23
votes
5
answers
13k
views
Managing Magento csv Translation Files
As time has passed, the Magento core team has added more and more default language packs to the
app/locale
folder. Is there a canon way to manage your own translation files such that they don't ...
22
votes
6
answers
16k
views
Invalid template file - Upgrade issue from 2.2.6 to 2.2.7 or 2.3
I have upgraded 2.2.6 version to 2.2.7 version but its showing below error in my website.
1 exception(s):
Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'C:/...
21
votes
3
answers
4k
views
Magento2 : How to setup PWA in Localhost?
I want to setup PWA in localhost. I have tried in localhost but at last its giving dynamic staging server URL like below
https://magento-venia.local.pwadev:51828/
How can we change it to our ...
20
votes
10
answers
18k
views
Cannot process definition to array for type tinytext in Magento 2.3.0
I'm getting following error "Cannot process definition to array for type tinytext" on Magento 2.3.0 when executing php bin/magento setup:upgrade command.
Thanks
19
votes
3
answers
2k
views
Magento Adding a new Language?
I've looked at several pages regarding adding another language support to the Magento cart, however, there seems to be something missing.
The usual is to download translation through the admin ...
18
votes
4
answers
28k
views
Magento 2.3 : How to implement declarative schema in custom module
I install the magento 2.3 and I'm creating custom module.
But, I don't know how to create custom database table in magento 2.3 version.
18
votes
8
answers
40k
views
Salable Quantity is showing zero in product grid magento 2?
Actually in my case Salable Quantity is showing zero in product grid Magento 2.3.
Due to this issue, products are not showing in frontend. If anyone has any idea then please tell me.
For this re-...
18
votes
5
answers
7k
views
Magento Displaying appropriate localisation based on Location
I'd like to configure the Magento site to be able to recognize the default language and location of the user and display the site in that language and with appropriate localization.
For example:
A ...
17
votes
2
answers
12k
views
\Magento\Framework\Registry deprecated in magento 2.3, How to create instance with Registry?
/**
* Registry model. Used to manage values in registry
*
* Registry usage as a shared service introduces temporal, hard to detect coupling into system.
* It's usage should be avoid. Use service ...
17
votes
4
answers
5k
views
Magento2 localisation Javascript
A similar question was already asked here: Magento 2 javascript text translations, but Magento updated this translation technique in the beta version.
How can I add or update translations used by ...
17
votes
1
answer
1k
views
Conditional RequireJs configuration (Load requirejs-config.js programmatically?)
I would like to replace a RequireJs component only on certain conditions (for example, based on configuration). Is there any way to programmatically prevent loading of my module's requirejs-config.js ...
16
votes
5
answers
34k
views
Why does my translate.csv and the translation files not work?
I'm trying out a new theme and it seems to not get the translations properly.
If I search for the English phrase in my files, I can find:
"You have no items to compare.","Sie haben keine Artikel ...
16
votes
6
answers
19k
views
Magento 2.3.5 Content Security Policy false positive cdn fonts
Since the update of 2.3.5 that came out today Magento built in "Content Security Policy" and that's great but now I'm wondering how to ignore/whitelist CDN font's that are now being reported as a ...
15
votes
4
answers
7k
views
Magento2.1 ui grid, remove or clear filter issue (after removing filter, result row apply to whole collection)
I created ui grid in magento 2.1.0 and facing issue while removing filters or clear all filters from ui grid. My filtered result occupies whole grid means same row repeated in the whole grid after ...
15
votes
1
answer
7k
views
Make magento core template use my module's translation file
In an extension I'm working on, I have a layout XML added via module's config.xml. This layout has some modifications to the frontend. Some of these blocks, however, belong to Magento core modules. ...
14
votes
3
answers
12k
views
magento 2: 'i18n:collect-phrases' command creates different csv files
php bin\magento i18n:collect-phrases -o "C:\xampp\htdocs\magento\app\design\i18n\xx_YY.csv" -m
collects all phrases in the magento application and outputs a csv file with 4 columns:
php bin\magento ...
13
votes
6
answers
24k
views
Magento 2.3 upgrade breaks HTTP POST requests to custom module endpoint
I have a custom module with a defined route as:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<...
13
votes
2
answers
5k
views
Magento 2: what does i18n mean?
When I started working with Magento 2, that was the first time I came accross this abbreviation so I have no idea what does that word/abbreviation mean ?
13
votes
2
answers
6k
views
Magento 2.3 Delete Inventory Source
I've installed a clean Magento 2.3. After trying the multi stock options, i noticed that, under Manage Source page, i can create a new source but not delete it. It looks like the action dropdown is ...
13
votes
2
answers
4k
views
Magento 2: Layered Navigation Price Filter Not Working After Applied Custom Product Discount
I working on a product discount module. I did it via plugin and observer. it's working fine on product page and list page. But price filter is not working according to the updated product price.
Here ...
12
votes
6
answers
48k
views
Magento 2 Translations not working
I'm trying to translate some text in the checkout page:
"Provided Zip/Postal Code seems to be invalid."
However, when I add the following to frontend/..theme../Magento_Checkout/i18n/en_US.csv and ...
12
votes
1
answer
8k
views
NOT_FOUND - no queue 'async.operations.all' in vhost '/' : RabitMQ : Magento 2.3 EE
I am integrating RabbitMQ with magento 2.3. EE ,
When I try to run cron It is giving me below error
NOT_FOUND - no queue 'async.operations.all' in vhost '/'
Can anyone help me on this.
12
votes
3
answers
8k
views
Magento 2.3.5 Content Security Policy (CSP) data:image
Has anyone found a way to integrate the data:image/png as csp_whitelist?
[Report Only] Refused to load the image 'data:image/png;base64,...
12
votes
3
answers
7k
views
Magento 2.3 it's not working properly in localhost [duplicate]
I have installed new Magento 2.3 in my localhost. it is a successfully installed. But When I open an admin URL it comes with blank URL. Also, my homepage comes without Magento default logo.
Also, I ...
12
votes
3
answers
2k
views
Translate Maintenance mode per website in multiwebsite-multidomain setup
Translate Maintenance mode per website in multi website-multi domain setup
What is the proper way of translating (localisation) Maintenance page in a multi-website and multi-domain environment?
...
12
votes
2
answers
613
views
How to handle translations with translation bureaus?
I'm wondering what's the best way to realise translations with translation bureaus.
Basically I see two ways of doing this:
Send them the CSV files.
Give them access to a Magento installation for ...
11
votes
5
answers
33k
views
Magento 2.3 Inject helper into controller object type error?
Sorry I am new to M2, I am having error whenever I load helper class into controller. I searched every online but no luck. Here is the setup and error when I load
Setup: Magento 2.3 Server Centos 7 / ...
11
votes
4
answers
23k
views
Installation at 51% Module 'Magento_Theme' Error in Magento 2
Magento 2 Installation error at 51%.
I am having an issue installing Magento 2.
I followed every step and everything went fine until installation.The installation stops at 66%
I tried to find a ...
11
votes
2
answers
6k
views
How to stop scrolling to first validation error message on magento2 on add to cart?
How to stop scrolling to top or first validation failure message
11
votes
2
answers
10k
views
Magento2.3 setup:upgrade error
After being able to update magento to 2.3 (which was a pain by itself) I managed to get to the part where the database needs to be updated. Which is in current state when I try to run the command bin/...
11
votes
2
answers
22k
views
How to override translate csv files in magento2
Suppose, I want to translate Shop By to Shop in my custom theme using translation file en_US.csv
What is the method or procedure to achieve it in Magento2?
11
votes
3
answers
7k
views
PWA Setup in Magento 2.3.0
How we can use it in Magento 2.3.0?
In Magento 2.3.0, they claim PWA is supported one?
How can we start with this great feature to experience the new thing?
11
votes
7
answers
13k
views
Magento 2.3 custom email attachment not working
Custom email attachment file is not working in magento 2.3.
its working in Magento 2.2.X
Fatal error: Uncaught Error: Call to undefined method Magento\Framework\Mail\Message\Interceptor::...
11
votes
4
answers
6k
views
Magento 2.2.X > 2.3.0 upgrade issues
Today magento 2.3.0 was officially released. I tried to upgrade from 2.2.6 > 2.3.0 but failed. Tried to upgrade from 2.2.6 > 2.2.7 and it succeeded with no issues. tried again 2.2.7 > 2.3.0 and got ...
11
votes
6
answers
16k
views
product not saving after upgrading to Magento 2.3
Recently I upgraded My Magento 2.2.6 to 2.3, After upgrading I configured Multi Source Inventory, It is working as expected while creating new products (and products created after upgradation). But it ...
11
votes
4
answers
8k
views
"Error while checking if topic is synchronous" on setup:upgrade
While upgrading a 2.2.8 database to 2.3.2 I got this error today:
Schema post-updates:
Module 'Magento_Store': ...
10
votes
5
answers
12k
views
SodiumChachaIetf::decrypt() must be of the type string, boolean
I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click ...
10
votes
8
answers
14k
views
Magento 2 is not generating the db_schema_whitelist.json file via CLI
I’m updating a module to Magento 2.3 and need to migrate the old setup install scripts to the new db_schema.xml file (the new declarative schema). The db_schema.xml file was correctly generated after ...
10
votes
2
answers
20k
views
Magento 2: How to setup Elasticsearch from CLI?
We need to setup elasticsearch on Magento 2 when a new container starts.
We have post-install scripts that could handle that and not have someone go into the admin and manually do it.
Thanks.
10
votes
6
answers
9k
views
Title tag in layout is not translated
I don't know if this a bug, but title tag in layout is not translated.
For example,
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="...
10
votes
4
answers
11k
views
Customer password not working after migration from Magento 1 to Magento 2
I have migrated only customers from Magento 1.6.2.0 to Magento 2.2.3 and customers migrated successfully and listed properly in the admin section.
But when I try to login with the Magento 1 password ...
10
votes
1
answer
993
views
The purpose of the http verbs interfaces
In Magento 2.3 there are some interfaces for all the http verbs
Magento\Framework\App\Action\HttpPostActionInterface
Magento\Framework\App\Action\HttpGetActionInterface,
...
All of them are empty ...