Vuedo / vuedo

Vuedo is a blog platform, built with Laravel and Vue.js.
https://vuejsfeed.com/
MIT License
2.29k stars 543 forks source link

php artisan db:seed #54

Open temesgenmhr opened 3 years ago

temesgenmhr commented 3 years ago

[ErrorException] join(): Passing glue string after array is deprecated. Swap the parameters

subhojit-ghosh commented 3 years ago

Same problem

jesseinvent commented 3 years ago

Same problem, any solution?

MFernandez93 commented 3 years ago

After doing a bit of research, I found out the error is related to fzaninotto/faker library, which as you may already know it has been archived some time ago. I tried searching all the join() uses and swapping the parameters but I still get the same error on PHP 7.4.

Some people report that doing what I explained above on PHP 7.3 solves the issue. Otherwise you may need to get fake data to seed the Users table from somewhere else and avoid using the Users seed included.

Edit: I forgot I was running this project on Docker, so i'll give it a try on PHP 7.3 and let you know if I could solve it.

MFernandez93 commented 3 years ago

Can't seem to get it working, if you don't mind i'd like to be assigned to this issue. I think I might be able to get it to work.

MFernandez93 commented 3 years ago

Well, since the problem lies in the faker library and not with the current codebase, I think this issue can't be fixed with a PR. To properly seed the database I inspected Laravel's logs, until I found the following line:

[2021-04-29 00:06:25] local.ERROR: ErrorException: join(): Passing glue string after array is deprecated. Swap the parameters in /home/manu/proyectos/vuedo/vendor/cviebrock/eloquent-sluggable/src/Services/SlugService.php:133

So I went to SlugService.php line 133 and fixed that specific use of the join() function, after that I was able to run php artisan db:seed

harounsk commented 2 years ago

Well, since the problem lies in the faker library and not with the current codebase, I think this issue can't be fixed with a PR. To properly seed the database I inspected Laravel's logs, until I found the following line:

[2021-04-29 00:06:25] local.ERROR: ErrorException: join(): Passing glue string after array is deprecated. Swap the parameters in /home/manu/proyectos/vuedo/vendor/cviebrock/eloquent-sluggable/src/Services/SlugService.php:133

So I went to SlugService.php line 133 and fixed that specific use of the join() function, after that I was able to run php artisan db:seed

You mean this line???

1 D:\laragon\www\vuedo-master\vendor\cviebrock\eloquent-sluggable\src\Services\SlugService.php(133): join(Array, ' ')

how to fix it ?????

hasmukh-dharajiya commented 2 years ago

just update your package.

composer update