• Transferred and upgraded to new server. A top of home page we now see: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_custom_head_output’ not found or invalid function name in /home/a1000w/public_html/wp-includes/class-wp-hook.php on line 286 …

    I have no idea how to get to the class-wp-hook.php or how to fix it. (Am familiar with css, etc. but not in WP) PLEASE help! (I’ve looked at a couple of similar answers, but they make no sense to me.)

    I will appreciate anyone’s help.

    • This topic was modified 6 years, 7 months ago by a1000w.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The error

    all_user_func_array() expects parameter 1 to be a valid callback, function 'my_custom_head_output' not found or invalid function name

    means that your theme or a plug is adding a function to a filter, ‘my_custom_head_output’ but that that function is not defined.

    So, you need to find out where that’s coded. The plugin https://www.ads-software.com/plugins/string-locator can help with that.

    Because this happened when you moved servers, my guess is that you failed to move one or more files, so the file that defined this function got left behind.

    Thread Starter a1000w

    (@a1000w)

    Sorry, my IT guy and I are at a loss! So frustrating… but we cannot find anything that mentions my_custom_head_output”. I HAVE to get this fixed… Anyone I can hire to do it? We’ve tried everything we know.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please try https://jobs.wordpress.net/ or https://directory.codepoet.com/ and do not accept any hire offers posted to these forums.

    This may be a plugin or theme thing. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter a1000w

    (@a1000w)

    We were able to use string-locator and found the “warning” message in all pages… and manually deleted it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp-includes/class-wp-hook-php line286’ is closed to new replies.