WordPress.org

Forums

Admin in English with Switch
[resolved] Error (6 posts)

  1. Li-An
    Member
    Posted 3 years ago #

    Fatal error: Call to undefined function wp_get_current_user() in /home/**/wp-content/plugins/admin-in-english-with-switch/admin-in-english-with-switch.php on line 13

    http://wordpress.org/extend/plugins/admin-in-english-with-switch/

  2. Amanda & Steve
    Member
    Posted 3 years ago #

    Hi Li-an

    I believe Facebook did something and broke this, and similar plugins.

    Please take a look at this thread --> http://wordpress.org/support/topic/plugin-not-working-with-wordpress-351

  3. dontcare
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Li-An,

    did you try including the following line of code in wp-includes/capabilities.php on line 2?

    require_once('pluggable.php');

  4. Li-An
    Member
    Posted 3 years ago #

    You mean change the WP core ?

  5. dontcare
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, the core. Although I understand that tweaking the core is not recommended, calling the wp_get_current_user() function in the latest builds of WP causes the error message. I am looking for the workaround, however this is the only one I found so far.

  6. dontcare
    Member
    Plugin Author

    Posted 3 years ago #

    Ok, I was able to solve the issue without tweaking the core. Version 1.1 should work fine. Any feedback is appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Admin in English with Switch
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.