WordPress.org

Forums

Problem with comments.php (4 posts)

  1. loliki
    Member
    Posted 6 years ago #

    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....

  2. mg12
    Member
    Posted 6 years ago #

    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';

  3. chadmarkley
    Member
    Posted 6 years ago #

    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

  4. bobinoz
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags