Title: Fatal Error.Why?
Last modified: August 19, 2016

---

# Fatal Error.Why?

 *  [skorpyo](https://wordpress.org/support/users/skorpyo/)
 * (@skorpyo)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/fatal-errorwhy/)
 * 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](https://wordpress.org/support/users/skorpyo/)
 * (@skorpyo)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/fatal-errorwhy/#post-796002)
 * No one knows about this error?
    I lost my website because of this.
 *  [levi.putna](https://wordpress.org/support/users/leviputna-1/)
 * (@leviputna-1)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/fatal-errorwhy/#post-796175)
 * 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.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [wp_get_current_user](https://wordpress.org/support/topic-tag/wp_get_current_user/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [levi.putna](https://wordpress.org/support/users/leviputna-1/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/fatal-errorwhy/#post-796175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
