• Hi,

    I keep getting this same error message at the bottom of my page with certain themes that are loaded on my site. It does not happen with every theme but quite a few all the same.

    Warning: Missing argument 2 for do_action() in /home/directory/public_html/shadows/wp-includes/functions.php on line 916

    I have looked at what is on line 916 in functions.php and see the following:

    function do_action($tag, $string) {
    apply_filters($tag, $string, false);
    return $string;

    It is all beyond me. Does anyone else have any idea what is happening here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well first, I’d recommend updating to the release version of 1.5. The section of functions.php you point out is no longer present in that form.

    I’m getting the same error message with a lot of different themes. Somehow, it seems to come out to this line in the footer file:

    ' do_action('wp_footer'); '

    If I take that line out, everything seems to be fine, no error messages. So what is it that that particular line is doing (or not doing) in the code? And, since everything seems to work fine without it, is it hurting anything by just deleting it?

    Sounds like you don’t have the 1.5 version of functions.php. The second argument to do_action() is mandatory in 1.2.x but optional in 1.5.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Errors from function.php – line 916 to be exact.’ is closed to new replies.