• Hi. I just updated to version 2.3 and I’m getting the following error when a lightbox is opened;

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘Array’ was given in /homepages/36/d437724243/htdocs/wp-includes/plugin.php on line 403

    Having searched the web for this issue – It seems to be something to do with the Pagelines theme, of which my theme is a child. Does anyone have any ideas what I can do to get rid of this error?..

    thanks.

    http://wordpress.org/extend/plugins/category-grid-view-gallery/

Viewing 1 replies (of 1 total)
  • Thread Starter lestercockerill

    (@lestercockerill)

    Any ideas?… I’m not a coder but if anyone can point in the right direction that’d be great…

    Line 403 in /homepages/36/d437724243/htdocs/wp-includes/plugin.php which the error refers to is 3rd from bottom in the function below;

    function do_action($tag, $arg = ”) {
    global $wp_filter, $wp_actions, $merged_filters, $wp_current_filter;

    if ( ! isset($wp_actions) )
    $wp_actions = array();

    if ( ! isset($wp_actions[$tag]) )
    $wp_actions[$tag] = 1;
    else
    ++$wp_actions[$tag];

    // Do ‘all’ actions first
    if ( isset($wp_filter[‘all’]) ) {
    $wp_current_filter[] = $tag;
    $all_args = func_get_args();
    _wp_call_all_hook($all_args);
    }

    if ( !isset($wp_filter[$tag]) ) {
    if ( isset($wp_filter[‘all’]) )
    array_pop($wp_current_filter);
    return;
    }

    if ( !isset($wp_filter[‘all’]) )
    $wp_current_filter[] = $tag;

    $args = array();
    if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
    $args[] =& $arg[0];
    else
    $args[] = $arg;
    for ( $a = 2; $a < func_num_args(); $a++ )
    $args[] = func_get_arg($a);

    // Sort
    if ( !isset( $merged_filters[ $tag ] ) ) {
    ksort($wp_filter[$tag]);
    $merged_filters[ $tag ] = true;
    }

    reset( $wp_filter[ $tag ] );

    do {
    foreach ( (array) current($wp_filter[$tag]) as $the_ )
    if ( !is_null($the_[‘function’]) )
    call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));

    } while ( next($wp_filter[$tag]) !== false );

    array_pop($wp_current_filter);
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Error with pagelines theme’ is closed to new replies.