I'm new to Symfony2 framework and following an online tut. However, when I reached the point to setting up a bundle in CMD following message repeatedly appearing.
Configuration format (annotation, yaml, xml, php) [annotation]: Notice: Undefined variable: output
Does anyone encontered similar problem? (see the screen shot)
This error appears because you disabled exec
and/or shell_exec
in your php.ini. To debug run one of the following commands:
# linux/osx
php -i | grep 'disable_functions'
# windows
php -i | findstr 'disable_functions'
If the disable_functions
ini-directive contains exec or shell_exec ...
disable_functions=exec,passthru,shell_exec,system,proc_open
... remove them from disable_functions
in your CLI's php.ini as suggested in this answer.