• Hi, I’m a complete newbie in this kind of things so I don’t know what to do to fix this problem.

    When I used inove, there seems to be a problem when I tried to post a comment under “logged in” state. It says:

    Fatal error: Call to undefined function site_url() in /home/a6600654/public_html/wordpress/wp-content/themes/inove/comments.php on line 147

    This doesn’t happen when I’m not logged in. This warning never happen when I change it into other themes. But I really like inove, so…. what should I do?

    Please help….

Viewing 3 replies - 1 through 3 (of 3 total)
  • OK, follow there 2 simple steps and fix it yourself please.
    Step 1:
    $login_link = site_url('wp-login.php', 'login');
    CHANGE TO
    $login_link = get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink());

    Step 2:
    $logout_link = site_url('wp-login.php?action=logout', 'login');
    CHANGE TO
    $logout_link = get_option('siteurl') . '/wp-login.php?action=logout';

    I am having an issue with the comments.php file as well. When people comment, the comments don’t show up. I ended up using the default comments.php and everything is showing up now. However, I would rather fix the comments.php file that came with the theme.

    I don’t get any errors at all, the comments simply don’t show up.

    I am running WP 2.7 and the latest download of the theme.

    Thx

    I have comments not turning up too. I’m still on 2.63. When I required registration before commenting, it worked. Now I’ve turned it off, just as above, comments appear to have been made, there is no error message, but they just don’t show up.
    Any ideas anyone?
    Meanwhile if chadmarkley or anyone else can explain the fix he used – using the default comments.php – I could fix it that way.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with comments.php’ is closed to new replies.