• Resolved kidkilowatt

    (@kidkilowatt)


    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

    (@needle)

    @kidkilowatt Is your registration form generated by BuddyPress or a third party plugin? If BuddyPress, which version?

    Thread Starter kidkilowatt

    (@kidkilowatt)

    It’s generated by the Woffice 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

    (@needle)

    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

    (@needle)

    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.