3

I'm wroking with Magento 2.1.1 (with PHP 5.6) and when I try to run a bin/magento command I'm getting nothing. No error, no message, nothing.

I didn't found any special message on logs. Has anyone seen this problem before? There's some recomendation to try to debug this issue?

  • Barbanet, what was the sollution? Same problem here... – Jilco Tigchelaar Nov 26 '17 at 20:59
  • 1
    Try to add 'ini_set('display_errors', 1);' to bin/magento. Maybe you'll see some helpfull outputs. – alexblum Apr 19 '18 at 11:01
  • You should actually check error_log file on magento root which will give out errors for cli runtime errors. It was memory shortfall for me. – Aditya Yadav May 18 '19 at 14:19
  • did you get a solution? – Mohit Rane Aug 2 '19 at 6:55
  • Hi @MohitRane I never was able to reproduce the issue but at that time, no other information was available. A super strange issue that was solved after an upgrade or a change of environment (I don't remember right now) – Barbanet Aug 2 '19 at 19:44
2

It indicates that the error is being triggered while executing the command but for some reason, the view is disabled to read.

Luckily, all errors of Command is getting recorded in "error_log" file situated at the root, open it and read you error to fix this on the permanent basis.

Thank You Zuber

0

Open bin/magento in your preferred file editor and add the following line and save:

ini_set('display_errors', 1); // allow PHP errors reporting Run the command again:

php bin/magento list

it will show error which the cause cli not run

-2

Just bin/magento command will not work.

You can use commands like

php bin/magento setup:upgrade

Make sure you current directroy in you magento instance ( cd /var/www/magento/)

For more command reference's.

  • That isn't the problem. No matter in which way I execute the command, the result is the same. Also, you can run CLI commands with bin/magento because the file has the SheBang ( github.com/magento/magento2/blob/develop/bin/magento ) – Barbanet Sep 14 '16 at 14:37
  • Ok fine, Make sure your php is running fine. type 'where is php', then you can get path like D:/something/php.exe... Then make the current directory in the exe (cd D:/something/php.exe /var/www/myapplication/bin/magento setup:upgrade. ) execute like. – Krishna ijjada Sep 14 '16 at 14:53

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.