Title: Plugin causing get_currentuserinfo deprecated message
Last modified: November 13, 2016

---

# Plugin causing get_currentuserinfo deprecated message

 *  [katmac_aus](https://wordpress.org/support/users/katmac_aus/)
 * (@katmac_aus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-causing-get_currentuserinfo-deprecated-message/)
 * Google analyticator plugin had been working great. Then I ran some updates on
   my site and the site started returning the error:
 * Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user()
   instead. in /home/mydomain/public_html/wp-includes/functions.php on line 3707
 * I disabled all plugins and renabled etc and was able to detect that Google Analyticator
   was causing the error message. With it disabled, the site works. Really want 
   the plugin back on again. Any suggestions?

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

 *  Thread Starter [katmac_aus](https://wordpress.org/support/users/katmac_aus/)
 * (@katmac_aus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/plugin-causing-get_currentuserinfo-deprecated-message/#post-8431317)
 * UPDATE: I search the plugin file and found “get_currentuserinfo();” on line 1288.
   I replaced this with “wp_get_current_user();”. This resolved the issue but means
   I’ve got an edited version of the plugin.
 *  [tdmalone](https://wordpress.org/support/users/tdmalone/)
 * (@tdmalone)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-causing-get_currentuserinfo-deprecated-message/#post-8550467)
 * Bumping, as this issue still exists.
 *  [BackuPs](https://wordpress.org/support/users/backups/)
 * (@backups)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-get_currentuserinfo-deprecated-message/#post-8847535)
 * Change the code to this
 *     ```
       	//global $current_user;
       	//get_currentuserinfo();
       	$current_user = wp_get_current_user();
       ```
   
 * Unbelievable this has not been fixed after 2 months.
 *  [tdmalone](https://wordpress.org/support/users/tdmalone/)
 * (@tdmalone)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-get_currentuserinfo-deprecated-message/#post-8850652)
 * Calm down, no-one gets paid for doing this 🙂

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

The topic ‘Plugin causing get_currentuserinfo deprecated message’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-analyticator_fefefe.svg)
 * [Analyticator](https://wordpress.org/plugins/google-analyticator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analyticator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analyticator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analyticator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analyticator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analyticator/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [tdmalone](https://wordpress.org/support/users/tdmalone/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-get_currentuserinfo-deprecated-message/#post-8850652)
 * Status: not resolved