bordoni / fakerpress

A WordPress plugin that implements an easy way to create fake data inside WordPress.
http://fakerpress.com
Other
338 stars 54 forks source link

Uncaught Error: Unknown named parameter $min #147

Closed pattisahusiwa closed 2 years ago

pattisahusiwa commented 3 years ago

This error raised when setting both min and max values of Range of possible width sizes for the image when generating posts data.

Fakerpress: v0.5.1 Wordpress: v5.7 PHP: 8.0.3

Fatal error: Uncaught Error: Unknown named parameter $min
in **/fakerpress/vendor/fzaninotto/faker/src/Faker/Generator.php on line 228

Call stack:

call_user_func_array()
**/fakerpress/vendor/fzaninotto/faker/src/Faker/Generator.php:228
Faker\Generator::format()
**/fakerpress/vendor/fzaninotto/faker/src/Faker/Generator.php:285
Faker\Generator::__call()
call_user_func_array()
**/fakerpress/src/FakerPress/Provider/WP_Meta.php:25
FakerPress\P\WP_Meta::meta_parse_qty()
**/fakerpress/src/FakerPress/Provider/WP_Meta.php:148
FakerPress\P\WP_Meta::meta_type_attachment()
call_user_func_array()
**/fakerpress/vendor/fzaninotto/faker/src/Faker/Generator.php:228
Faker\Generator::format()
**/fakerpress/vendor/fzaninotto/faker/src/Faker/Generator.php:285
Faker\Generator::__call()
call_user_func_array()
**/fakerpress/src/FakerPress/Module/Meta.php:151
FakerPress\M\Meta::generate()
**/fakerpress/src/FakerPress/Module/Post.php:193
FakerPress\M\Post::parse_request()
**/fakerpress/src/FakerPress/Ajax.php:76
FakerPress\Ajax::module_generate()
wp-includes/class-wp-hook.php:292
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:316
WP_Hook::do_action()
wp-includes/plugin.php:484
do_action()
wp-admin/admin-ajax.php:187
bordoni commented 2 years ago

This was resolved in the latest release.