Questions tagged [magento2.4.0]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

How to stop attackers to execute script and run 100 requests to create account?

On client magento website has enabled google captcha version 2 on create account page. exception.log file has following errors (Magento\\Framework\\Stdlib\\Cookie\\CookieSizeLimitReachedException(code:...
Niraj Patel's user avatar
0 votes
0 answers
1k views

"No such entity with cartID = null" in the checkout after logged in on the other tab

The checkout stopped working after logging in on another browser's tab. Scenario: Fill the cart and proceed to the checkout page. Go to the other browser's tab and logged in there. Go back to the ...
Jiří Chmiel's user avatar
0 votes
1 answer
62 views

Magento 2 add new website in existing website steps

I have a existing website for Canada and all products attributes at global and if I add new website for USA and follow all steps successfully to add new website so then should I update all products ...
Niraj Patel's user avatar
1 vote
1 answer
285 views

How to stop create customer via rest API in magento 2?

I do not know how to stop to create customers via REST API in magento 2. I have magento 2 instance in 2.4.0 version I found a below code in vendor/magento/module-customer/etc/webapi.xml path <route ...
Niraj Patel's user avatar
0 votes
1 answer
437 views

Magento 2.4.0 stock status not changed after 0 quantity in multi source inventory

I added two inventory source location in Magento 2.4.0 to manage different warehouse inventory. And also I added two different website. For example One warehouse is Canada and another warehouse in USA....
Niraj Patel's user avatar
0 votes
1 answer
477 views

how to Magento 2 code debug in remote server with Visual Studio?

I would like to increase my development productivity. Is it possible to add breakpoints in Magento 2 server files in Visual Studio? Because there is a plugin called XDEBUG in VS code. I installed it ...
Niraj Patel's user avatar
0 votes
1 answer
58 views

Can I set Manage stock at website level?

I have question regarding inventory management. I do not want to use multi source inventory for our magento 2.4.0 store. Now we are going to convert multi website with different quantities for same ...
Niraj Patel's user avatar
0 votes
1 answer
85 views

magento 2: debug to addtocart simple product for one qty in stock

I am trying to figure out the flow add to cart item. Note: before add to cart my cart is empty I have a simple product and it has one qty and product inStock is yes, it does not go prepare function in ...
Niraj Patel's user avatar
1 vote
1 answer
143 views

After upgrade magento 2.4.4 version order shipment is not working?

i have upgrade magento 2.4.4 version,after upgrade shipment will not create on chrome browser.if i am trying to mozila firefox it's working. https://i.stack.imgur.com/xA4Y7.png https://i.stack.imgur....
pankaj parmar's user avatar
1 vote
1 answer
1k views

Magento 2 How to get the Order Extension_Attribute Value in AfterPlugin

How to get an order's extension attribute value when creating the order via the API? For example to create an order I'm calling /rest/V1/carts/mine/payment-information with the following payload: { ...
Alok Kumar's user avatar
1 vote
2 answers
567 views

how to convert current timezone date to gmtdate in magento 2?

In Magento store, it sets America/Toronto timezone how to convert current date time to gmt date time,here is my current date time code $currentTimeZoneTime = $this->timezone->date()->format('...
Niraj Patel's user avatar
0 votes
1 answer
315 views

how to subtract 1 day from magneto 2 timezone function?

I have to use magento function for date and I wanna subtract 1 day from following code,how can I do it ? I do not want to use PHP function for date how can I subtract 1 day from follwoing code ? $...
Niraj Patel's user avatar
0 votes
2 answers
324 views

Magento 2 : product quantity increasing automatically

I am using magento 2.4.1, the issue is randomly my product's quantity is increasing, it automatically increments the quantity after some time. I tried to keep eye on few products and found that each ...
quickshiftin's user avatar
0 votes
1 answer
302 views

Magento 2.4.4 upgrade after customer login is not working?

I have upgraded the site from magento 2.4.2 to magento 2.4.4. After the upgrade, the customer login is working fine, but after logging in, if I move to any other pages, the customer logs out ...
pankaj parmar's user avatar
1 vote
1 answer
239 views

Magento 2: performance issue with Magento\Framework\View\TemplateEngine\Php::render

I have enabled the new relic log to check the performance of the Magento 2 website. On home page I am rendering 5 blocks with 5 template files. In new relic logs, it shows homepage takes time to ...
Niraj Patel's user avatar
0 votes
1 answer
166 views

Zend Pdf round corners in rectangle section

I wrote the below code to show rectangle in pdf file $page->setFillColor(new \Zend_Pdf_Color_GrayScale(0.92)); $page->setLineColor(new \Zend_Pdf_Color_GrayScale(0.92)); $...
Niraj Patel's user avatar
1 vote
2 answers
725 views

ui-select optgroup filter dropdown in Magento 2 Grid Filter

I am trying to group the option using optgroup for ui-select component in magento2 grid, but facing some issue. It is working fine with the [label,value] options not with optgroup. What i am trying to ...
Naveen BT's user avatar
3 votes
1 answer
325 views

Magento 2.4.4 upgrade after credit memo grid gives requested store wasn't found error?

i have upgrade magento 2.3.3 to 2.4.4, all other things are working fine, i have also check credit memo created successfully, but credit memo grid gives "The store that was requested wasn't found....
pankaj parmar's user avatar
1 vote
2 answers
1k views

Magento 2 Gallery.js fotorama js

there is a function returnCurrentImages in gallery.js file returnCurrentImages: function () { var images = []; _.each(this.fotorama.data, function (...
Niraj Patel's user avatar
0 votes
1 answer
180 views

Magento 2 convert current date time to gmtdate

How to convert current timezone date and time to gmtdate and time ? Here I am adding some hours for todays date and wants to convert in gmtdate to filter order colleciton //Magento\Framework\Stdlib\...
Niraj Patel's user avatar
0 votes
2 answers
160 views

Magento 2 add JS only on specific static page

I have created one static page, I wanna load specific JS only on specific static page, Here my static page name is ship_custom_page If I have to load specific JS in product page so I am using ...
Niraj Patel's user avatar
0 votes
0 answers
106 views

Magento 2: color picker is not working in ui custom form

it's show like this and I define its field name in XML file
Muhammad arslan's user avatar
0 votes
1 answer
196 views

Magento 2.4.0 external JS not loading

one external js library has this kind of code and full library of code at bottom !(function (o, e, t, _) { ........... ....... .......... })(jQuery, window, document); ...
Niraj Patel's user avatar
0 votes
1 answer
229 views

Magento 2 : Get option name rather option id in product collection

Hi I am using below product collection,but it returns option id of attribute in collection my question is how to get option label rather than option id in collection. Is there any way ? Because I am ...
Niraj Patel's user avatar
0 votes
2 answers
949 views

How to upgrade Magento Enterprise Edition?

I am a newbie for the Magento enterprise edition. I am upgrading Magento 2.3.5-p2 to Magento 2.4.0 in Enterprise Edition. Following commands used with MySQL 5.7 and php7.3: composer require magento/...
Emily's user avatar
  • 93
0 votes
1 answer
69 views

Magento 2.4.0 upgrade to 2.4.3 error

I am getting error while upgrading Magento 2.4.0 CE to 2.4.3 while executing setup:upgrade command. Cannot instantiate interface Magento\MediaContentSynchronizationApi\Model\GetEntitiesInterface#0 /...
Baljinder's user avatar
0 votes
1 answer
441 views

Magento 2.4.3 : default magento 2.4.3 success or error message not appear on frontend?

We have Magento 2.4.3 upgrade after any action/event perform we can't appear with success/error messages. if we have to go to other pages then the message will be appearing there.
pankaj parmar's user avatar
1 vote
1 answer
409 views

Magento2 Product Collection Observer only changes one page at a time

In ListProduct block Magento is using initializeProductCollection() to initialize the collection. While initializing it dispatches event catalog_block_product_list_collection as follows. $this->...
Richard Parnaby-King's user avatar
0 votes
0 answers
28 views

custom ui form on menu click?

I'm try to add a form on menu click and it doesn't works. Can anyone knows?? <menu> <update id="FME_Extensions::fmeextensions" title="FME Extensions" module="...
aich.khalid's user avatar
0 votes
0 answers
37 views

Items are missing on Order Details Page

I am getting an error, when customers are placing an order then on In admin Sales=> Order details page Orders items are missing. But invoice is created successfully. All items are coming in when I ...
Wajahat Bashir's user avatar
3 votes
1 answer
232 views

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

The condition should be like if the country is the UK then the text should not be shown. If the country is other than the UK then the text should be shown. On the cart page, I achieved using the ...
Rajkumar Vellaiswamy's user avatar
0 votes
3 answers
470 views

Get error after disabling a module

I have upgraded Magento from 2.2.4 to 2.4.0, i have custom modules that are not compatible with the new Magento version. So i disabled the module but when i run php bin/magento setup:di:compile I ...
tarek fellah's user avatar
0 votes
1 answer
789 views

After Upgrade to magento2.4.2-p1 getting admin login error, redirecting to denied controller

I have upgraded to Magento2.4.2-p1, and I am not able to log in to admin. It is redirecting to the denied controller. Check screenshot
Kamal Mittal's user avatar
0 votes
2 answers
200 views

After upgrade to magento2.4.2-p1, getting error "stat failed for static/frontend/_view/en_US/Magento_Theme/favicon.ico"

Upgraded to latest version of magento which is 2.4.2-p1. Now static url's are coming like /static/frontend/_view/en_US/Magento_Theme/favicon.ico and site is broken. I did not find any solution of ...
Kamal Mittal's user avatar
0 votes
1 answer
102 views

Change layout of main and subcategories

I'm aware that I can change the layout of a specific category by creating a layout file with the name catalog_category_view_id_123.xml where 123 is my category id. How do I apply a layout change to ...
Richard Parnaby-King's user avatar
0 votes
0 answers
858 views

Your search returned no results after search category or product in the search box error in Magento 2.4.0

As I am searching anything inside the search box like category name or product it is showing not results error in the Magento 2.4.0 version. Can you please how to resolve the issue quickly ?
Manoj Jarial's user avatar
0 votes
1 answer
404 views

Show customer custom attribute in company admin grid

Using magento enterprise on cloud I have created a customer attribute external_id. When a customer account is converted to a company account how do I show a column in the grid for this custom ...
Richard Parnaby-King's user avatar
0 votes
2 answers
788 views

UI Component form show dropdown or multiple text fields based on content

I have a form for adding animals with a field called species. This UI Component is: <field formElement="select" name="species" sortOrder="10"> <argument name=...
Richard Parnaby-King's user avatar
1 vote
1 answer
625 views

Getting array brackets in magento 2 log

I am trying to print the log using logger method in magento 2, while printing i am getting 2 empty array brackets in the log. Can anybody say why it happens like this and how to remove those brackets? ...
Ajmalriyaz's user avatar
0 votes
1 answer
485 views

json_decode is not working properly in magento 2.4.0

I am trying to decode the JSON in normal string and print that in the info log in Magento 2.4.0 but I am getting nothing in the info log. Adding the code below anyone please suggest a solution for ...
Ajmalriyaz's user avatar
0 votes
1 answer
395 views

Order is complete send order confirmation email only to "admin email address" not to customer magento 2.4.0

Email Confirmation When order is "complete" send order confirmation email only to "admin email address" not to customer for every payment method. Advance Thanks for help.
Ravindrasinh Zala's user avatar
0 votes
1 answer
142 views

Custom log file not creating in magento 2.4.0

I am trying to create a custom log and print the info message on button click in Magento 2, I have extended the monolog/loggger method but the custom log file is not created. Someone can you say what ...
Ajmalriyaz's user avatar
1 vote
0 answers
258 views

PHP Fatal error on inventory:reservation:list-inconsistencies command

Magento 2.4.0 PHP 7.3 MariaDB 10.4 When I try to run this command: bin/magento inventory:reservation:list-inconsistencies -r I get the following error: PHP Fatal error: Uncaught TypeError: Argument 1 ...
Imesh Liyanage's user avatar
0 votes
1 answer
97 views

How to get the product list data through magento 2 API

when i am calling API through Postman. Only sku, position and category id is coming but How i want more detail like product name price and other details
Alok Kumar's user avatar
0 votes
1 answer
35 views

Can we use captials letters for vendor name

As per Magento 2 documentation can we use full capital letters for vendor name (i.e RSE). Also, can I get any Magento document for this?
Ajmalriyaz's user avatar
0 votes
1 answer
1k views

Need to call a function on button click

I need to print log info when a button is clicked. I am using the below code, please let me know what are the mistakes in my code. I am trying to call a function like below. 'on_click' => 'execute()...
Ajmalriyaz's user avatar
1 vote
2 answers
758 views

Magento 2.4 installation on local returning elasticsearch error

I have installed elasticsearch on local (xampp) and on http://localhost:9200/ is showing it is running. But when I trying to install magento 2.4 getting elasticsearch error. Magento installation ...
Vinaya Maheshwari's user avatar
0 votes
0 answers
95 views

SSH commands stopped working after updating Magento to 2.4.0

After updating Magento to 2.4.0, When doing any SSH command, it shows Constant name is expected. I found the issue is coming from the file vendor/magento/framework/Data/Argument/Interpreter/Constant....
Samad's user avatar
  • 1
0 votes
1 answer
254 views

Custom log file not creating

I am using Magento 2.4.0 and trying to put a custom log for my custom module by extending the \Monolog\Logger but the log file is not created in the Magentoroot/var/log path. I have attached all the ...
Ajmalriyaz's user avatar
0 votes
1 answer
42 views

Image resize issue

I am uploading below image for the product via backend. But it changes to below image It is clearly visible that it changes the color. I have tried using ImageMagik also. I have even tried this ...
Magento Learner's user avatar