Skip to main content

Questions tagged [magento2.4.1]

Questions specific to Magento Community Edition version 2.4.1

Filter by
Sorted by
Tagged with
15 votes
9 answers
44k views

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

I downloaded magento 2-2.4.1.zip. Unzipped it to /var/www/html/magento24/ - my local folder for local domain http://magento24.local configured by nginx on ubuntu20.04. I had done composer update or ...
Jakub Ujvvary's user avatar
9 votes
5 answers
11k views

Uncaught TypeError: Cannot read property 'remove' of undefined -- upgrade from 2.3.4 to 2.4.1

Uncaught TypeError: Cannot read property 'remove' of undefined -- upgrade from 2.3.4 to 2.4.1 I'm testing out an upgrade of our Magento store from 2.3.4 to 2.4.1. One issue I have come across is this ...
Navin Bhudiya's user avatar
7 votes
1 answer
2k views

Uncaught Error: Cannot instantiate interface Magento\TwoFactorAuth\Api\UserConfigManagerInterface while running Integration Tests

Trying to Run all integration tests using ../../../vendor/bin/phpunit command. Getting an error - PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\TwoFactorAuth\Api\...
sandip's user avatar
  • 4,014
6 votes
3 answers
2k views

Magento 2: What is the purpose of "_replica" tables?

I'm newbie in Magento but I have a store that started in 2.2 and is now updated to 2.4.1. What is the exact purpose or _replica tables? The only mentioning is that they help prevent deadlock but how ...
Andrew Z's user avatar
  • 151
6 votes
2 answers
8k views

Magento 2 Media Gallery doesn't show any images in 2.4.1

I installed Magento 2.4.1. All is working fine but the newer feature that Media Gallery does not show any images. Is there any other configuration requires for seeing images? I disabled the old media ...
Mark Philips's user avatar
5 votes
2 answers
8k views

Your current search engine, 'Elasticsearch 2', is not supported

I just upgraded magento 2.3.5 to 2.4.1 . Its completed successfully and i did changed search engine form "mysql" to "elasticsearch" and now its showing error when i run : bin/...
Mukesh Prajapati's user avatar
5 votes
2 answers
880 views

Error upgrading to 2.4.1

I just tried upgrading from 2.4 to 2.4.1 and now the site is down. We get this error only when trying to access the admin {"0":"Type Error occurred when creating object: Magento\\...
Haim's user avatar
  • 2,144
5 votes
0 answers
421 views

Magento 2 : shipped items not appearing in email template

{{layout handle="sales_email_order_shipment_items" shipment_id=$shipment_id order_id=$order_id}} is used to render shipped items in email template but no items appear in email template. I ...
devhs's user avatar
  • 507
4 votes
3 answers
3k views

Custom layout update not working 2.4

I have made the custom category layout update named as catalog_category_view_selectable_3_Test.xml in Magento_Catalog/layout. When I checked in admin panel in custom layout update the options is not ...
Haerriz's user avatar
  • 681
4 votes
2 answers
2k views

Can't proceed with installing Magento by executing bin/magento config:set command

I try to install Magento 2 and create/configure a new magento project. Steps: Executed command: bin/magento setup:install \ --backend-frontname=backend \ --amqp-host=rabbitmq \ --amqp-port= \ --amqp-...
makhlo's user avatar
  • 163
4 votes
5 answers
4k views

Magento 2.4.1-p1 CE?: "main.ERROR: Can not resolve reCAPTCHA parameter..."

In /var/log/exception.log, I've been getting the following ERROR for over a week and can't figure out how to fix it: main.ERROR: Can not resolve reCAPTCHA parameter. {"exception":"[...
bluedarter's user avatar
4 votes
1 answer
351 views

Issues with the `sales_order_item_cancel` event in Magento 2.4.1

I have made an API which cancel and order. This is part of the code: // \Magento\Sales\Api\OrderManagementInterface $this->orderManagement->cancel($order->getId()); The above code will ...
Attila Naghi's user avatar
  • 4,023
3 votes
4 answers
3k views

Having an Issue of loader on product page in magento2.4.1?

can anyone explane me what issue can be i am using nginx server purchaged theme bs_eren & magento 2.4.1 this is only happend on product page.
Suraj Prajapat's user avatar
3 votes
2 answers
2k views

There was an error loading payments.Please refresh or try again later. PWA Venia Theme Magento2.4 issue coming on

I have installed PWA Venia Theme with magento2.4.1 EE but on checkout, no payment methods are loading. Error Getting: There was an error loading payments. Please refresh or try again later. Attached ...
vivek mehta's user avatar
3 votes
1 answer
5k views

How to upgrade Magento from 2.4.1 to 2.4.6

I'm actually on Magento CE version 2.4.1 I need to update it to 2.4.6 (latest version) I'm in live (I don't have a staging enviroment) Is there someone who can guide me step to step in upgrading? ...
Marcello D'Ambrosio's user avatar
3 votes
3 answers
7k views

Magento 2.4.1 Checkout Error - Current Customer Does Not Have An Active Cart

I have a weird issue here... When the user tries to complete their order, they get the error seen below. However, the order completes. There's nothing alarming in the logs either. Can anyone point me ...
Turbo's user avatar
  • 31
3 votes
0 answers
964 views

How to create modifier for admin customer form in magento 2?

I have created a new virtualType to change newly added customer attribute value in customer form. But I am unable to modify attribute data. What is wrong with the below code?
Mahammad's user avatar
2 votes
3 answers
2k views

M2.4.1 Unable to resolve source file jquery\fileUploader\fileupload-fp.js

I'm getting issue with the file uploader in the backend admin of M2.4.1 It is missing file below and can see a 404 for the file in the browser console. I have cleared static content, generated folder ...
user552769's user avatar
2 votes
3 answers
2k views

How to get value from admin configuration for my custom module

I have created a custom module, and added values directly in my code like hardcode, how to get those values from the admin configuration and passed to my code. Block: <?php namespace Zero\...
zus's user avatar
  • 175
2 votes
2 answers
2k views

Magento 2.4.1 layered issue with elasticsearch

I am having this issue. After every reindex category pages in front end keep crashing with error: [2020-11-13 10:51:09] report.CRITICAL: {"error":{"root_cause":[{"type":&...
G. G.'s user avatar
  • 1,191
2 votes
1 answer
2k views

Show/Hide configuration field in Magento 2

In Magento 2 if we need hide/show the field in the same group we will fallow as below. <section id="custom_general" translate="label" type="text" sortOrder="0&...
Bojjaiah's user avatar
  • 3,762
2 votes
2 answers
2k views

How to get google business reviews and display in my custom phtml file

I want to show the summary rating and customer review in my phtml file, how to get google business review by using API in a custom module or any best practice pls suggest. Google Business Review API : ...
zus's user avatar
  • 175
2 votes
2 answers
930 views

How to add loader to ajax

How to apply loader script to my code, Loader : https://meetanshi.com/blog/magento-2-show-loader-till-ajax-call-not-completed/ My code: define([ 'jquery', 'Magento_Customer/js/model/...
Gem's user avatar
  • 699
2 votes
2 answers
1k views

Proper way to get $block->getChildHtml inside the custom phtml file

I want to add default wishlist sidebar section into my Magento_Theme template, Layout xml file: <referenceBlock name="header.panel"> <block class="Magento\...
zus's user avatar
  • 175
2 votes
1 answer
4k views

Magento 2.4.1: One or more of your dotdigital cron tasks have errors: ddg_automation_customer_subscriber_guest_sync,

At the top of Magento admin page, below are the messages displayed. I'm not sure what these mean and how to fix them all. Please help me understand this. One or more of your dotdigital cron tasks have ...
CodeForGood's user avatar
2 votes
1 answer
719 views

Magento 2.4.1: Class Magento\PageCache\Observer\SwitchPageCacheOnMaintenance does not exist

While running php bin/magento maintenance:enable after upgrading Magento to 2.4.1, I find the error message Class Magento\PageCache\Observer\SwitchPageCacheOnMaintenance does not exist How to fix this?...
CodeForGood's user avatar
2 votes
1 answer
36 views

Template hints showing path from cache instead of original file path

In Vanilla magento2, the file path showing original file path as you can see in below screenshot the file path is showing from vendor after doc root. In one of my working project where cache path is ...
Rajkumar Vellaiswamy's user avatar
2 votes
2 answers
2k views

Magento 2.4.1 PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 176128 bytes)

This error(Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in vendor/magento/framework/Serialize/Serializer/Json.php on line 37) is populated when we access the ...
Vitts's user avatar
  • 21
2 votes
0 answers
742 views

2.4.1: Elasticsearch/MySQL memory spikes leading to SWAP

Low traffic site on 2.4.1, elasticsearch, 16GB RAM, but memory usage seems to climb constantly, with CPU usage spiking, until mysql and elastic are basically running in SWAP. Site was running fine on ...
eddhall's user avatar
  • 379
2 votes
1 answer
17k views

magento 2.4 Impossible to process constructor argument Parameter #0 [ <required> Magento\Framework\Search\Adapter\Mysql\Mapper $mapper ]

I am getting below error Impossible to process constructor argument Parameter #0 [ Magento\Framework\Search\Adapter\Mysql\Mapper $mapper ] of Amasty\Shopby\Model\Search\Adapter\Mysql\...
user1799722's user avatar
2 votes
0 answers
89 views

Multiple email attachments in Magento 2.4.1

How to send Multiple email attachments in mail Magento 2.4.1? I tried etc\di.xml <preference for="\Magento\Framework\Mail\Template\TransportBuilder" type="\Vendor\Module\Magento\Mail\...
naveen's user avatar
  • 21
1 vote
1 answer
8k views

Getting error in downloading repository Magento 2 via composer

I am using windows 10 and node js command prompt with latest composer version. The xampp already install with supporting magento2 PHP directives. When i am trying to install a new magento 2 version 2....
Raghwendra Ojha's user avatar
1 vote
1 answer
1k views

Magento2.4: How to get Salable quantity in list.phtml file?

How can i get salable quantity in list.phtml file, I want to show label on those products which have 0 salable quantity.
Afzal Arshad's user avatar
1 vote
3 answers
242 views

error while magento installation

Deprecated Functionality: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in F:\xampp\htdocs\magento\vendor\...
sikander's user avatar
1 vote
2 answers
2k views

How to use google recaptcha in my custom form

I am following this link https://magebug.blogspot.com/2018/05/magento-2-add-google-recaptcha-in.html The link suggests add a controller, i have already a controller file, how to add more than one ...
zus's user avatar
  • 175
1 vote
1 answer
1k views

How to change Wishlist button color once product added to Wishlist using controller

How to change the wishlist button color once the products added to the wishlist.I am getting an error while using a controller. Ref: 1)https://magento.stackexchange.com/a/256570/57334 2)https://...
zus's user avatar
  • 175
1 vote
1 answer
3k views

How to cache graphQL post query using varnish in magento 2

In our project we are using graphql. All the query and the mutation are post request. I have configured the varnish with magento. But it seems that post request will be bypassed. Since all my query is ...
user43415's user avatar
  • 375
1 vote
2 answers
1k views

Magento2.4: Display custom CMS block header and footer on homepage

Add a new CMS block on top of the homepage (header) and another one at the bottom of the homepage (footer) using XML layout.
Afzal Arshad's user avatar
1 vote
1 answer
3k views

undefined constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES

I am trying to access frontend of magento 2.4.3 But getting Use of undefined constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES - assumed 'SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES' ...
Hamendra Sunthwal's user avatar
1 vote
1 answer
1k views

Magento 2. Can we display custom attributes on product page after SKU?

I created custom product attribute - Manufactures SKU. Want to display in product page after SKU.
kiran's user avatar
  • 597
1 vote
2 answers
601 views

How to remove main page title "Create New Customer Account" from registration page?

I am needing to remove the main page title "Create New Customer Account" from the registration page. I see everywhere that I need to add the line below somewhere but where? <...
ozmo's user avatar
  • 87
1 vote
2 answers
738 views

Magento 2 DropdownDialog widget showing dropdown when the page load without onclick

I am using https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_dialog.html if the page refreshes the drop-down popup come 1 second on the page, how to solve this issue on the ...
zus's user avatar
  • 175
1 vote
1 answer
2k views

Waiting for incoming connection with ide key 'xxxxx'

In phpstrom variable getting "Waiting for incoming connection with ide key 18836" while trying to run debug magento2 using xdebug. Xdebug is installed correctly in my Ubuntu system,checked ...
Shekhar Suman's user avatar
1 vote
2 answers
4k views

Magento 2.4.1 sort by newest not working

I am using Magento 2.4.1 search engine is elasticsearch7 selected in catalog config. I wanted to add custom sorting options on the category page like sort by price low to high and newest etc. Now I am ...
Klaus Mikaelson's user avatar
1 vote
2 answers
3k views

Magento 2 Braintree compilation issue

Hi I am having difficulties getting Magento 2.4.1 to work when Braintree module is enabled. With Braintree enabled I cannot view the product page, i get an error that begins with Error: Class '...
neit's user avatar
  • 63
1 vote
2 answers
337 views

Change Billing Address Telephone Input Type

I am trying to change the telephone input type from "text" to "tel", so that on mobile devices a number pad will display. I have tried to implement the solution outlined https://...
cjochum's user avatar
  • 131
1 vote
1 answer
245 views

How to fix Download the Upgrade Compatibility Tool error?

i'm trying to download the upgrade compatibility tool and tried it in downloading in HTML folder or any other project but always it gives the same error. Any idea
Afzal Arshad's user avatar
1 vote
1 answer
719 views

How to verify the email exist or not in magento2 api

How to verify the email exist or not using 3rd party api in magento2 while customer registration thanks
venkata prasad's user avatar
1 vote
1 answer
192 views

Remaining Characters on Gift Message

I am trying to use Magento's RemainingCharacters Widget on the gift options message field. I want to limit the amount of characters in this field to 200. It doesn't even appear to be firing. What am I ...
cjochum's user avatar
  • 131
1 vote
1 answer
955 views

Getting Conclusion: don't install symfony/console v4.4 while upgrade Magento 2.4.1 from Magento 2.3.3

I am trying to upgrade my Magento 2.3.3 to Magento 2.4.1 running the below commands. 1.composer require magento/composer-root-update-plugin=~1.0 --no-update 2.composer update 3.composer require ...
Shubhajay Das's user avatar

1
2 3 4 5 6