Valet does seem to work just fine.. but I always have these errors and am wondering why, would rather have an errorless valet installed
running on osx sierra 10.12.4
running latest version of valet
php 7.1
latest everything
valet install:
PHP Warning: file_put_contents(/Users/venus/.valet/Nginx/): failed to open stream: Is a directory in /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Filesystem.php on line 125
PHP Stack trace:
PHP 1. {main}() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:0
PHP 2. Symfony\Component\Console\Application->run() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:260
PHP 3. Symfony\Component\Console\Application->doRun() /Users/venus/.composer/vendor/symfony/console/Application.php:120
PHP 4. Symfony\Component\Console\Application->doRunCommand() /Users/venus/.composer/vendor/symfony/console/Application.php:189
PHP 5. Symfony\Component\Console\Command\Command->run() /Users/venus/.composer/vendor/symfony/console/Application.php:826
PHP 6. call_user_func:{/Users/venus/.composer/vendor/symfony/console/Command/Command.php:260}() /Users/venus/.composer/vendor/symfony/console/Command/Command.php:260
PHP 7. Silly\Application->Silly\{closure}() /Users/venus/.composer/vendor/symfony/console/Command/Command.php:260
PHP 8. Invoker\Invoker->call() /Users/venus/.composer/vendor/mnapoli/silly/src/Application.php:85
PHP 9. call_user_func_array:{/Users/venus/.composer/vendor/php-di/invoker/src/Invoker.php:82}() /Users/venus/.composer/vendor/php-di/invoker/src/Invoker.php:82
PHP 10. Silly\Application->{closure:/Users/venus/.composer/vendor/laravel/valet/cli/valet.php:37-48}() /Users/venus/.composer/vendor/php-di/invoker/src/Invoker.php:82
PHP 11. Facade::install() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:41
PHP 12. Facade::__callStatic() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:41
PHP 13. Valet\Nginx->install() /Users/venus/.composer/vendor/laravel/valet/cli/includes/facades.php:28
PHP 14. Valet\Nginx->installNginxDirectory() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Nginx.php:46
PHP 15. Valet\Nginx->rewriteSecureNginxFiles() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Nginx.php:103
PHP 16. Valet\Site->resecureForNewDomain() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Nginx.php:115
PHP 17. Valet\Site->secure() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Site.php:158
PHP 18. Valet\Filesystem->putAsUser() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Site.php:190
PHP 19. Valet\Filesystem->put() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Filesystem.php:141
PHP 20. file_put_contents() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Filesystem.php:125
valet links:
Warning: array_flip(): Can only flip STRING and INTEGER values! in /Users/venus/.composer/vendor/illuminate/support/Collection.php on line 430
Call Stack:
0.0004 406912 1. {main}() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:0
0.0205 2347384 2. Symfony\Component\Console\Application->run() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:260
0.0306 2665808 3. Symfony\Component\Console\Application->doRun() /Users/venus/.composer/vendor/symfony/console/Application.php:120
0.0307 2665808 4. Symfony\Component\Console\Application->doRunCommand() /Users/venus/.composer/vendor/symfony/console/Application.php:189
0.0307 2665808 5. Symfony\Component\Console\Command\Command->run() /Users/venus/.composer/vendor/symfony/console/Application.php:826
0.0309 2668088 6. call_user_func:{/Users/venus/.composer/vendor/symfony/console/Command/Command.php:260}() /Users/venus/.composer/vendor/symfony/console/Command/Command.php:260
0.0309 2668088 7. Silly\Application->Silly\{closure}() /Users/venus/.composer/vendor/symfony/console/Command/Command.php:260
0.0310 2669144 8. Invoker\Invoker->call() /Users/venus/.composer/vendor/mnapoli/silly/src/Application.php:85
0.0310 2669392 9. call_user_func_array:{/Users/venus/.composer/vendor/php-di/invoker/src/Invoker.php:82}() /Users/venus/.composer/vendor/php-di/invoker/src/Invoker.php:82
0.0310 2669456 10. Silly\Application->{closure:/Users/venus/.composer/vendor/laravel/valet/cli/valet.php:101-105}() /Users/venus/.composer/vendor/php-di/invoker/src/Invoker.php:82
0.0310 2669456 11. Facade::links() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:102
0.0310 2669512 12. Facade::__callStatic() /Users/venus/.composer/vendor/laravel/valet/cli/valet.php:102
0.0313 2669784 13. Valet\Site->links() /Users/venus/.composer/vendor/laravel/valet/cli/includes/facades.php:28
0.0313 2669848 14. Valet\Site->getCertificates() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Site.php:72
0.0330 2821944 15. Illuminate\Support\Collection->flip() /Users/venus/.composer/vendor/laravel/valet/cli/Valet/Site.php:89
0.0330 2822024 16. array_flip() /Users/venus/.composer/vendor/illuminate/support/Collection.php:430
Weird, never seen anything like that before. Does it happen on a fresh install after removing Valet and reinstalling?
thanks for the advice. I tried 'valet uninstall' several times and it did nothing.. it said it succeeded but it didn't do anything and valet was still available. I was using valet 2.0.4
I then followed the guide to fully remove it
valet uninstall
sudo brew services stop nginx
sudo brew services stop php70
sudo brew services stop dnsmasq
brew uninstall nginx
brew uninstall php70
brew uninstall dnsmasq
rm -rf ~/.valet
rm /usr/local/bin/valet
and then reinstalled it with
composer global require laravel/valet
valet install
The errors went away!
Do note though that after doing all this the nginx and dnsmasq services were not restarted and I had to start them manually
Most helpful comment
thanks for the advice. I tried 'valet uninstall' several times and it did nothing.. it said it succeeded but it didn't do anything and valet was still available. I was using valet 2.0.4
I then followed the guide to fully remove it
and then reinstalled it with
The errors went away!
Do note though that after doing all this the nginx and dnsmasq services were not restarted and I had to start them manually