vuedo icon indicating copy to clipboard operation
vuedo copied to clipboard

php artisan db:seed

Open temesgenmhr opened this issue 3 years ago • 7 comments

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

temesgenmhr avatar Mar 29 '21 15:03 temesgenmhr

Same problem

subhojit-ghosh avatar Apr 14 '21 04:04 subhojit-ghosh

Same problem, any solution?

jesseinvent avatar Apr 21 '21 16:04 jesseinvent

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 avatar Apr 28 '21 18:04 MFernandez93

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 avatar Apr 28 '21 20:04 MFernandez93

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

MFernandez93 avatar Apr 29 '21 00:04 MFernandez93

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 ?????

harounsk avatar Jan 18 '22 22:01 harounsk

just update your package.

composer update

hasmukh-dharajiya avatar Jun 05 '22 16:06 hasmukh-dharajiya