• I was installing some plugins and activated them when on the last one called: “wp-t-wap” when i activated him i got this error:

    Fatal error: Call to undefined function wp_get_current_user() in /home/xxxx/public_html/wp-includes/capabilities.php on line 447

    What did i do?Is it the wp-t-wap plugin?
    Please help me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter skorpyo

    (@skorpyo)

    No one knows about this error?
    I lost my website because of this.

    Hi,

    Did you have any luck with this problem?

    I have been developing an events calendar plugin for my mu website and came across the same error.

    My plugin worked with a standard version of wordpress however I was getting the when activating the plugin on my mu site.

    The problem was caused by “upgrade-functions.php”

    A simple quick fix for me was to do something like this:

    In the plugin comment out these two lines

    //require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
    //dbDelta($sql);

    And replace with this one.
    $wpdb->query($sql);

    NOTE: the variable $sql might be called something different.

    This may cause problems if you are upgrading the plugin from an earlier version.

    Might not work for you and not the best way to create a table but give it a try.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error.Why?’ is closed to new replies.