WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
Display whole array at the time of validation error (3 posts)

  1. Nimesh
    Member
    Posted 7 months ago #

    Hello All,

    I have use wp user frontend plugin.
    All other way, it is working fine.
    But as I have put the custom field as a "required". and as I have not entered value in it and submit the post,
    I got error message like,
    "Term Condition" is missing"
    And most important think with that error message I have also got the arrat like,
    array(9) { ["_wpnonce"]=> string(10) "351792d02d" ["_wp_http_referer"]=> string(32) "/ethyrea/contests/audio-contest/" ["wpuf_post_title"]=> string(1) "a" ["wpuf_post_content"]=> string(1) "a" ["6_letters_code"]=> string(0) "" ["cf_TermCondition"]=> string(0) "" ["category"]=> string(1) "3" ["wpuf_post_type"]=> string(4) "post" ["wpuf_post_new_submit"]=> string(3) "yes" }.
    I can not understand why this erro is also display.

    And as I have remove echo from the given below function,
    if ( $errors ){
    echo wpuf_error_msg( $errors );
    return;}
    than I can not see the error message but the above array must be display as it is.
    Any help will be appreciated.

    http://wordpress.org/plugins/wp-user-frontend/

  2. gribbler
    Member
    Posted 7 months ago #

    In the submit_post function, comment out the line:

    var_dump( $_POST );

    You should be fine now.

  3. Nimesh
    Member
    Posted 7 months ago #

    thanks gribbler, now I can see only error message not whole array.
    but let me know as I have remove var_dump($_POST), is it affect any other codes or anything else?

Reply

You must log in to post.

About this Plugin

About this Topic