Title: Problem with get_currentuserinfo
Last modified: December 15, 2018

---

# Problem with get_currentuserinfo

 *  [elzadra](https://wordpress.org/support/users/elzadra/)
 * (@elzadra)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-get_currentuserinfo/)
 * I’ve been using P2 for years but since WP5.1 it spits out this error at the top
   of the main page:
 * Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user()
   instead. in /home/katemcdo/mtlcityweblog.com/wp-includes/functions.php on line
   3896
 * It seems to me P2 has not been updated for 4.5, but 5 is no longer accepting 
   get_currentuserinfo at all. Any chance P2 will be updated soon? Thanks.
 * Otherwise, help in updating that php function would be nice.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-get_currentuserinfo%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [lizkarkoski](https://wordpress.org/support/users/lizkarkoski/)
 * (@lizkarkoski)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/problem-with-get_currentuserinfo/#post-10999030)
 * Hi –
 * Thanks for getting in touch.
 * Is that error message always in place, or only when you add a new post/comment,
   or take some other action?
 * Do you see it across multiple browsers? Could you tell me which ones, and the
   version numbers, please?
 * I’m not finding any other reports about this. We will probably need to open up
   a new report via [https://github.com/WordPress/gutenberg/issues/new/choose](https://github.com/WordPress/gutenberg/issues/new/choose)
 *  [edabeline](https://wordpress.org/support/users/edabeline/)
 * (@edabeline)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-get_currentuserinfo/#post-11124758)
 * Hi,
 * I am also getting this error on all my article pages –
 * Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user()
   instead. in /home/wannabem/public_html/wp-includes/functions.php on line 3923
 * Please help in removing this.
 * My Domain: [http://www.wannabemaven.com](http://www.wannabemaven.com)
    Sample
   pages: [https://wannabemaven.com/2016/03/olive-ridley-conservation-velas-turtle-festival-maharashtra/](https://wannabemaven.com/2016/03/olive-ridley-conservation-velas-turtle-festival-maharashtra/)
   [https://wannabemaven.com/2018/12/kolhapur-food-guide/](https://wannabemaven.com/2018/12/kolhapur-food-guide/)
   [https://wannabemaven.com/2016/08/my-first-time-at-a-travel-hostel-the-hosteller-delhi-review/](https://wannabemaven.com/2016/08/my-first-time-at-a-travel-hostel-the-hosteller-delhi-review/)
 * Regards,
    Edwina

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

The topic ‘Problem with get_currentuserinfo’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/p2/1.5.8/screenshot.png)
 * P2
 * [Support Threads](https://wordpress.org/support/theme/p2/)
 * [Active Topics](https://wordpress.org/support/theme/p2/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/p2/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/p2/reviews/)

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [edabeline](https://wordpress.org/support/users/edabeline/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/problem-with-get_currentuserinfo/#post-11124758)
 * Status: not resolved