Title: Call to undefined function: wp_get_current_user()
Last modified: August 18, 2016

---

# Call to undefined function: wp_get_current_user()

 *  [Sr-ultimate](https://wordpress.org/support/users/sr-ultimate/)
 * (@sr-ultimate)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_get_current_user/)
 * I am getting this error while posting a comment on my website.
 * **Fatal error**: Call to undefined function: wp_get_current_user() in **/home/
   sreejith/public_html/wp-comments-post.php** on line **27**
 * Please try out commenting on any post at [http://www.sr-ultimate.com](http://www.sr-ultimate.com)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_get_current_user/#post-452615)
 * I’d try to upload a new fresh copy of the wp-includes folder.
 *  Thread Starter [Sr-ultimate](https://wordpress.org/support/users/sr-ultimate/)
 * (@sr-ultimate)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_get_current_user/#post-452636)
 * Worked. thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Call to undefined function: wp_get_current_user()’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Sr-ultimate](https://wordpress.org/support/users/sr-ultimate/)
 * Last activity: [19 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wp_get_current_user/#post-452636)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
