1

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)enter image description here

Nicolai Fröhlich
  • 51,330
  • 11
  • 126
  • 130
FR STAR
  • 662
  • 4
  • 24
  • 50
  • have you tried php app/console generate:bundle --namespace=Acme/Bundle/BlogBundle --no-interaction – Seif Sayed Dec 09 '15 at 13:45
  • Seems to be a nervous error level setting of your php.exe .. did you try to enter one of the choices in the last line - for example xml? That command should nonetheless successful create your bundle.. – Johannes Reiners Dec 09 '15 at 16:20

1 Answers1

1

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.

Community
  • 1
  • 1
Nicolai Fröhlich
  • 51,330
  • 11
  • 126
  • 130