Title: [Bug] &#8216;wp_pre_insert_user_data&#8217; in wpcerber_load.php
Last modified: June 4, 2021

---

# [Bug] ‘wp_pre_insert_user_data’ in wpcerber_load.php

 *  Resolved [joroabv](https://wordpress.org/support/users/joroabv/)
 * (@joroabv)
 * [5 years ago](https://wordpress.org/support/topic/bug-wp_pre_insert_user_data-in-wpcerber_load-php/)
 * There is a bug in wpcerber_load.php in the ‘wp_pre_insert_user_data’ filter. 
   The problem is, that the code assumes $data[‘user_login’] and $data[‘user_email’]
   are present, while this might not the case, as filters with lower priority might
   have wiped them out (which I’m actually doing in order to stop the registration
   in some circumstances) and because of this – WP Cerber crashes the whole process.
   A workaround for this is to override WP Cerber by adding the custom filter with
   PHP_INT_MAX priority, but it is not nice. Better would be if you just do the 
   checks if those two are present in the array (and if the $data is an array altogether
   at first place).

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

 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [5 years ago](https://wordpress.org/support/topic/bug-wp_pre_insert_user_data-in-wpcerber_load-php/#post-14521731)
 * It is not a bug per se, but I agree that it’s better to check the parameter. 
   It will be implemented in the next version.
 *  Thread Starter [joroabv](https://wordpress.org/support/users/joroabv/)
 * (@joroabv)
 * [5 years ago](https://wordpress.org/support/topic/bug-wp_pre_insert_user_data-in-wpcerber_load-php/#post-14522526)
 * Ok, thanks.
 *  Plugin Author [gioni](https://wordpress.org/support/users/gioni/)
 * (@gioni)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bug-wp_pre_insert_user_data-in-wpcerber_load-php/#post-14687946)
 * Fixed in the last version.

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

The topic ‘[Bug] ‘wp_pre_insert_user_data’ in wpcerber_load.php’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-cerber_77a9bf.svg)
 * [WP Cerber Security, Anti-spam & Malware Scan](https://wordpress.org/plugins/wp-cerber/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cerber/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cerber/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cerber/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cerber/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cerber/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gioni](https://wordpress.org/support/users/gioni/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/bug-wp_pre_insert_user_data-in-wpcerber_load-php/#post-14687946)
 * Status: resolved