Title: Problem with comments.php
Last modified: August 19, 2016

---

# Problem with comments.php

 *  [loliki](https://wordpress.org/support/users/loliki/)
 * (@loliki)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/problem-with-commentsphp/)
 * 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)

 *  [mg12](https://wordpress.org/support/users/mg12/)
 * (@mg12)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/problem-with-commentsphp/#post-908372)
 * 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';`
 *  [chadmarkley](https://wordpress.org/support/users/chadmarkley/)
 * (@chadmarkley)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/problem-with-commentsphp/#post-908421)
 * 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
 *  [bobinoz](https://wordpress.org/support/users/bobinoz/)
 * (@bobinoz)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/problem-with-commentsphp/#post-908452)
 * 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.

## Tags

 * [inove](https://wordpress.org/support/topic-tag/inove/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [bobinoz](https://wordpress.org/support/users/bobinoz/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/problem-with-commentsphp/#post-908452)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
