Support » Plugins » Hacks » Warning: call_user_func_array() Error

  • Resolved TylinaVespart


    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() []: 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?


Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: call_user_func_array() Error’ is closed to new replies.