Title: wp_insert_user fails
Last modified: August 28, 2020

---

# wp_insert_user fails

 *  Resolved [tschmoyer](https://wordpress.org/support/users/tschmoyer/)
 * (@tschmoyer)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp_insert_user-fails/)
 * I can authenticate an external db user; however, the user is NOT re-created in
   the WordPress database.
 * I’m have WordPress 5.3.4 running Twenty Seventeen theme on Bluehost.
 * I did try to troubleshoot and best guess is the wp_insert_user fails on line 
   54 in external-login/login/authenticate.php
 * $new_user_id = wp_insert_user( $exlog_userdata ); // A new user has been created
 * Hope you can help!
 * Thanks,
 * Tim
    -  This topic was modified 5 years, 9 months ago by [tschmoyer](https://wordpress.org/support/users/tschmoyer/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [tschmoyer](https://wordpress.org/support/users/tschmoyer/)
 * (@tschmoyer)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/wp_insert_user-fails/#post-13328311)
 * Never mind, my error on my end 🙂
    -  This reply was modified 5 years, 9 months ago by [tschmoyer](https://wordpress.org/support/users/tschmoyer/).

Viewing 1 replies (of 1 total)

The topic ‘wp_insert_user fails’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-login_fbebd6.svg)
 * [External Login](https://wordpress.org/plugins/external-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-login/)
 * [Active Topics](https://wordpress.org/support/plugin/external-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-login/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [tschmoyer](https://wordpress.org/support/users/tschmoyer/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/wp_insert_user-fails/#post-13328311)
 * Status: resolved