Support » Fixing WordPress » Comments aren’t working

  • Hi!

    The comments on my site http://www.labbeliv.se don’t work. I get this message when I try to comment:

    Invalid argument supplied for foreach() in
    labbeliv/wordpress/wp-includes/template-functions-general.php on line 492

    Line 492 in template-functions-general.php looks like this:

    $allowed .= ‘<‘.$tag;

    This is lines 488-501:

    function allowed_tags() {
    global $allowedtags;
    $allowed = ”;
    foreach($allowedtags as $tag => $attributes) {
    $allowed .= ‘<‘.$tag;
    if (0 < count($attributes)) {
    foreach ($attributes as $attribute => $limits) {
    $allowed .= ‘ ‘.$attribute.’=””‘;
    }
    }
    $allowed .= ‘> ‘;
    }
    return htmlentities($allowed);
    }

    Does this make any sense to somebody out there? I have no clue, I’m not very good at this…

    Thanks!

  • The topic ‘Comments aren’t working’ is closed to new replies.