Title: error with registration
Last modified: March 2, 2017

---

# error with registration

 *  [crazyboy](https://wordpress.org/support/users/crazyboy/)
 * (@crazyboy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-with-registration/)
 * i got issue with wp registration after i add some custom user meta in registration
   field
    this does not happen in version 4.6.x
 * [wp registration error screenshoot image](http://imgur.com/v3NgwUd)
 * i use ‘update_user_meta’ function at registration process to add some custom 
   user meta field
    -  This topic was modified 9 years, 2 months ago by [crazyboy](https://wordpress.org/support/users/crazyboy/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Pieter Bos](https://wordpress.org/support/users/senlin/)
 * (@senlin)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-with-registration/#post-8866148)
 * what custom user meta specifically did you add? The error most likely sits in
   the code you added…
 *  Thread Starter [crazyboy](https://wordpress.org/support/users/crazyboy/)
 * (@crazyboy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-with-registration/#post-8866451)
 * function custom_user_register($user_id) {
    $userdata = array(); $userdata[‘ID’]
   = $user_id; if ($_POST[‘pass2’] !== ”) { $userdata[‘user_pass’] = $_POST[‘pass2’];}
   wp_update_user($userdata); if (!empty($_POST[‘phone’])) { update_user_meta($user_id,’
   phone’,trim($_POST[‘phone’])); } if (!empty($_POST[‘bank’])) { update_user_meta(
   $user_id,’bank’,trim($_POST[‘bank’])); } if (!empty($_POST[‘account_no’])) { 
   update_user_meta($user_id,’account_no’,trim($_POST[‘account_no’])); } if (!empty(
   $_POST[‘account_name’])) { update_user_meta($user_id,’account_name’,trim($_POST[‘
   account_name’])); } }
 *  [Pieter Bos](https://wordpress.org/support/users/senlin/)
 * (@senlin)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-with-registration/#post-8867992)
 * You might want to have (another) look at [this Codex entry](https://codex.wordpress.org/Customizing_the_Registration_Form).
 *  Thread Starter [crazyboy](https://wordpress.org/support/users/crazyboy/)
 * (@crazyboy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-with-registration/#post-8868326)
 * that’s exactly what i do
    it’s works fine in 4.6.x version but crash in 4.7.x
   version

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘error with registration’ is closed to new replies.

## Tags

 * [register](https://wordpress.org/support/topic-tag/register/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [crazyboy](https://wordpress.org/support/users/crazyboy/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/error-with-registration/#post-8868326)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
