Title: PHP Warning: get_current_user() has been disabled?
Last modified: September 16, 2019

---

# PHP Warning: get_current_user() has been disabled?

 *  Resolved [devrekli](https://wordpress.org/support/users/devrekli/)
 * (@devrekli)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-warning-get_current_user-has-been-disabled/)
 * Hello. I checked my error.log file
 * > PHP Warning: get_current_user() has been disabled for security reasons in /
   > home2/site/public_html/wp-content/plugins/nextgen-gallery/freemius/includes/
   > class-fs-logger.php on line 89
 * There are thousands of lines like this. what is problem? thanks.

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

 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-warning-get_current_user-has-been-disabled/#post-11945369)
 * Hello [@devrekli](https://wordpress.org/support/users/devrekli/)
 * Could you please try to remove your NextGen Gallery plugin,
    Re-install it from
   scratch. If you get a freemium message, please try to skip it. Clear your log
   files and check again. Does the problem persist?
 * We’ll be happy to share this one with the development team.
    I’ll write you back
   as soon as I have some feedback.
 * Please, let us know if the workaround solved the problem.
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-warning-get_current_user-has-been-disabled/#post-11945426)
 * Hello [@devrekli](https://wordpress.org/support/users/devrekli/)
 * According to one of the developers you might need to check your hosting provider.
   
   It seems that they are blocking that function and it’s a pretty standard function
   in WordPress.
 * So please, let’s check, and write us back.
    Keep us posted 🙂
 *  Thread Starter [devrekli](https://wordpress.org/support/users/devrekli/)
 * (@devrekli)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-warning-get_current_user-has-been-disabled/#post-11945804)
 * I have 900 photo galleries and I can’t make it from scratch. I don’t want to 
   delete them. thanks for reply
 *  [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * (@gabyimagely)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-warning-get_current_user-has-been-disabled/#post-11949701)
 * Hello [@devrekli](https://wordpress.org/support/users/devrekli/)
 * You will not lose your galleries or photos.
    Re-installing the plugin is a usual
   troubleshooting step.
 * Please, read the other message, that solution was provided by one of the developers.
 * >  According to one of the developers you might need to check your hosting provider.
   > 
   > It seems that they are blocking that function and it’s a pretty standard function
   > in WordPress.
   > So please, let’s check, and write us back.
   >  Keep us posted

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

The topic ‘PHP Warning: get_current_user() has been disabled?’ is closed to new 
replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [gabyimagely](https://wordpress.org/support/users/gabyimagely/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/php-warning-get_current_user-has-been-disabled/#post-11949701)
 * Status: resolved