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.
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.
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!
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!