Support » Fixing WordPress » Posted comments are blank – call_user_func_array error

  • Hello,

    Recently comments posted to my website have all been blank, including my own, despite having message content in them. The comments get posted and show up, but their content is blank. Checking the error log, the time indexes correspond to this error:

    PHP Warning: call_user_func_array() [<a href=''></a>]: First argument is expected to be a valid callback, 'wp_target_blank' was given in /home4/tropicg9/public_html/blog/wp-includes/plugin.php on line 170

    Looking at line 170 and the last bit of preceding code in the specified file “plugin.php”, this is what is there:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Line 170 is the last one. I’m at a loss as to how to deal with this error. Disabling all plugins did not fix it. This seemed to happen shortly after upgrading from 3.3.1 to 3.3.2. Any help would be appreciated.

    [No bumping, thank you.]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Code from plugin.php…line 170 is the last one:

    reset( $wp_filter[ $tag ] );
            if ( empty($args) )
                    $args = func_get_args();
            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']));

    If more code is needed I can provide it via pastebin.

    Strangely, the file outputting the error is “plugin.php”, presumably dealing with the WP plugins, yet the error shows up even after deactivating all plugins.

    /*$value = call_user_func_array($the_[‘function’], array_slice($args, 1, (int) $the_[‘accepted_args’]));*/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Posted comments are blank – call_user_func_array error’ is closed to new replies.