symfonysymfony2

Undefined variable $output in Symfony Component Console DialogHelper


I tried to run symfony console command, but I've got an error:

Notice: Undefined variable: output in /var/www/.../vendor/symfony/symfony/src/Symfony/Component/Console/Helper/DialogHelper.php line 411

I have no idea, why it went wrong.

Can anyone help?


Solution

  • I've solved the problem: this error appears because exec() and shell_exec functions was disabled in php.ini file. To enable this functions you have to edit this string:

    disable_functions =exec,passthru,shell_exec,system,proc_open

    and delete exec, shell_exec:

    disable_functions =passthru,system,proc_open