Unexpected Laravel 5 errors using Vagrant -
i'm usign project structure using vagrant + puppet + capistrano + laravel 5 api , working deploying local stage 1 month yesterday can't execute local environment.
when vagrant machine doesn't show error , deleted box, instance, re-installed virtualbox , vagrant , still same error , weirdest thing in other computer works fine no issues.
the error happens when update/install composer in "generating autoload files"
generating autoload files php warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 php stack trace: php 1. {main}() /var/www/ubiq/src/artisan:0 php 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 php 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 php 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 php 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 php 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 php 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 call stack: 0.0008 224352 1. {main}() /var/www/ubiq/src/artisan:0 0.1363 1862536 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 0.1363 1862664 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 0.1363 1862848 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 0.1391 1869392 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 0.1425 1913168 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 0.1438 1916832 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 php warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 php stack trace: php 1. {main}() /var/www/ubiq/src/artisan:0 php 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 php 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 php 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 php 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 php 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 php 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 call stack: 0.0008 224352 1. {main}() /var/www/ubiq/src/artisan:0 0.1363 1862536 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 0.1363 1862664 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 0.1363 1862848 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 0.1391 1869392 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 0.1425 1913168 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 0.1454 1916824 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 php warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 php stack trace: php 1. {main}() /var/www/ubiq/src/artisan:0 php 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 php 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 php 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 php 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 php 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 php 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 call stack: 0.0008 224352 1. {main}() /var/www/ubiq/src/artisan:0 0.1363 1862536 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 0.1363 1862664 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 0.1363 1862848 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 0.1391 1869392 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 0.1425 1913168 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 0.1461 1921888 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 php warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51 php stack trace: php 1. {main}() /var/www/ubiq/src/artisan:0 php 2. illuminate\foundation\console\kernel->handle() /var/www/ubiq/src/artisan:36 php 3. illuminate\foundation\console\kernel->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:92 php 4. illuminate\foundation\application->bootstrapwith() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/console/kernel.php:195 php 5. illuminate\foundation\bootstrap\detectenvironment->bootstrap() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/application.php:183 php 6. dotenv::load() /var/www/ubiq/src/vendor/laravel/framework/src/illuminate/foundation/bootstrap/detectenvironment.php:19 php 7. strpos() /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php:51 warning: strpos(): empty needle in /var/www/ubiq/src/vendor/vlucas/phpdotenv/src/dotenv.php on line 51
the error log big , can check full log here: https://jsfiddle.net/rng064wb/
full error log: https://www.dropbox.com/s/v2lm8pdv95zgntx/error_log_laravel_5.log?dl=0
i've reinstalled many times , still same error.
virtualbox: 4.3.28 laravel: 5.0.22 vagrant: 1.7.2 vagrant box: http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box
do have .dotenv file in project? if please check whether have consistent end of lines (unix/windows/mac).
Comments
Post a Comment