• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

call_user_func_array error, associate theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › call_user_func_array error, associate theme

This topic is: not resolved

Tagged: associate theme, call_user_func_array

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 8 months ago by skstudio.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 16, 2013 at 10:29 pm #35889
    skstudio
    Member

    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://
    April 18, 2013 at 12:52 am #36085
    Ozzy
    Member

    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 Rodriguez | Twitter | Google+

    April 18, 2013 at 10:12 am #36156
    skstudio
    Member

    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

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble