php - Laravel 5.1 : Error on install new -
when running laravel new blog
or name, following error:
crafting application... php fatal error: uncaught typeexception: argument 2 passed guzzlehttp\adapter\streamadapter::createresponseobject() must of type array, null given, called in c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php on line 67 , defined in c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php:71 stack trace: #0 c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php(67): guzzlehttp\adapter\streamadapter->createresponseobject(object(guzzlehttp\message\request), null, object(guzzlehttp\adapter\transaction), object(guzzlehttp\stream\stream)) #1 c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php(52): guzzlehttp\adapter\streamadapter->createresponse(object(guzzlehttp\adapter\transaction)) #2 c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\client.php(193): guzzlehttp\adapter\streamadapter->send(object(guzzlehttp\adapter\transaction)) #3 c:\u in c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php on line 71 fatal error: uncaught typeexception: argument 2 passed guzzlehttp\adapter\streamadapter::createresponseobject() must of type array, null given, called in c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php on line 67 , defined in c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php:71 stack trace: #0 c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php(67): guzzlehttp\adapter\streamadapter->createresponseobject(object(guzzlehttp\message\request), null, object(guzzlehttp\adapter\transaction), object(guzzlehttp\stream\stream)) #1 c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php(52): guzzlehttp\adapter\streamadapter->createresponse(object(guzzlehttp\adapter\transaction)) #2 c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\client.php(193): guzzlehttp\adapter\streamadapter->send(object(guzzlehttp\adapter\transaction)) #3 c:\u in c:\users\felix\appdata\roaming\composer\vendor\guzzlehttp\guzzle\src\adapter\streamadapter.php on line 71
i don't understand how can happen. here phpinfo file
thanks
the answer simple. running php cli php7 , not xampp/php5. have uncomment extension=php_curl.dll
line.
Comments
Post a Comment