Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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?
Aditya Shah's user avatar
  • 7,647
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
Lokesh M's user avatar
  • 443
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 ...
waffl's user avatar
  • 723
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');
Brendan Falkowski's user avatar
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('...
ruuter's user avatar
  • 1,079
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 ...
Developper Magento 's user avatar
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 ...
Sukeshini's user avatar
  • 9,975
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.
Yogesh Trivedi's user avatar
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 ...
Alana Storm's user avatar
  • 44.4k
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:/...
Sanjay Jethva's user avatar
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 ...
Sanjay Jethva's user avatar
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
Pradeep Sanku's user avatar
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 ...
Karlson's user avatar
  • 747
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.
harsh khandhar's user avatar
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-...
Hitesh Balpande's user avatar
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 ...
Karlson's user avatar
  • 747
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 ...
Jiachao's user avatar
  • 171
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 ...
Silvan's user avatar
  • 1,357
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 ...
Fabian Schmengler's user avatar
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 ...
Chris's user avatar
  • 577
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 ...
Riccardo's user avatar
  • 382
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 ...
rajneesh gupta's user avatar
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. ...
Mridul Aggarwal's user avatar
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 ...
Blackpanther0001's user avatar
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"> <...
snez's user avatar
  • 744
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 ?
Raphael at Digital Pianism's user avatar
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 ...
MartinE's user avatar
  • 520
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 ...
Dhairya Shah's user avatar
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 ...
Cake's user avatar
  • 346
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.
Hitesh Agrawal's user avatar
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,...
Materix's user avatar
  • 478
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 ...
sky's user avatar
  • 1,397
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? ...
versedi's user avatar
  • 2,059
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 ...
Matthias Zeis's user avatar
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 / ...
Shin's user avatar
  • 113
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 ...
sayur_patel's user avatar
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
Syed Saleem's user avatar
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/...
David Kooijman's user avatar
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?
Anshu Mishra's user avatar
  • 9,010
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?
zuber bandi's user avatar
  • 1,092
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::...
Manish Maheshwari's user avatar
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 ...
Borde91's user avatar
  • 350
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 ...
Piyush's user avatar
  • 5,914
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': ...
Fabian Schmengler's user avatar
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 ...
Krunal Pandya's user avatar
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 ...
Daniel Kratohvil's user avatar
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.
Eric Cavalcanti's user avatar
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="...
jstuardo's user avatar
  • 609
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 ...
Jalpesh Patel's user avatar
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 ...
Marius's user avatar
  • 199k

1
2 3 4 5
104