laravel - php artisan development server crashing -
for php laravel development i'm using build-in webserver of php. start command "php artisan serve" on windows. few months working charm, it's of sudden crashing on pages didn't change recently.
as try load page, error:
it's in dutch, it's general windows crash message. in log file see:
mail_encryption=null.error: exception 'invalidargumentexception' message 'there no commands defined in "view" namespace.' in d:\home-automation\webinterface\vendor\symfony\console\symfony\component\console\application.php:501 stack trace: #0 d:\home-automation\webinterface\vendor\symfony\console\symfony\component\console\application.php(535): symfony\component\console\application->findnamespace('view') #1 d:\home-automation\webinterface\vendor\symfony\console\symfony\component\console\application.php(192): symfony\component\console\application->find('view:clear') #2 d:\home-automation\webinterface\vendor\symfony\console\symfony\component\console\application.php(126): symfony\component\console\application->dorun(object(symfony\component\console\input\argvinput), object(symfony\component\console\output\consoleoutput)) #3 d:\home-automation\webinterface\vendor\laravel\framework\src\illuminate\foundation\console\kernel.php(94): symfony\component\console\application->run(object(symfony\component\console\input\argvinput), object(symfony\component\console\output\consoleoutput)) #4 d:\home-automation\webinterface\artisan(36): illuminate\foundation\console\kernel->handle(object(symfony\component\console\input\argvinput), object(symfony\component\console\output\consoleoutput)) #5 {main}
i don't mail, don't think "mail_encryption" have it. lines after problem, have no idea causes them or how resolve it.
any ideas?
ok, solved it.
i had error in controller, caused crash if method in controller accessed.
instead of doing like:
foreach ($sensorgroup->sensors $sensor)
i had:
foreach ($sensor $sensorgroup->sensors)
i don't know thinking typing that, , neither did php. bit stange crashed whole thing instead of throwing error...
Comments
Post a Comment