• Resolved robinizing

    (@getbin)


    I just took a new site live and this didn’t happen in dev. Now, at the top of the member profile page, I get the following code showing up:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘wds_bp_registration_options_bp_before_member_header’ was given in /home/pfrpc/public_html/wp-includes/plugin.php on line 403`

    The site is https://www.pfrpc.com. I am running BuddyPress 2.2.2 and WP 3.4.2.

    Any idea why this is happening?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It appears the function for wds_bp_registration_options_bp_before_member_header is not defined properly.

    You need to find this function, and look over it’s syntax. The first argument, apparently, should be the callback function used to display the data.

    It all depends on how the plugin (or theme) is coded… but, that’s what my guess would be.

    Thread Starter robinizing

    (@getbin)

    I don’t know what it should be. Why did it just happen when I moved the site? Everything else seems to work fine… Here is the section of the plugin.php file:

    do {
    		foreach( (array) current($wp_filter[$tag]) as $the_ )
    			if ( !is_null($the_['function']) ){
    				$args[1] = $value;
    				$value = call_user_func_array($the_['function'], array_slice($args, 1, (int) $the_['accepted_args']));

    Does that help you help me?

    Thread Starter robinizing

    (@getbin)

    I am using the BP Registration-Options plug-in to stop spammers. When I deactivate this, the problem goes away. Is there a better plugin to use? The site gets hit pretty badly – that’s why they hired me to re-design the site!

    Is there something that I can alter in the code and keep the plug-in?

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code shows up in Profile Page’ is closed to new replies.