I am working on a magerun command, but it seems that errors are not triggered. E.g.

protected function execute(InputInterface $input, OutputInterface

If I misspell detectMagento and run the command, it does nothing, I would expect an Exception to be thrown or some other error triggered... There's also nothing in the logs. Obviously, this doesn't work really well ;)

What am I missing here?

  • Makes developing a magerun command quite hard, doesn't it? Almost hard to believe... Jul 17, 2016 at 10:37
  • I cannot confirm this statement. We do not catch fatal errors or change any error settings of PHP. I checked the issue in n98-magerun1 and n98-magerun2. I got always a PHP fatal error with a complete call stack.
    – cmuench
    Jul 17, 2016 at 11:04
  • Tnx, good to know. Will probably be at my end then. Any ideas what this might be causing? Jul 17, 2016 at 11:36
  • Solved. Using MAMP Pro and the php .ini file used in the command line is different than the one for web. display_errors = On solves the issue... Jul 17, 2016 at 11:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.