cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined index: vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

Undefined index: vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

Getting Error on Admin-> Catalog->product Page.

Notice: Undefined index: name in /home/domainname/public_html/vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php on line 61

error-.pngInventory _ Catalog _ Magento Admin-error.pngProduct_ Catalog _ Magento Admin.png

 

 

 

4 REPLIES 4

Re: Undefined index: vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

Hey,

got the same Error with vanilla Magento freshly installed. It happened, when i clicked on "ID" to sort by id.

 

Any Updates on that?

Re: Undefined index: vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

A few things you can do.

 

Sort your catalog_product_entity table by SKU and see if it's missing a SKU. Delete those rows or add a SKU to them, even if it's just temporary.

 

Check to see if any products have been uploaded without say the attribute price. (ID75 in this case)

 

SELECT * FROM catalog_product_entity WHERE entity_id NOT IN (
SELECT catalog_product_entity.entity_id from catalog_product_entity
JOIN catalog_product_entity_decimal USING(entity_id)
WHERE catalog_product_entity_decimal.attribute_id=75
);

Re: Undefined index: vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

I also faced the same issue in Magento 2.4.5 version, but now it is resolved.

 

vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

From 
'ariaLabel' => __('Edit ') . $item['name'],
To
'ariaLabel' => __('Edit ') . @$item['name'],

Re: Undefined index: vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php

@P M D Jagtap 

 

To resolve this error, you can either create a hot-fix patch or use the mentioned below code for patch file if it works for your setup. Direct modification of vendor files is not recommended, as it is not a best practice.

 

For MOS, follow the steps outlined below. For Adobe Commerce, refer to the official developer documentation: Adobe Commerce Developer Guide

 

Steps to Apply the Patch

  1. In the project root directory, create a folder named m2-hotfixes if it does not already exist.

  2. Place the patch file in the m2-hotfixes directory of your website. (m2-hotfixes/CUSTOM-PATCH-M348.patch)

  3. To apply the patch, run the following command:

     
    git apply m2-hotfixes/CUSTOM-PATCH-M348.patch
  4. To revert the patch, use the command:

     
    git apply -R m2-hotfixes/CUSTOM-PATCH-M348.patch

 

 

Use following code for CUSTOM-PATCH-M348.patch file

diff --git a/vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php b/vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php
--- a/vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php	(revision 022e64b08a88658667bc2d6b922eada2b7910965)
+++ b/vendor/magento/module-catalog/Ui/Component/Listing/Columns/ProductActions.php	(revision 8d2b0c1c6b421cdcd7f62a48a5edc9b0211d92a2)
@@ -58,7 +58,7 @@
                         'catalog/product/edit',
                         ['id' => $item['entity_id'], 'store' => $storeId]
                     ),
-                    'ariaLabel' => __('Edit ') . $item['name'],
+                    'ariaLabel' => __('Edit ') . @$item['name'],
                     'label' => __('Edit'),
                     'hidden' => false,
                 ];

 

- rxraj