Skip to main content

Questions tagged [magento2.2.2]

It should be used for questions about Magento 2.2.2

Filter by
Sorted by
Tagged with
39 votes
3 answers
25k views

Magento 2: template security: which method to use?

I'm aware Magento 2 has several methods available to secure the template: $block->escapeHtml() $block->escapeQuote() $block->escapeUrl() $block->escapeXssInUrl() But I'm wondering when ...
Raphael at Digital Pianism's user avatar
2 votes
1 answer
3k views

Notice: Undefined index: default in vendor/magento/module-catalog/......BatchSizeCalculator.php

I got this error when try to reindex catalog_product_price php bin/magento indexer:reindex catalog_product_price Notice: Undefined index: default in /public_html/vendor/magento/module-catalog/...
Mage Explorer's user avatar
23 votes
9 answers
46k views

Magento 2 Please update innodb_buffer_pool_size or decrease batch size value

After installing Magento 2.2.2 when I check my error log I get this warning. Memory size allocated for the temporary table is more than 20% of innodb_buffer_pool_size. Please update ...
Priyank's user avatar
  • 7,712
0 votes
3 answers
6k views

How to solve the error : "Could not save product "20072" with position 0 to category 7" in magento 2 [duplicate]

While unasign the product from multiple categories to single category and trying to save the product, it thorow the error like below Could not save product "20072" with position 0 to category 7 I ...
Jaisa's user avatar
  • 2,636
12 votes
4 answers
23k views

Magento 2: how to delete orders from the database

How can I delete the test orders created in my store? I have opened the database but I couldn't find the order table. Please help me to delete the orders. I'm using the later version of Magento 2.
SalesforceElearner's user avatar
8 votes
3 answers
6k views

Magento 2 Reindex Fail `Unknown column 'entity_value.value'` in 'field list'

I am having this error when running php bin/magento indexer:reindex also failing when loading the product: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_value.value' in 'field list',...
Juliano Vargas's user avatar
6 votes
3 answers
5k views

Magento 2.2 move review tab below description with all product reviews

I have added the following code to 'Magento_Review/layout/catalog_product_view.xml': <move element="reviews.tab" destination="content" after="product.info.details" /> The above code moved the ...
Wasiq Shahrukh's user avatar
6 votes
3 answers
9k views

Which file hold this layout {{layout handle="sales_email_order_items" order=$order area="frontend"}}

Is there anyone knows how or where to update the file for the email order notification template. {{layout handle="sales_email_order_items" order=$order area="frontend"}} Thank you, JM
Jm Cabugnason's user avatar
5 votes
1 answer
5k views

Ui-component form (Adding drop down field)in magento 2

I need to create backend admin form which contains two dropdown fields.But One is dependent on other. One dropdown contains attributes like brand,color etc.. The second one contains associate options ...
Jaisa's user avatar
  • 2,636
3 votes
4 answers
4k views

Static files version folders not found hence design collapsed and getting 404 for all css and js

I was trying to rectify some ACL issues in my application I removed the static folder inside the pub and I run di:compile and static-content:deploy. Also, I have given 777 permission to var and ...
Abel's user avatar
  • 143
2 votes
1 answer
3k views

Magento 2 Add extension attributes in Quote Item

I want to add custom attribute in quote items Magento\Quote\Api\Data\CartItemExtensionInterface <extension_attributes for="Magento\Quote\Api\Data\CartItemExtensionInterface"> <attribute ...
Ketan Borada's user avatar
  • 2,643
2 votes
2 answers
5k views

How to add save and continue button in ui-form in Magento 2?

I have created admin grid and form using ui component. Now I need to add save and continue button, How do I add it? Please provide me a solution
Jaisa's user avatar
  • 2,636
0 votes
1 answer
197 views

SOLVED - Moving Magento 2.2.2 development environment to production environment

I'm trying create and manage my Magento project with 2 domain on my webserver. I'm using Magento 2.2.2. 1. dev.test.com => for development. 2. test.com => for production. My idea is using github repo ...
Tran Duy's user avatar
0 votes
2 answers
2k views

Extending bundle product in custom type ends up without "add option" button

I need a custom product type to be able to use other transaction mail templates. For that purpose I am using an existing module which contains the following code: <vendor>/<module>/etc/...
muhkuh2005's user avatar
14 votes
4 answers
24k views

500 Internal Server Error when installing magento2.2.2

I am trying to install Magento 2.2.2 on my local Windows environment with WAMP. But it gives me a 500 Internal Server Error. When I replace the previous version of htaccess file it does work. Would ...
Zahirabbas's user avatar
  • 2,083
9 votes
3 answers
2k views

Disable cart sharing between different Stores of website in Magento 2?

My website is with Three different Stores and I'd like to disable the cart sharing feature between stores. So when I switch from one store to the other store, the product in my cart shouldn't be valid ...
Rakesh Jesadiya's user avatar
9 votes
2 answers
14k views

Magento 2 Too many password reset requests even when password reset protection is disabled

I logged in as administrator to Magento backend and trying to reset password for some customers. I have disabled password protection from Configuration -> Customers -> customer configuration. so it ...
Magento Learner's user avatar
7 votes
3 answers
15k views

Magento 2 not minifying JS, CSS or HTML in Production Mode

I am running a magento 2.2.5 CE in production mode with two storefronts setup. The settings in admin are as follows: Minify Html: Yes Merge JavaScript Files: Yes Enable JavaScript Bundling: Yes ...
Jako Basson's user avatar
6 votes
5 answers
37k views

Get database connection in magento 2

I wish to have code equivalent in Magento 2. The below one is Magento 1 $resource = Mage::getSingleton('core/resource'); $connection = $resource->getConnection('core_read'); I need the above ...
Jaisa's user avatar
  • 2,636
6 votes
2 answers
2k views

magento 2.2.2 array_replace_recursive(): recursion detected

I have installed new magento 2.2.2 version but when i run command php bin/magento setup:upgrade getting error Warning: array_replace_recursive(): recursion detected in vendor\magento\module-config\App\...
Mukesh Prajapati's user avatar
5 votes
6 answers
5k views

Magento 2.2.2 remove other shipping methods and enable only free shipping if consumer total more than 100

We are using Magento 2.2.2, We have more then 5 shipping methods enabled in our site. We needs to remove other shipping methods and enable only free shipping if the cost of their order totals to ...
Aasim Goriya's user avatar
  • 5,454
5 votes
3 answers
10k views

Magento 2.2.2 how to check if current page is a CMS page in .phtml file?

I am using the following code to check if the current page is Product detail page: $objectManagerCms = \Magento\Framework\App\ObjectManager::getInstance(); $registry = $objectManagerCms->get('...
Wasiq Shahrukh's user avatar
4 votes
3 answers
8k views

Magento 2 Change Reset Password email template

In Magento 2, when editing a customer in the backend you have the option to Reset Password for the customer, when click on Reset Password, customer will get an email with a link to reset the password. ...
Magento Learner's user avatar
4 votes
3 answers
22k views

Varnish - Error 503 Backend fetch failed

I getting this error how can i do? i try to editing many time but still not work. Error 503 Backend fetch failed Backend fetch failed Guru Meditation: XID: 35 Varnish cache server My ...
niceonelee's user avatar
3 votes
1 answer
1k views

How the list.html(Magento_Checkout/web/template/payment-methods/list.html) is works to render and display the payment methods in checkout page

I wish to know how the list.html works while displaying the payment methods. 1)How it loops to display the payment methods using below template list.html <div if="isPaymentMethodsAvailable()" ...
Jaisa's user avatar
  • 2,636
3 votes
1 answer
2k views

Magento 2 : Image Validation is not working in back end form

I have a custom module which manage to upload the banners. Everything working fine except image validation. Below is my code for the image in app/code/E25media/Bannersmanager/Block/Adminhtml/...
Mujahidh's user avatar
  • 2,823
3 votes
2 answers
7k views

Array to string conversion in Magento 2

Notice: Array to string conversion in /home/pacifi48/public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 2999 Magento 2 Version 2.2.2 How to solve???
Mandal's user avatar
  • 41
2 votes
1 answer
1k views

How to override to remove/comment a line in customer_listing.xml in Magento 2

I want remove/comment this line <filterSearch name="fulltext"/> in customer_listing.xml located in vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml I want to ...
Magento  Dev's user avatar
2 votes
2 answers
1k views

After upgrade magento 2.1.8 to 2.2.2 getting error : Unable to unserialize value [duplicate]

After upgrade magento 2.1.8 to 2.2.2 getting error : Unable to unserialize value. Exception #0 (InvalidArgumentException): Unable to unserialize value. Unable to unserialize value. {"...
crazydev's user avatar
2 votes
2 answers
5k views

How to add a new field in cart price rule form in magento 2 backend?

I need to add a new dropdown field in the "CART PRICE RULE" form in Backend: MARKETING > PROMOTIONS > CART PRICE RULES > ADD NEW RULE
Jaisa's user avatar
  • 2,636
2 votes
4 answers
9k views

IN STOCK FILTER FOR Magento 2 Product collection

i am trying to filter inStock product in Magento 2 Using I am trying to filter inStock product in Magento 2 Using \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory,...
Vinit Kumar's user avatar
2 votes
4 answers
9k views

Magento 2 Admin Page Error: Your current session has been expired

Fresh Install of Magento 2.2.2 on Centos (Plesk) with Apache 2.4, php 7.0.2 + all modules, mariaDb 10.1. Magento Installation was done via browser wizard -> readyness check-> everything was ok. When ...
Blackpanther0001's user avatar
2 votes
1 answer
4k views

Return all JS functions via requirejs

In my exemple, i have just one function and I call it in phtml on passing the name function as param require(['jquery', 'module'], function($, hello) and it works fine. Now if i want to return 10 ...
PЯINCƎ's user avatar
  • 11.7k
2 votes
2 answers
2k views

Not able to translate OK and cancel buttons in confirmation popup minicart

After adding an item into cart if we goto mini cart and click on remove item a confirmation popup with Ok and Cancel option will appear. I am not able to translate the Ok and Cancel buttons. Please ...
Dilip Athreya's user avatar
1 vote
1 answer
188 views

Magneto 2.2.2 upgrade to 2.3.2 Getting Error

We are trying to upgrade a Magento 2.2.2 site to Magento 2.3.2, when executing php bin/magento setup:di:compile we get the error... Repositories code generation... 1/7 [====>-----------------------]...
MuhammedOmar's user avatar
1 vote
2 answers
1k views

How to add filter to the collection of attributes in magento 2

magento 1 code to get all the attributes collection public function getAttributes() { $collection = Mage::getResourceModel('catalog/product_attribute_collection')->addVisibleFilter()-&...
Jaisa's user avatar
  • 2,636
1 vote
0 answers
239 views

Reviews Grid Listing, Reviews Edit Form and Reviews New Form are not showing in admin Magento2.2.2

After logged in admin I can't see reviews listing. Also in product edit page in admin review listing not showing. Any one know what is the solution? Log File Showing Error Below [2018-07-24 ...
Jugal Kishor's user avatar
  • 1,225
1 vote
1 answer
4k views

Custom js fie not working Magento 2

Currently I am working in magento2 theme part. And I have a main.js file which I have added via default_head_blocks.xml . But its having jquery conflict. I removed jquery conflict using noConflict. ...
Bridgit Thomas's user avatar
1 vote
2 answers
1k views

How to override definition.xml file in Magento 2?

I am developing an extension to add another export format option in order toolbar in export button dropdown. What I found yet is that there are two options here (Sales Order Toolbar) right now: a) ...
Arshad Hussain's user avatar
1 vote
3 answers
4k views

Magento 2.2 - Uncaught TypeError: this.modal.zIndex is not a function

Am using Venus need theme, on mini cart's delete click and Checkout's Already have an account? Click here to login throws this issue. Uncaught TypeError: this.modal.zIndex is not a function modal....
Ejilarasan J's user avatar
1 vote
1 answer
481 views

Magento2.2.2 Order email confirmation after switched back on sends old order confirmation email

Order email Communications has been switched Off for long period of time as the emails was being sent outside of magento. However I notice while testing that if switched back On Old order emails ...
Juliano Vargas's user avatar
1 vote
1 answer
1k views

Magento 2.2.2 to Magento 2.3.2 - setup:upgrade error

After being able to update magento to 2.3.2 Which is in current state when I try to run the command bin/magento setup:upgrade: get the below error root@---:/var/www/html# bin/magento setup:upgrade ...
MuhammedOmar's user avatar
1 vote
1 answer
1k views

Magento 2 how to create Single Time Picker

I know magento provides functionality like Single Time Picker: How to do it? I found how to create date picker and date-time picker. But for my task, i should to create single time picker...
Duddy Woody's user avatar
1 vote
2 answers
2k views

Add template file in admin edit form

I want to add phtml file in Grid\Edit which is contain image or other html part Following Form.php file <?php namespace Vandor\Namespace\Block\Adminhtml\Grid\Edit; use Magento\Backend\Block\...
Hardik Visa's user avatar
1 vote
1 answer
6k views

How the payment methods are rendered and displayed in checkout page in magento 2

I wish to know how the payment methods are rendered in checkout page in magento 2
Jaisa's user avatar
  • 2,636
1 vote
2 answers
3k views

No such entity with id = 0 for CategoryRepository

I am new to magento2. Have worked enough on magento 1 but this is my first project with magento 2.2 and i ran into issue. I have magento 2.2 setup and installed template monster theme. Everything was ...
Rishi Mehta's user avatar
1 vote
1 answer
869 views

Magento 2.2.2 - After update cart error has occurred :We can't find the quote item

After editing a product, i get this error, We can't find the quote item. I cannot get new quote_id after editing a product. Has anyone got any idea about this?
Dhaduk Mitesh's user avatar
0 votes
2 answers
8k views

In which table the attribute set ids are stored in magento 2

In which table the attribute set ids are stored in magento 2. I wish to save the product with its attribute set id . So Please provide me a solution
Jaisa's user avatar
  • 2,636
0 votes
1 answer
708 views

General Question regarding the data migration tool of Magento

I know Magento recommends Data migration in below order: Settings Data Changes http://devdocs.magento.com/guides/v2.0/migration/migration-migrate.html First, we need to migrate the settings, then ...
Shyam Krishna Sreekumar's user avatar
0 votes
1 answer
2k views

Magento 2.2.2: problem with php bin/magento setup:di:compile

when I try to compile after setup:upgrade It displays for me blank page with error in log file: main.INFO: Broken reference: the 'logger' element cannot be added as child to 'after.body.start', ...
Mohamed Elkashef's user avatar