call_user_func_array error, associate theme

Community Forums Forums General Discussion call_user_func_array error, associate theme

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  skstudio 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35889

    skstudio
    Participant
    Post count: 8

    I use Associate on 2 websites. I upgraded to Genesis 1.9.2. Today. I noticed that I am getting this error on the backend at Appearance > Heading which is the Custom Header page for Associate:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘associate_admin_style’ not found or invalid function name in …. /wp-includes/plugin.php on line 406.
    It looks like it’s referencing this code in the functions.php file for the associate theme:
    /** Add support for custom header */
    add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 120, ‘textcolor’ => ‘ffffff’, ‘admin_header_callback’ => ‘associate_admin_style’ ) );

    If I remove this “add” then the whole backend header page goes away. I am not sure what callback does. Does this associate_admin_style still exist after the Genesis upgrade? Where can I find the associate_admin_style that the “add…callback” references?
    My client sees the backend and she will question this error. Any help/feedback is appreciated.

    http://
    #36085

    Ozzy
    Participant
    Post count: 211

    the line of code that comes with the theme is the following:

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 120 ) );

    i would imagine if you remove the extra stuff you have on that line, then you should be good as i don’t see an error in the fresh install of the theme.


    #36156

    skstudio
    Participant
    Post count: 8

    Ozzy – That worked! I took out the ‘admin_header_callback’ => ‘associate_admin_style’ and the error is no longer showing on the backend. Thanks much!
    sk

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.