Title: Warning: Missing argument errors
Last modified: January 23, 2017

---

# Warning: Missing argument errors

 *  Resolved [kidkilowatt](https://wordpress.org/support/users/kidkilowatt/)
 * (@kidkilowatt)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/warning-missing-argument-errors/)
 * Hi, your plugin works great, but these errors appear after a new user completes
   the registration form. How can I fix this? Thanks!!!
 * Warning: Missing argument 2 for BpXProfileWordPressUserSync::intercept_wp_profile_sync()
   in /var/www/mysite/wp-content/plugins/bp-xprofile-wp-user-sync/bp-xprofile-wp-
   user-sync.php on line 636 Warning: Missing argument 3 for BpXProfileWordPressUserSync::
   intercept_wp_profile_sync() in /var/www/mysite/wp-content/plugins/bp-xprofile-
   wp-user-sync/bp-xprofile-wp-user-sync.php on line 636 Warning: Missing argument
   2 for BpXProfileWordPressUserSync::intercept_wp_profile_sync_patch() in /var/
   www/mysite/wp-content/plugins/bp-xprofile-wp-user-sync/bp-xprofile-wp-user-sync.
   php on line 674 Warning: Missing argument 3 for BpXProfileWordPressUserSync::
   intercept_wp_profile_sync_patch() in /var/www/mysite/wp-content/plugins/bp-xprofile-
   wp-user-sync/bp-xprofile-wp-user-sync.php on line 674

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

 *  Plugin Author [Christian Wach](https://wordpress.org/support/users/needle/)
 * (@needle)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/warning-missing-argument-errors/#post-8688785)
 * [@kidkilowatt](https://wordpress.org/support/users/kidkilowatt/) Is your registration
   form generated by BuddyPress or a third party plugin? If BuddyPress, which version?
 *  Thread Starter [kidkilowatt](https://wordpress.org/support/users/kidkilowatt/)
 * (@kidkilowatt)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/warning-missing-argument-errors/#post-8688936)
 * It’s generated by the [Woffice](https://woffice.io/) theme. I noticed if I remove
   $posted_field_ids, $errors from these two lines, no error appears and the plugin
   still works.
 * 636: public function intercept_wp_profile_sync( $user_id = 0, $posted_field_ids,
   $errors ) {
 * 675: public function intercept_wp_profile_sync_patch( $user_id = 0, $posted_field_ids,
   $errors ) {
 *  Plugin Author [Christian Wach](https://wordpress.org/support/users/needle/)
 * (@needle)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/warning-missing-argument-errors/#post-8691379)
 * Sorry, I don’t think I was clear enough. What would help me are the steps to 
   reproduce the warnings. I need to know about how your registration form is built–
   i.e. with BuddyPress directly, via another plugin or via a feature in the theme.
 * Tracing the source of the warning would also be helpful – the following code (
   placed inside the `intercept_wp_profile_sync` method in the file bp-xprofile-
   wp-user-sync.php) should reveal how the code execution got there:
 *     ```
       $e = new Exception;
       $trace = $e->getTraceAsString();
       error_log( $trace );
       ```
   
 * You may wish to anonymise the paths that this will output before posting the 
   results here.
 * Cheers, Christian
 *  Plugin Author [Christian Wach](https://wordpress.org/support/users/needle/)
 * (@needle)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/warning-missing-argument-errors/#post-8973390)
 * Closing due to inactivity. Please open a new issue if the problem persists.
 * Cheers, Christian

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

The topic ‘Warning: Missing argument errors’ is closed to new replies.

 * ![](https://ps.w.org/bp-xprofile-wp-user-sync/assets/icon-256x256.jpg?rev=1078253)
 * [BP xProfile WordPress User Sync](https://wordpress.org/plugins/bp-xprofile-wp-user-sync/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-xprofile-wp-user-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-xprofile-wp-user-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-xprofile-wp-user-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-xprofile-wp-user-sync/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Christian Wach](https://wordpress.org/support/users/needle/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/warning-missing-argument-errors/#post-8973390)
 * Status: resolved