MDVA-34695: Products and categories not displaying

The MDVA-34695 patch solves the issue where products and categories don’t display in the categories grid in Admin. This patch is available when the Quality Patches Tool (QPT) 1.0.18 is installed. The patch ID is MDVA-34695. Please note that the issue was fixed in Adobe Commerce version 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version:

Adobe Commerce on cloud infrastructure 2.3.4

Compatible with Adobe Commerce versions:

Adobe Commerce on-premises and Adobe Commerce on cloud infrastructure 2.3.0-2.4.0-p1

NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Negative values for children_count appear in the database after deleting categories.

Steps to reproduce:

  1. Log in to the Admin backend.
  2. Navigate to Catalog > Categories.
  3. Click Add Subcategory.
  4. Set category name = Parent 1, then Save.
  5. Click Add Subcategory.
  6. Set category name = Child 1, then Save.
  7. Click Add Subcategory.
  8. Set category name = Child 2, then Save.
  9. Click Add Subcategory.
  10. Set category name = Child 3, then Save. At this point, this category should have a level = 5.
  11. Click on the Child 1 category.
  12. Delete the category.

Expected results:

The categories grid shows products and categories, as expected.

Actual results:

The categories grid is empty. Check the catalog_category_entity table in the database. Note that children_count became negative.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to the Patches available in QPT section.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a