WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning: call_user_func_array() Error (2 posts)

  1. TylinaVespart
    Member
    Posted 1 year ago #

    Hey all,

    Not sure if this is the right forum, but I was updating my child theme to not show the comments count alongside posts on my blog page and WordPress returned me an error. I've since returned the code to the exact way it was prior to the error but it's still there.

    I also just updated Jetpack and wondered if that might be causing an issue, deactivated then reactivated but no difference.

    Website: Doucette Agencies

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '-_header_background' was given in /home/doucette/public_html/wp-includes/plugin.php on line 406

    Anyone know how to fix this / what I've done wrong?

    Thanks,
    Heather

  2. TylinaVespart
    Member
    Posted 1 year ago #

    Never mind folks - turned out to be something I hadn't even touched! Commented out this line:
    add_custom_image_header('-_header_background', 'ess_admin_header_background');

    Not entirely sure what it changed, since the site looks the same as it did previously, but the error is now gone.

Topic Closed

This topic has been closed to new replies.

About this Topic