Questions tagged [magento2.4.1]
The magento2.4.1 tag has no usage guidance.
271
questions
13
votes
7
answers
38k
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 ...
8
votes
5
answers
10k
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 ...
7
votes
1
answer
1k
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\...
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 ...
6
votes
2
answers
7k
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 ...
5
votes
2
answers
7k
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/...
5
votes
2
answers
879
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\\...
5
votes
0
answers
394
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 ...
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 ...
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-...
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":"[...
4
votes
1
answer
314
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 ...
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.
3
votes
2
answers
1k
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 ...
3
votes
0
answers
930
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?
2
votes
3
answers
1k
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 ...
2
votes
3
answers
1k
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\...
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":&...
2
votes
3
answers
6k
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 ...
2
votes
1
answer
1k
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&...
2
votes
1
answer
2k
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?
...
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 : ...
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\...
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 ...
2
votes
1
answer
692
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?...
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 ...
2
votes
0
answers
697
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 ...
2
votes
0
answers
87
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\...
1
vote
1
answer
7k
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....
1
vote
1
answer
879
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.
1
vote
3
answers
232
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\...
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 ...
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://...
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 ...
1
vote
2
answers
913
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.
1
vote
1
answer
2k
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' ...
1
vote
2
answers
518
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?
<...
1
vote
2
answers
659
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 ...
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 ...
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 ...
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 '...
1
vote
2
answers
239
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://...
1
vote
1
answer
577
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
1
vote
1
answer
171
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 ...
1
vote
1
answer
858
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 ...
1
vote
1
answer
458
views
Minicart qty increment and decrement error -
I am using the following module for minicart qty increment and decrement,
https://github.com/kirtinariya1/MinicartAjaxQtyIncrementDecrement,
error :
Custom Module:
Path : app\code\Zero\MinicartQty\...
1
vote
1
answer
433
views
How to add ajax to custom theme add-to-cart and Wishlist button?
I created my website using a custom theme, how to implement ajax to my add-to-cart and wishlist button?
I tried the following step, it not working,
vendor\magento\module-catalog\view\frontend\...
1
vote
1
answer
114
views
Custom layout update not shown for CMS page
I've made a custom layout update file according to the instruction (https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/xml-manage.html) in 2.4.1, but the option is not displayed for a ...
1
vote
1
answer
1k
views
Getting error while publish message to RabbitMQ
I am getting an error while publishing a message to RabbitMQ :The connection timed out after 3 sec while awaiting for incoming data.
use Magento\Framework\MessageQueue\PublisherInterface;
$this->...
1
vote
1
answer
345
views
I want to add "Show More" link in Review Tab in product detail page in Magento 2. Only want to show 5 reviews at a time
Add "Show More" link in review on product detail page. Only want to show 5 reviews at a time.