adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

any kind of form crash with xdebug on laravel 5.2 #103

Closed lfarkas closed 8 years ago

lfarkas commented 8 years ago

if you enable php's xdebug extension with laravel 5.2 the it'll generate this error (in case of any kind of form):

FatalErrorException in AliasLoader.php line 63:
Maximum function nesting level of '100' reached, aborting!
in AliasLoader.php line 63
at FatalErrorException->__construct() in HandleExceptions.php line 133
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 118
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at spl_autoload_call() in Container.php line 36
at BootFormsServiceProvider->AdamWathan\BootForms\{closure}() in Container.php line 289
at Container->Illuminate\Container\{closure}() in Container.php line 735
at Container->build() in Container.php line 633
at Container->make() in Application.php line 697
at Application->make() in Container.php line 1178
at Container->offsetGet() in Container.php line 51
at BootFormsServiceProvider->AdamWathan\BootForms\{closure}() in Container.php line 289
Tjoosten commented 8 years ago

You can do:

  1. vagrant up
  2. vagrant ssh

Following steps in your vagrant homestead installation.

  1. sudo nano /etc/php5/mods-available/xdebug.ini
  2. Set xdebug.max_nesting_level=100 to xdebug.max_nesting_level=500

For MAMP u can follow this http://xmemory.tompium.com/2013/06/enable-xdebug-in-mamp.html

Regards, Tim

lfarkas commented 8 years ago

thanks! anyway i'm using linux:-)

TheTrooper123 commented 8 years ago

Yeah this is causing me a headache. I've tried to add xdebug.max_nesting_level=500 within php.ini (WAMP) though doesn't seem to work. On php.info it still specifies that this is still set to 100. Still none the wiser on this.