Title: Cannot create new WP users
Last modified: July 17, 2023

---

# Cannot create new WP users

 *  Resolved [benbluef](https://wordpress.org/support/users/benbluef/)
 * (@benbluef)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/)
 * Hi,
 * WordPress was not able to create a new user. It gives the error “Not enough data”.
   This is happening with the “Transfer single phpBB User into WordPress” tool and
   also when trying to add the user from the standard WordPress admin page “Users
   > Add New”
 * I had to disable the W3all plugin, or comment out the following hook:
 * add_filter( ‘wp_pre_insert_user_data’, ‘w3all_wp_pre_insert_user_data’, 10, 4);
   …
   in \wp-content\plugins\wp-w3all-phpbb-integration\class.wp.w3all-phpbb.phpCould
   you please check? It was causing $data to be empty.
 * Thanks

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

 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16901956)
 * OK! Look
 * > = 2.7.1 =
   > _Release Date – 26 Apr, 2023_
   >  - Fix: wp_insert_user function, used by the ‘phpBB extension’ (if it has been
   >    installed into phpBB, and option active) for the user addition in WP via
   >    cURL, when an user register in phpBB side: on tests it fail with error ‘
   >    Not enough data provided’ when the email value is provided (WP 6.2)
   >  - Minor fixes
 * Thank you for the info, yes i assume it is like the above. The plugin code has
   been tested into latest Php 8.2.6 and will be released very soon. Going to fix
   the transfer processes (all) that are affected by the same problem!
 * Mhhh
 * add_filter( ‘wp_pre_insert_user_data’, ‘w3all_wp_pre_insert_user_data’, 10, 4);
 * removed….
 * it has been fixed by me instead last time, not providing an email, on file **
   wp_w3all.php**
 * _**function w3all\_add\_phpbb\_user() {**_
 * the email value is not passed, then the user’s table is going to be updated (
   adding then the email).
 *     ```wp-block-code
                   //'user_email'       =>  $phpbb_user[0]->user_email, // on WP 6.2 the wp_insert_user function, on cULR tests, fail with error "Not enough data provided" when email value provided
       ```
   
 * You say that disabling the hook _wp\_pre\_insert\_user\_data_ it work instead.
   Ok let check the whole think and if you have any news let know!
 * See you soon, really thank to you!
    -  This reply was modified 2 years, 10 months ago by [axew3](https://wordpress.org/support/users/axewww/).
    -  This reply was modified 2 years, 10 months ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16903064)
 * i assume that the _function w3all\_wp\_pre\_insert\_user\_data_ into wp_w3all.
   php file:
 * it should be
 * `return $userdata;`
 * and not the actual
 * `return $data;`
 * anyway i did not get actually any error into php 8.2.6 and latest wp, both when
   inserting or creating a new user.
 * **Ps wrong**, checked that it need to be _return $data_
 * i will check further more the thing
    -  This reply was modified 2 years, 10 months ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16903163)
 *  I have try out testing, that i only get
 * **Error: username or email already exists into our forum.**
 * **Return back**
 * error message from the plugin, when an username or email already exists into 
   the phpbb db. At moment i cannot reproduce the issue, but looking to change the
   hooked function so to not interfere in any way, if/when the email/username is
   not found into phpbb
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16903211)
 * nope… it seem to me an error due to something wrong in your WP or something else
   in case, it seem that already it do not interfere in any way if the email/username
   do not exists into phpBB.
 * If you imagine any other hint to reverse your problem or fix the thing please
   let know! I still will follow on check the issue by the way
    -  This reply was modified 2 years, 10 months ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16904026)
 * the hook call will be wrapped with
 * if ( ! defined( ‘WP_ADMIN’ ) )
   {
 * }
 * so that in effect, since it is a trick for front end plugins pages (it is NOT
   necessary for WP default flow, where another check is done and it is sufficient),
   it will be fired only when registrations fires on front end using external plugins.
   It should be redundant to do these check (if email exist into phpBB), and should
   be may removed, because, once the integration run with paired users, if an email
   exist wp himself will avoid the registration of the existent user. Further more,
   using the phpBB WP extension in phpBB, it is possible to leave users to register
   and update profiles (email) both in wp and phpBB.
 * The logic should say: remove it. But ok, in the while we’ll wrap the hook to 
   fire only when on frontend plugins pages.
    -  This reply was modified 2 years, 10 months ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16907690)
 * 2.7.2 has been just released

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

The topic ‘Cannot create new WP users’ is closed to new replies.

 * ![](https://ps.w.org/wp-w3all-phpbb-integration/assets/icon-128x128.png?rev=3375511)
 * [WP w3all phpBB](https://wordpress.org/plugins/wp-w3all-phpbb-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-w3all-phpbb-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [axew3](https://wordpress.org/support/users/axewww/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-new-wp-users/#post-16907690)
 * Status: resolved