I suddenly noticed at the bottom right corner of the magento admin panel and found very strange that instead of showing Magento version, it is showing me Magento ver. UNKNOWN.

Unable to figure out what makes it so. Here is my composer.json file if it works:

    "name": "magento/project-community-edition",
    "description": "eCommerce Platform for Growth (Community Edition)",
    "type": "project",
    "license": [
    "config": {
        "preferred-install": "dist",
        "sort-packages": true
    "require-dev": {
        "allure-framework/allure-phpunit": "~1.2.0",
        "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
        "friendsofphp/php-cs-fixer": "~2.14.0",
        "lusitanian/oauth": "~0.8.10",
        "magento/magento-coding-standard": "~4.0.0",
        "magento/magento2-functional-testing-framework": "2.5.3",
        "pdepend/pdepend": "2.5.2",
        "phpcompatibility/php-compatibility": "^9.3",
        "phpmd/phpmd": "@stable",
        "phpunit/phpunit": "~6.5.0",
        "sebastian/phpcpd": "~3.0.0",
        "squizlabs/php_codesniffer": "~3.4.0"
    "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": {
            "": [
        "files": [
        "exclude-from-classmap": [
    "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.3.4",
    "minimum-stability": "stable",
    "repositories": [
            "type": "composer",
            "url": "https://repo.magento.com/"
    "extra": {
        "magento-force": "override"
    "require": {
        "mageplaza/module-smtp": "^1.4"

The following value is missing in composer.json compared with fresh Magento 2.3.4 setup:

"require": {
    "magento/product-community-edition": "2.3.4"

It might be caused by an outdated version of composer/composer being installed in your Magento shop (run composer show | grep composer/composer), or even an outdated git version (git --version).

Please refer to the link

  • Agreed, but while comparing with git version. I find lot more lines missing in require object. Can I copy the same from git? I have just one ext installed which I will do again. – Vanshita Khatri Aug 21 '20 at 4:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.