Home Forums Plugin Support WP User Frontend Pro Missing argument 4 for WPUF_Render_Form::render_items()

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 6 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2962

    Post count: 6

    Hi, in WordPress admin area -> profile settings, I see this bug:

    Warning: Missing argument 4 for WPUF_Render_Form::render_items(), called in /home/***.ru/www/wp-content/plugins/wp-user-frontend-pro/class/admin-posting-profile.php on line 70 and defined in /home/artnic.ru/www/wp-content/plugins/wp-user-frontend-pro/class/render-form.php on line 326

    What does this mean? And, how I can get custom profile user fields inside theme template files?


    Tareq Hasan
    Post count: 2831

    Seems like a small issue. You can fix it by opening /class/admin-posting-profile.php on line 70, replace with this code:

    $this->render_items( $custom_fields, $userdata->ID, 'user', $form_id, get_post_meta( $form_id, 'wpuf_form', true ) );

    You can display user profile custom field by this below snippet, you need to give the right user ID and meta key name:
    [php]echo get_user_meta( $user_id, ‘meta_key_name', true );[/php]

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Missing argument 4 for WPUF_Render_Form::render_items()’ is closed to new replies.