Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

ERROR #976

Closed
D0Gmatist opened this issue Jul 25, 2016 · 4 comments
Closed

ERROR #976

D0Gmatist opened this issue Jul 25, 2016 · 4 comments

Comments

@D0Gmatist
Copy link

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'text() can only generate text of at least 5 characters' in E:\OpenServer\domains\magazinx.by\f\Faker\Provider\Lorem.php:167 Stack trace: #0 [internal function]: Faker\Provider\Lorem->text(1) #1 E:\OpenServer\domains\magazinx.by\f\Faker\Generator.php(197): call_user_func_array(Array, Array) #2 E:\OpenServer\domains\magazinx.by\f\Faker\Generator.php(248): Faker\Generator->format('text', Array) #3 E:\OpenServer\domains\magazinx.by\f\i.php(125): Faker\Generator->__call('text', Array) #4 E:\OpenServer\domains\magazinx.by\f\i.php(125): Faker\Generator->text(1) #5 {main} thrown in E:\OpenServer\domains\magazinx.by\f\Faker\Provider\Lorem.php on line 167

@fzaninotto
Copy link
Owner

You should read what you've pasted, it contains the explanation of the problem, which is on your side.

Besides, pasting a stack trace without further context is not the best way to get help.

@D0Gmatist
Copy link
Author

made 25 requests for a total of 400 entries ... 10000
Error jumped 6-7 times
$ar_views = trim( $db->safesql( $faker->text( $faker->numberBetween( $min = 0, $max = 10000 ) ) ) );

@fzaninotto
Copy link
Owner

then change the $min value to 5.

@D0Gmatist
Copy link
Author

D0Gmatist commented Jul 27, 2016

Thank you
Just for randomly generating and should be null ... empty text field

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants