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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aesqe


    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 🙂

    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


    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.