Title: Too Early User Checking
Last modified: August 30, 2016

---

# Too Early User Checking

 *  [geminorum](https://wordpress.org/support/users/geminorum/)
 * (@geminorum)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/too-early-user-checking-1/)
 * the theme, combined with BuddyPress will generate notice. for more information
   see: [https://buddypress.trac.wordpress.org/ticket/4830](https://buddypress.trac.wordpress.org/ticket/4830)
 * “Some plugin is invoking it (set_current_user) too early. You’ll want to do a
   debug_backtrace() and figure out what function is calling it when.”
 * the P2 class must wait till init to check for user and include ajax part.

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

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/too-early-user-checking-1/#post-6709963)
 * Thanks for the report. Could you please clarify whether this is something that
   started happening only with version 1.5.7 of P2?
 *  Thread Starter [geminorum](https://wordpress.org/support/users/geminorum/)
 * (@geminorum)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/too-early-user-checking-1/#post-6709970)
 * I’m seeing this on [1.5 ~ 1.5.5](https://themes.trac.wordpress.org/browser/p2/1.5/functions.php#L150)
 * also it’s better to use `__construct` in P2 class. every PHP4 style constructor
   method is deprecated since WP4.3
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/too-early-user-checking-1/#post-6709977)
 * Thanks for this, I will pass it along to our developers.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/too-early-user-checking-1/#post-6710061)
 * > also it’s better to use __construct in P2 class. every PHP4 style constructor
   > method is deprecated since WP4.3
 * Our developers let me know that most of the older-style classes that were throwing
   errors previously have been updated in 1.5.7 with the `__construct` format, if
   you’d like to give that version a try. It can be downloaded here, as I mentioned
   in the other thread: [http://p2theme.com/](http://p2theme.com/)

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

 The topic ‘Too Early User Checking’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/too-early-user-checking-1/#post-6710061)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
