Title: [Plugin: File Gallery] breaks install &quot;undefined function wp_get_current_user()&quot;
Last modified: August 19, 2016

---

# [Plugin: File Gallery] breaks install "undefined function wp_get_current_user()"

 *  Resolved [ptroxler](https://wordpress.org/support/users/ptroxler/)
 * (@ptroxler)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-file-gallery-breaks-install-undefined-function-wp_get_current_user/)
 * wow — have not had this for a while — this plugin sucks!

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

 *  Plugin Author [Aesqe](https://wordpress.org/support/users/aesqe/)
 * (@aesqe)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-file-gallery-breaks-install-undefined-function-wp_get_current_user/#post-1756878)
 * hi ptroxler
 * it would really help if you could give me some data to work with, like wordpress
   and file gallery versions.
 * does this happen on wordpress installation, wordpress upgrade, plugin activation,
   in the admin, in the frontend, both…?
 * how are you certain that file gallery is the culprit?
 * thanks 🙂
 *  Thread Starter [ptroxler](https://wordpress.org/support/users/ptroxler/)
 * (@ptroxler)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-file-gallery-breaks-install-undefined-function-wp_get_current_user/#post-1756892)
 * how I am certain … you never are, yet gallery breaks a relatively juvenile install
   of 3.0.1 with no other plugin than admin language installed — hmm, which indeed
   could cause an incompatibility to your gallery … you might want to investigate
   🙂
 *  Plugin Author [Aesqe](https://wordpress.org/support/users/aesqe/)
 * (@aesqe)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-file-gallery-breaks-install-undefined-function-wp_get_current_user/#post-1756974)
 * so did you try activating just “file gallery” without activating “admin language”
   plugin? 😀
 * i’ve investigated and found out a few things:
 * 1) “admin language” could be the bigger culprit here because it seems that it’s
   calling the function ‘get_user_option’ too soon (‘locale’ filter is located in‘
   l10n.php’ file which is loaded before ‘user.php’ file in which ‘get_user_option’
   function resides) – i’ll contact the author
    2) “admin language” is breaking 
   plugin translations by returning ‘false’ instead of ‘$locale’ in one place 2)
   i should move the load_plugin_textdomain call to ‘init’ hook for better compatibility
   with other plugins
 * thanks for reporting this 😉

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

The topic ‘[Plugin: File Gallery] breaks install "undefined function wp_get_current_user()"’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-gallery_fdfbfb.svg)
 * [File Gallery](https://wordpress.org/plugins/file-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/file-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/file-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/file-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Aesqe](https://wordpress.org/support/users/aesqe/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-file-gallery-breaks-install-undefined-function-wp_get_current_user/#post-1756974)
 * Status: resolved