• Resolved HelgaTheViking

    (@helgatheviking)


    I generated some meta field rules for Users:

    But in the usermeta table for a generated user there is no data related to the above fields:

    Is this limited to posts/pages?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gustavo Bordoni

    (@bordoni)

    Not it’s for sure not, I will handle it tonight still, something is not triggering properly.

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Resolved, version 0.6.5 should solve your problem.

    Thread Starter HelgaTheViking

    (@helgatheviking)

    Thanks for the quick update. Unfortunately, when I try to generate users now I see the following fatal error in my log:

    [26-Apr-2024 12:25:07 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / int in /app/wp-content/plugins/fakerpress/src/FakerPress/Provider/WP_Meta.php:73
    
    Stack trace:
    
    #0 [internal function]: FakerPress\Provider\WP_Meta->meta_type_numbers('numbers', 'billing_phone', Array, '90')
    
    #1 /app/wp-content/plugins/fakerpress/vendor-prefixed/fakerphp/faker/src/Faker/Generator.php(713): call_user_func_array(Array, Array)
    
    #2 /app/wp-content/plugins/fakerpress/vendor-prefixed/fakerphp/faker/src/Faker/Generator.php(978): FakerPress\ThirdParty\Faker\Generator->format('meta_type_numbe...', Array)
    
    #3 [internal function]: FakerPress\ThirdParty\Faker\Generator->__call('meta_type_numbe...', Array)
    
    #4 /app/wp-content/plugins/fakerpress/src/FakerPress/Module/Meta.php(145): call_user_func_array(Array, Array)
    
    #5 /app/wp-content/plugins/fakerpress/src/FakerPress/Module/User.php(185): FakerPress\Module\Meta->generate()
    
    #6 /app/wp-content/plugins/fakerpress/src/FakerPress/Ajax.php(83): FakerPress\Module\User->parse_request(15, Array)
    
    #7 /app/wp-includes/class-wp-hook.php(324): FakerPress\Ajax::module_generate('')
    
    #8 /app/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    
    #9 /app/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #10 /app/wp-admin/admin-ajax.php(192): do_action('wp_ajax_fakerpr...')
    
    #11 {main}
    
    thrown in /app/wp-content/plugins/fakerpress/src/FakerPress/Provider/WP_Meta.php on line 73
    Plugin Author Gustavo Bordoni

    (@bordoni)

    @helgatheviking thank you so much for report on that.

    Adding a bunch of type safety and updating Faker behind the scenes led to a couple of the meta types to break…

    It should all be fixed in version 0.6.6

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Meta fields not generated for users’ is closed to new replies.