Title: wp-comments-post.php error
Last modified: August 18, 2016

---

# wp-comments-post.php error

 *  [ldp](https://wordpress.org/support/users/ldp/)
 * (@ldp)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/wp-comments-postphp-error/)
 * everytime i post a comment i get this error:
    Fatal error: Call to undefined 
   function: wp_redirect() in C:\Inetpub\wwwroot\mt\ldp\wp-comments-post.php on 
   line 62
 * and the line 62 is:
    _ $location = (empty($\_POST[‘redirect\_to’])) ? $\_SERVER[“
   HTTP\_REFERER”] : $\_POST[‘redirect\_to’]; _
 * wp_redirect($location); // this one is the 62.
 * anyway. has an idea of what can be?

The topic ‘wp-comments-post.php error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ldp](https://wordpress.org/support/users/ldp/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/wp-comments-postphp-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
