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
0 votes
2 answers
405 views

How to override top menu and add icon in Magento 2?

How to override top menu and add icon in Magento 2? I'm using Magento v2 and want to have icons added to each category menu item.? How can I override this? I added the Attribute for icon in category (...
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 ...
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 ...
0 votes
2 answers
2k views

Uncaught TypeError: $.widget is not a function

My code : define([ 'Magento_Customer/js/model/authentication-popup', 'Magento_Ui/js/modal/alert', 'Magento_Ui/js/modal/confirm', 'underscore', 'jquery/ui', 'jquery-ui-modules/...
0 votes
1 answer
2k views

Add foreach loop in knockout

I am using the following condition and its print one value, if(self.options.nearestlocationsBlock) { var firstStore = _.first(locations.items); var newContent = '<div class="store&...
0 votes
1 answer
2k views

GraphQL Error in Magento 2.4.1: Cannot query field "uid" on type "ConfigurableProductOptionsValues"

I'm having trouble getting the uid for my Configurable product options via GraphQL. Testing with this simplified query: { products(filter: { url_key: { eq: "test-product" } }) { ...
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\...
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 ...
1 vote
1 answer
26 views

Grid is not loading showing just the spinner without errors in logs or console

I'm trying to follow the guide https://developer.adobe.com/commerce/php/development/components/add-admin-grid/ to add a custom admin grid however I'm stuck in a situation where there's no error and ...
0 votes
1 answer
60 views

HTTP to HTTPS redirection

My site won't automatically redirect from HTTP to HTTPS. Have gone through the forums and documentations but can't figure it out so posting. I am quite newbie to Magento. I am using Magento ver. 2.4.1....
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->...
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? ...
1 vote
0 answers
228 views

script injected in magento 2.4.1 at shipping_policy_content

we found a script like this in shipping/shipping_policy/shipping_policy_content <script id="shopcart">((g,r,w,s,t,o) => {if(g.location.href.indexOf(atob(t))>-1){a=r.createElement(...
0 votes
1 answer
171 views

main.CRITICAL: Exception message: CRLF injection detected Trace:

I'm eoncountering this issue on my Magento 2.4.1 website: when trying to make an order, by some devices (like my smartphone) at the url https://mywebsite.com/checkout/#shipping the page remains ...
0 votes
1 answer
481 views

how do I create a custom GraphQL query that fetches a list of products in Magento 2.4.1

In my schema.graphqls file I've created this Query type Query { getLinkedProductsByGroups(groups: [String]): [LinkedProductsByGroup] @resolver(class: "Vendor\\ProductDisplay\\Model\\Resolver\\...
0 votes
2 answers
536 views

Magento 2 cron reindex causes Page Cache to be invalidated

I am running the following to reindex my products and categories on a schedule /opt/plesk/php/7.4/bin/php -c /opt/plesk/php/7.4/etc/php.ini /var/www/vhosts/mydomain.co.uk/httpdocs/bin/magento indexer:...
0 votes
1 answer
482 views

In magento 2 Clear Local Storage key value On Update Cart

in magento 2 i want to clear local storage key (local_key) value on any cart changes like product add,update,delete in cart
0 votes
1 answer
52 views

Magento Class "string" does not exists - Put email Transport Object into RabbitMQ queue

Magento 2.4.4-p1 EE PHP 8.1.7 I want to put email Transport Object into RabbitMQ queue. communication.xml <topic name="my_topic" request="Magento\Email\Model\Transport\Interceptor&...
0 votes
1 answer
340 views

How to show "use default values" on all stores view in magento2?

I am facing an issue. I want to show "use default values" on all store view in special price from and to fields only. Suppose I have a website with two stores. "use default values"...
1 vote
2 answers
335 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://...
0 votes
4 answers
4k views

Why I am getting error like " Could not validate a connection to Elasticsearch. No alive nodes found in your cluster " on docker with magento 2.4.1

Getting error like - Could not validate a connection to Elasticsearch. No alive nodes found in your cluster I am using docker for magento 2.4.1 while installation i am getting this error. My docker-...
0 votes
2 answers
155 views

Cron job generates a different output compared with a controller in Magento 2.4.1

I implemented a custom plugin that loops through all products and generates a CSV file. Even if the execute() function has the same code in both files (cron job and controller), the CSV file generated ...
0 votes
1 answer
239 views

I need filter products by discount percentage in layared navigation (category page)

I have applied several price cart rules, I would like to see those frontend rules that work as a filter for discounted products. Someone can help me?
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 ...
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 ...
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\...
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' ...
1 vote
0 answers
65 views

Custom filter search problem

I am trying to add custom filter to layer navigation. Basically I didn't have any problem with displaying it on navigation sidebar but collection filtering is now the problem. I have filter which is ...
1 vote
2 answers
374 views

magento 2.4 : customer session get destroyed after payment

I am using magento 2.4.1, i have used plugin for payment gateway like - ccavenues , payu but issues it that after payment it gets redirected to "checkout/cart/" While debugging it seems ...
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 ...
0 votes
1 answer
397 views

Magento 2 Add CAPTCHA to login form in createblock

I am building a widget to allow the Login form to display on a CMS page. I am able to get the form to display, but when I try to login, I am redirected to the customer/account page and get the error &...
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
0 votes
1 answer
180 views

Modify "Gift Wrapping for Order" Text in Order Email

I am trying to change the text that says "Gift Wrapping for Order" to "Gift Messaging" in the order confirmation email that is sent out. I have figured out where the copy needs to ...
0 votes
2 answers
694 views

On index page i get error Breadcrumbs::getProductName() must be of the type string, null returned in readcrumbs.php:101

Ok, this is the full error actually: TypeError: Return value of Magento\Catalog\ViewModel\Product\Breadcrumbs::getProductName() must be of the type string, null returned in /var/www/html/vendor/...
5 votes
0 answers
420 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 ...
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.
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\...
0 votes
1 answer
519 views

Upgrade 2.4.0 to 2.4.1 composer fails

I'm working with a composer 2.4.0 and try to install 2.4.1 According docs [x] Determine whether your current catalog search engine is supported [x] Complete the Update and upgrade checklist [x] Set ...
0 votes
3 answers
113 views

How to remove and change My Account Navigation

I am trying to remove some tabs https://prnt.sc/I0JvtmM41ROP I am using below file path and code app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml <!-- Downloadable ...
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\\...
0 votes
0 answers
349 views

How to add custom attributes to checkout summary magento2.4

I am trying to display a product attribute value I have found the template where it is displayed: vendor/magento/module-checkout/view/frontend/web/template/summary/item/details.html I override this ...
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 ...
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.
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.
0 votes
2 answers
38 views

How to move description in list page magento 2.4

I want to move the sku after description in list page. https://prnt.sc/DFlrsqO-tC4A
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 ...
0 votes
1 answer
655 views

Magento 2 Add New Customer - The customer email is missing. Enter and try again

I am attempting to Add New Customer via the admin panel but there is no email address field nor any address details (See screenshot attached). Does anyone have any ideas? Thanks, Rob
0 votes
1 answer
356 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 ...
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 ...
0 votes
1 answer
260 views

Modify Braintree Core Files

I'm trying to make some minor tweaks to two files within the PayPal_Braintree module. I've added them to my custom theme, but they do not seem to take. I think my file path is correct ... but maybe ...

1
2 3 4 5 6