WordPress.org

Ready to get started?Download WordPress

Forums

Posted comments are blank - call_user_func_array error (5 posts)

  1. tropicaltidbits
    Member
    Posted 2 years ago #

    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='function.call-user-func-array'>function.call-user-func-array</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.]

  2. tropicaltidbits
    Member
    Posted 2 years ago #

    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']));
                            }
  3. tropicaltidbits
    Member
    Posted 2 years ago #

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

  4. tropicaltidbits
    Member
    Posted 2 years ago #

    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.

  5. adjaya
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic