Skip to content

How to fix error: WE CAN’T FIND PRODUCTS MATCHING THE SELECTION

I upgraded from Magento 2.3.4 to 2.4.3-p3. But I cannot see products and categories.
enter image description here

here is composer.json

{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"config": {
    "preferred-install": "dist",
    "sort-packages": true,
    "allow-plugins": {
        "magento/magento-composer-installer": true,
        "magento/inventory-composer-installer": true,
        "dealerdirect/phpcodesniffer-composer-installer": true,
        "laminas/laminas-dependency-plugin": true,
        "magento/composer-dependency-version-audit-plugin": true,
        "magento/composer-root-update-plugin": true
    }
},
"require": {
    
    "laminas/laminas-serializer": "^2.10",
    "magento/composer-dependency-version-audit-plugin": "~0.1",
    "magento/composer-root-update-plugin": "~2.0",
    "magento/data-migration-tool": "2.4.3",
    "magento/magento-coding-standard": "^2.0.0",
    "magento/product-community-edition": "2.4.3-p3",
    "stripe/stripe-php": "^7.27"
},
"require-dev": {
    "allure-framework/allure-phpunit": "~1.4",
    "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
    "friendsofphp/php-cs-fixer": "~2.18.1",
    "lusitanian/oauth": "~0.8.10",
    "magento/magento2-functional-testing-framework": "^3.0",
    "pdepend/pdepend": "~2.7.1",
    "phpcompatibility/php-compatibility": "^9.3",
    "phpmd/phpmd": "^2.8.0",
    "phpstan/phpstan": "^0.12.77",
    "phpunit/phpunit": "^9",
    "sebastian/phpcpd": "^6.0.3",
    "squizlabs/php_codesniffer": "~3.5.4",
    "symfony/finder": "^5.2"
},
"conflict": {
    "gene/bluefoot": "*"
},
"autoload": {
    "psr-4": {
        "Magento\Framework\": "lib/internal/Magento/Framework/",
        "Magento\Setup\": "setup/src/Magento/Setup/",
        "Magento\": "app/code/Magento/",
        "Zend\Mvc\Controller\": "setup/src/Zend/Mvc/Controller/"
    },
    "psr-0": {
        "": [
            "app/code/",
            "generated/code/"
        ]
    },
    "files": [
        "app/etc/NonComposerComponentRegistration.php"
    ],
    "exclude-from-classmap": [
        "**/dev/**",
        "**/update/**",
        "**/Test/**"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Magento\Sniffs\": "dev/tests/static/framework/Magento/Sniffs/",
        "Magento\Tools\": "dev/tools/Magento/Tools/",
        "Magento\Tools\Sanity\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
        "Magento\TestFramework\Inspection\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
        "Magento\TestFramework\Utility\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
    }
},
"version": "2.4.3-p3",
"minimum-stability": "stable",
"repositories": {
    "0": {
        "type": "composer",
        "url": "https://repo.magento.com/"
    },
    "amasty": {
        "type": "composer",
        "url": "https://composer.amasty.com/community/"
    }
},
"extra": {
    "magento-force": "override"
}

I enabled ElasticSearch using command.

bin/magento module:enable Magento_Elasticsearch6 Magento_Elasticsearch Magento_Elasticsearch7
bin/magento indexer:reindex

I used We can’t find products matching the selection, but it didn’t work.
pls help me.