My site is not working even, My admin also. I HAVE TRIED getversion() method in app/mage.php but still, I am not able to get the version of Magento.

Can anyone suggest me, please?

  1. You can easily check if a website is running Magento Enterprise Edition or Magento Community Edition hitting

  2. Just simply write --> website_base_url/magento_version

  3. After you will see **top of the left corner** some thing like... (Magento/2.2 (Community) or Magetno/2.3(Community), or Magento/2.3/(Enterprise) version...

Check Magento 1 version using Command line

(Note : This cmd only for magento 1)

php -r "require 'app/Mage.php'; echo Mage::getVersion();"
|improve this answer|||||

I have checked versio n using ssh.

BY following these few commands - 
1. Login in SSH
2. cd public_html/<your directory>
3. php -a 
4. include 'app/Mage.php'; 
5. include 'app/Mage.php'; 
|improve this answer|||||

In your Question, You have typo mistake you have call getversin() instead of getVersion() You have to call just like, Mage::getVersion() in your file.

You can also check version from your app/Mage.php file if you have file access of your project,

Search function like getVersionInfo() and you have display your current magento installed version.

|improve this answer|||||

You need to create a file "version.php" in root folder and paste below code :

    include_once 'app/Mage.php';
    echo Mage::getVersion();

run file version.php.

|improve this answer|||||

You can always find the Magento version number in the Magento Admin Panel in the footer area.

If you have installed magerun you could also use the command of magerun sys:info

Open the app/Mage.php manually and check the gerVersion functionality because it will be hard coded

Another way to check of course is through MageReport https://magereport.com/

|improve this answer|||||

This one helps you.


let me know is useful or not.

|improve this answer|||||

If you are in Linux try this command from htdoc folder

/opt/bitnami/apps/magento/htdocs$ sudo ./bin/magento-cli --version
Magento CLI 2.3.0
|improve this answer|||||
  1. php bin/magento --version
  2. /magento_version
|improve this answer|||||

For M1 run following command in webroot: grep -A6 'static function getVersionInfo' app/Mage.php

For M2: view in composer.json in webroot or access this path: /magento_version

|improve this answer|||||

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.