Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bp_setup_current_user'

Viewing 18 results - 51 through 68 (of 68 total)
  • Author
    Search Results
  • DarkPsy
    Participant

    Hello Dan,

    I’m using it in the exact same way I was a week back when everything was working just as expected, suddenly it stopped working.

    I also have this message being displayed

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in ~wordressdir~/wp-includes/functions.php on line 3245 Warning: Cannot modify header information - headers already sent by (output started at ~wordressdir~/wp-includes/functions.php:3245) in ~wordressdir~/wp-includes/pluggable.php on line 1121

    The bbPress plugin isn’t something I feel this is related to. Basically I’m baffled cos it was working a week back and now it’s not. everything is the same way. Even on a clean install it backfires.

    Buddypress 2.0.2.
    WP 3.9.2

    #186496
    milosnikolic
    Participant

    When I turn on the debug mode in WP this is what shows up:

    Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in public_html/wp-includes/functions.php on line 3245

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in public_html/wp-includes/functions.php on line 3245

    Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.) in public_html/wp-includes/functions.php on line 3245

    jreeve
    Participant

    In my debug.log, I’m getting this error:

    [07-Aug-2014 20:16:29 UTC] PHP Notice: bp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 1.7.) in /vagrant/app/public/wp-includes/functions.php on line 3245

    What is causing this, and how can I get it to stop complaining?

    #186079
    spikespiegel
    Participant

    hey, look which errors I got:

    Notice: Use of undefined constant PLUGIN_URL – assumed ‘PLUGIN_URL’ in /home/username/public_html/wp-content/plugins/envolve-chat/envolve-chat.php on line 69

    Notice: Use of undefined constant PLUGIN_PATH – assumed ‘PLUGIN_PATH’ in /home/username/public_html/wp-content/plugins/envolve-chat/envolve-chat.php on line 70

    Notice: Use of undefined constant adcopy_wp_enable_comment_reply_reload – assumed ‘adcopy_wp_enable_comment_reply_reload’ in /home/username/public_html/wp-content/plugins/solvemedia/solvemedia.comment.inc on line 25

    Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /home/username/public_html/wp-includes/functions.php on line 3245

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home/username/public_html/wp-includes/functions.php on line 3245

    Notice: Use of undefined constant BP_PORTFOLIO_ITEMS_TABLE – assumed ‘BP_PORTFOLIO_ITEMS_TABLE’ in /home/username/public_html/wp-content/plugins/buddypress-portfolio/includes/bp-portfolio-loader.php on line 74

    Notice: Undefined variable: defaults in /home/username/public_html/wp-content/plugins/buddypress-portfolio/includes/bp-portfolio-classes.php on line 34

    Notice: Undefined variable: defaults in /home/username/public_html/wp-content/plugins/buddypress-portfolio/includes/bp-portfolio-classes.php on line 157

    Notice: Undefined variable: id in /home/username/public_html/wp-content/plugins/buddypress-portfolio/includes/bp-portfolio-classes.php on line 173

    Notice: Undefined index: workflow in /home/username/public_html/wp-content/plugins/social-articles/includes/social-articles-functions.php on line 122

    Notice: Undefined variable: sub_nav in /home/username/public_html/wp-content/plugins/social-articles/includes/social-articles-load.php on line 96

    Notice: Undefined index: general_display_media in /home/username/public_html/wp-content/plugins/buddypress-media/app/main/RTMedia.php on line 904

    ubiq00
    Participant

    @mercime I’ve contacted the hosting company, and they’ll return in no time.
    BTW, I happen to turn on debugging option in wp-config.php, and tried to go to my site.
    Then, I’ve got this message on the top of home page.

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init().

    I guess this relates to the problem…But I don’t know where to look at and fix it.
    What do you think?

    #183051
    shanebp
    Moderator

    Are you using a custom activation page?

    >Notice: bp_setup_current_user was called incorrectly.

    That can be a tricky one to solve. It means it was called too early in the load order.

    >Fatal error: Call to undefined function bp_xprofile_create_field_type()

    That means it was called before BP is loaded or is called on a non-BP page.

    I suspect one of your plugins is causing this ( might be the theme ).
    Try turning off your plugins one at a time.
    The fact that it’s bp_xprofile_create_field_type() hints that it’s profile related.

    If that doesn’t identify the culprit, try switching themes.

    Then you’ll have to contact the creator and submit a bug report.
    Or hire somebody to fix it for you.

    cyndimarie
    Participant

    I am trying to fix my user activation page (see this forum post). Here are the errors on the site in debug mode:

    Error shown throughout site:

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /var/www/vhosts/thesitename.com/www/wp-includes/functions.php on line 3245

    Errors shown on Activation page (after user registers they are sent an email with an activation link, they click on it and are sent to this page. The page should have content, but for some reason it is completely blank):

    Notice: update_user_meta( $user_id, ‘last_activity’ ) was called incorrectly. User last_activity data is no longer stored in usermeta. Use bp_update_user_last_activity() instead. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/vhosts/thesitename.com/www/wp-includes/functions.php on line 3245

    Notice: get_user_meta( $user_id, ‘last_activity’ ) was called incorrectly. User last_activity data is no longer stored in usermeta. Use bp_get_user_last_activity() instead. Please see Debugging in WordPress for more information. (This message was added in version 2.0.0.) in /var/www/vhosts/thesitename.com/www/wp-includes/functions.php on line 3245

    Fatal error: Call to undefined function bp_xprofile_create_field_type() in /var/www/vhosts/thesitename.com/www/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php on line 560

    Any help would be appreciated πŸ™‚

    shanebp
    Moderator

    4 times – yikes.

    That suggests maybe 4 plugins are calling bp_setup_current_user too soon.
    Or …

    Do any of your plugins create widgets? Might explain the multiple calls.

    Instead of deactivating plugins one at a time, have you tried greping the plugins folder for bp_setup_current_user ?

    If you find it, check to see which hook is calling it.
    ‘bp_include’ is the recommended hook.

    My debug.log is showing thousands of entries, all the same:

    bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in .../html/wp-includes/functions.php on line 3049 and also starting with bbp_setup_current_user was called incorrectly. Always together, and repeated thousands of times.

    Before I begin the arduous process of going through the usual plugin and theme troubleshooting, has anyone else come across this and found a fix?

    Cheers

    #173754
    isi2008
    Participant

    Hi all,

    I have a little problem with my WP and BP installation.
    I can login to WP but I cant login to buddypress (default theme)
    In debug mode I have this errors:

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home/staff/ks/wpfant/public_html/wordpress/wp-includes/functions.php on line 3060

    I have BP 1.8.1 and WP 3.7.1

    Can you hepl me?

    Thanks a lot.

    #167425

    In reply to: Debug

    shanebp
    Moderator

    >it is conflicting with other plugin

    What other plugin ?
    Deactivate that plugin. Does the Notice disappear?

    That notice means that something, probably a plugin, is calling bp_setup_current_user too early.
    But it’s just a Notice, not an Error.
    So it may not be the source of the problem you’re having.

    #167418
    chriscourselle
    Participant

    On my production site i am running 1.7.2 it is conflicting with other plugin so i ran a debug and i am get:
    [02-Jul-2013 14:02:06 UTC] PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in C:\xampp\htdocs\1\wp-includes\functions.php on line 2986

    How can i fix this? I am also get the same with the new beta 1.8.

    lucop1
    Participant

    It was a bbPress error. Now fixed with the 2.4 version!

    So the topic status is SOLVED!

    Thank you Shane!!

    shanebp
    Moderator

    Courtesy of boone:

    Use `var_dump(debug_backtrace());` to see how things were loaded.
    Then comb thru the dump to see which plugin is generating the notice.

    Renato Alves
    Moderator

    Same here! πŸ™

    lucop1
    Participant

    Hi,

    after upgrading from 1.6.5 to 1.7 I get this error constantly on each page and widget
    also in the wp-admin area..

    `Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /var/www/vhosts/xxxxxx.it/xxxxxx.it/wp-includes/functions.php on line 2960`

    how can i fix it?

    #154663
    danbpfr
    Participant

    thanks @sbrajesh

    i’m working on the translation, not coding actually. πŸ˜‰

    I just wonder on this new message and the comments:

    function bp_setup_current_user() {

    // If the current user is being setup before the “init” action has fired,
    // strange (and difficult to debug) role/capability issues will occur.

    Is this message viewed by the user on front-end ? Or only in the admin ?

    And if roles/caps will occur, the super-admi is also affected i guess. I presume this was tested by the devs, so advice about what kind of incident this can give would be great to know.

    Antonio
    Member

    Please see the code at bp-loader.php#471 (revision 6058).

    The methods that are attached to the hooks bp_setup_current_user, bp_register_post_types, etc… do not exist.

    Maybe I don’t understand something?

Viewing 18 results - 51 through 68 (of 68 total)
Skip to toolbar