Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bp_setup_current_user'

Viewing 25 results - 26 through 50 (of 68 total)
  • Author
    Search Results
  • #246894
    danbp
    Participant

    Hi,

    no idea what happen to your install, but read here some advice:
    https://buddypress.org/support/topic/debug-error-bp_setup_current_user-was-called-incorrectly/

    #246881
    Juljan.By
    Participant

    Hello. Im using default wp theme (Twenty Fifteen) and default BuddyPress plugin.

    I got a warning:

    "Notice: bp_setup_current_user was called incorrectly. The current user is being initialised 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 3622"

    Yep. I have “WP_DEBUG” constant as TRUE (it’s my dev environment).
    What is wrong here? Is it bug?

    The warning disappears when i remove the 36 line from the file “bp-core-actions.php”
    add_action( 'set_current_user', 'bp_setup_current_user', 10 );
    wp-content/plugins/buddypress/bp-core/bp-core-actions.php:36

    It seems, that plugin’s authors are using some dirty code.

    PS I cannot add a bug report on the page https://buddypress.trac.wordpress.org/. I click “login” link, but the page reloaded without changes. This plugin make me sad unfortunatly.

    ikanaspencer
    Participant

    I am using petsitter theme. I did switch to Twenty Fifteen and verified the issue there.

    Enabling BuddyPress causes several issues.

    1. Custom Taxonomy Pages do not populate the page with values that are added (Refreshing the page shows the value is actually added)
    2. Custom Taxonomy Pages do not delete values when we click delete they turn red stay in place and we get “An unspecified error has occurred” (refreshing the page shows the value is actually deleted)
    3. We get this annoying error ” 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/mtj/wp-includes/functions.php on line 3622″

    Our site is currently located at http://mytribaljob.com

    1. Which version of WordPress are you running?
    4.3.1
    2. Did you install WordPress as a directory or subdomain install?
    Directory
    3. If a directory install, is it in root or in a subdirectory?
    root
    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    I am not sure but I think I did upgrade from 4.3 but that was sometime ago
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    I created a custom taxonomy and I thought that was the problem, but disabling BuddyPress fixes several issues
    6. Which version of BP are you running?
    2.3.4
    7. Did you upgraded from a previous version of BP? If so, from which version?
    I am not sure we use the auto update feature
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    I turned everything off and toggled just BuddyPress
    9. Are you using the standard WordPress theme or customized theme?
    Petsitter but confirmed with Twenty Fifteen
    10. Have you modified the core files in any way?
    No
    11. Do you have any custom functions in bp-custom.php?
    no
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    Not running this
    13. Please provide a list of any errors in your server’s log files.

    14. Which company provides your hosting?
    DigitalOcean
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Linux Ubuntu 14.0.4.3, Apache, MySQL (We tested MariaDB on our development server and I dont think I saw this issue at that time.

    #245434
    shanebp
    Moderator

    Asked and answered many times.

    If you’ve turned off all plugins and are using a WP like 2015, you should not see the warning.
    Then use your theme.
    Then start turning on plugins, one at a time.

    #245433
    hektech – spencer
    Participant

    I am getting the following message.
    I have updated the wordpress install with a new download. I have updated buddypress also with a new download. I have every other plugin disabled and have narrowed the error down to buddypress. Also clicking the support link in the dashboard has an extra p in support so we are sent to a 404 located at http://buddypress.org/suppport/

    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/wp-includes/functions.php on line 3622
    Skip to main content
    Skip to toolbar

    Notice: get_user_id_from_string is deprecated since version 3.6! Use get_user_by() instead. in /var/www/wp-includes/functions.php on line 3406

    1. WordPress 4.3.1

    2. Directory

    3. It is in the Document root for the server /var/www

    4. This is a very fresh install, and was not from a major upgrade.

    5. Getting error message and link to support is not working.

    6. 2.3.4 is the version of buddypress I am running

    7. This is not an upgrade of buddypress it is a fresh install

    8. I have several other plugins installed and activated right now, however I have tried disabling them all and running buddypress as the only plugin. but here is the list incase it helps:

    BadgeOS
    BadgeOS Community Add-on
    bbPress
    BP Registration Options
    BuddyPress
    CloudFlare
    Contact Form 7
    Contact Form 7 Multi-Step Forms
    Contact Form DB
    Custom Post Type UI
    Members
    Paid Memberships Pro
    Posts 2 Posts
    Revolution Slider
    WP Super Cache

    9. I am using a theme called AccessPress Pro from AccessPressThemes.com however I have tried deactivating and using the tweentyfourteen theme

    10. Never touched the core

    11. I have not added custom functions to the bp-custom.php but plan to do so. I do not know if one of the installed plugins may have done so.

    12. no bbpress
    13.

    14. Local Dev server

    15. Linux Ubuntu With Apache

    eureka345
    Participant

    I am getting the following error showing up in my logs

    [error] [pid 4745] mod_proxy_fcgi.c(666): AH01071: Got error ‘PHP message: 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 /wp-includes/functions.php on line 3622\n’

    I have disabled every plugin except for BuddyPress

    I have reverted to TwentyFifteen theme

    Still getting the errors every time I load any page on the dashboard.

    Any thoughts?

    #245370
    shanebp
    Moderator

    1st issue: a plugin is calling bp_setup_current_user too soon – using a hook that fires before BP is ready. This can be tricky to track down.

    2nd issue: All the links look correct. It’s probably an issue in your custom theme. To confirm, try switching to a WP theme like 2015.

    #245366
    robert198222
    Participant

    Hi,
    I use a custom theme. wordpress 4.3.1, and now I installed buddypress 2.3.4.
    The buddypress pages weren’t created for some reason (“Membership – Anyone can register” was turned on when installing buddypress). I created the pages manually and assocciated them in buddypress settings (registrate, activate, activity stream, members).

    First of, when activating Buddypress plugin then this error (same kind of error occour everytime I visit any page in admin when buddypress is activated, so it doesn’t appear just on activiating the buddyress plugin, the error doesn’t occour when buddypress is deactivated):

    2015/10/12 13:24:37 [error] 23074#0: *3 FastCGI sent in stderr: “PHP message: 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 /my/path/to/html/wp-includes/functions.php on line 3622″ while reading response header from upstream, client: my.computers.ip.number, server: mywebpage.com, request: “GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “my.host.ip.address”, referrer: “http://myserver.com/wp-admin/plugins.php?plugin_status=all&paged=1&s”

    Second issue is the frontend links, none of them work correctly, all links direct me to my users recent blog posts. The links in the URL look like this:
    mywebpage.com/members/myusername/
    mywebpage.com/members/myusername/friends/
    mywebpage.com/members/myusername/messages/
    mywebpage.com/members/myusername/notifications/
    mywebpage.com/members/myusername/profile/
    mywebpage.com/members/myusername/settings/

    “Log out” link works! when pressing the log out link I am logged out and redirected to /wp-admin/, on that page I have a message where it says: “You must log in to access the page you requested.”. It’s pretty logical that you need to be loged in to be able to access log out page, isn’t it?

    For the links to work properly I guess I have to copy some of the buddypress files to my custom theme in wp-content/themes/mycustomtheme, but what do I need to copy?

    /Robert

    mycru.io
    Participant

    @djsteveb

    – I disabled buddypress-social-icons & mycred
    But it is still not working. Debug Log still shows this:
    (happening on a desktop computer). I checked: the media that was attached ends up in the media library, but why is it not showing in the activity feed ?

    [03-Aug-2015 21:40:49 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391
    [03-Aug-2015 21:40:50 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 /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560
    [03-Aug-2015 21:40:51 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 /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560

    mycru.io
    Participant

    can someone please help me and explain me what this means:

    [03-Aug-2015 19:47:05 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 /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560

    [03-Aug-2015 19:47:06 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391

    mycru.io
    Participant

    Hi since 2 days people can’t upload activity updates with attached media anymore.

    I found something in the debug.log. Someone an idea ? What does it mean ? Anyone else having this problem ? ( as admin I can upload btw)

    [03-Aug-2015 10:25:11 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391
    [03-Aug-2015 10:25:11 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391
    [03-Aug-2015 10:25:12 UTC] PHP Notice: Undefined variable: fbcj_members_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 11
    [03-Aug-2015 10:25:12 UTC] PHP Notice: Undefined variable: fbcj_group_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 28
    [03-Aug-2015 10:25:12 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 /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560
    [03-Aug-2015 10:25:12 UTC] PHP Strict Standards: Declaration of myCRED_Notifications::after_general_settings() should be compatible with myCRED_Module::after_general_settings($mycred) in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/mycred-notice-plus/mycred-notice-plus.php on line 203
    [03-Aug-2015 10:25:13 UTC] PHP Notice: Undefined variable: fbcj_members_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 11
    [03-Aug-2015 10:25:13 UTC] PHP Notice: Undefined variable: fbcj_group_extension_check in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/buddypress-social-icons/buddypress-social-icons.php on line 28
    [03-Aug-2015 10:25:13 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 /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3560
    [03-Aug-2015 10:25:13 UTC] PHP Strict Standards: Declaration of myCRED_Notifications::after_general_settings() should be compatible with myCRED_Module::after_general_settings($mycred) in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-content/plugins/mycred-notice-plus/mycred-notice-plus.php on line 203
    [03-Aug-2015 10:25:14 UTC] PHP Notice: bp_core_get_notifications_for_user is deprecated since version 1.9! Use bp_notifications_get_notifications_for_user() instead. in /homepages/26/d553229553/htdocs/clickandbuilds/kawaii/wp-includes/functions.php on line 3391

    #242100
    Whiskyharry
    Participant

    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/content/p3pnexwpnas09_data02/13/2711613/html/wp-includes/functions.php on line 3560

    trigger_error( sprintf( __( ‘%1$s was called incorrectly. %2$s %3$s’ ), $function, $message, $version ) );

    Can anybody tell me how I can fix that error?

    badcom
    Participant

    Hello,

    I’m getting the below error when trying to access my woocommerce home page:

    Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in ../wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28

    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../wp-includes/functions.php on line 3560

    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 ../wp-includes/functions.php on line 3560

    Notice: Use of undefined constant ATT_REQ – assumed ‘ATT_REQ’ in ../wp-content/plugins/wplms-assignments/includes/assignments.php on line 148

    Notice: Undefined variable: metabox_settings in ../wp-content/plugins/vibe-customtypes/custom_meta_boxes.php on line 978

    Please help!

    [Mod edit: server path removed for security reason]

    Quinn Goldwin
    Participant

    after I updated to the latest buddypress I have over 4 plugins throwing this error. I opened tickets to all plugin developers but they are taking their sweet time getting back to me.

    Can someone explain to me what code I have to change to fix this error? what strings of code am I searching for and what do I need to replace it with? Any help would be greatly appreciated. Of course they are on plugins that have great functionality like

    Buddyboss Global Search (really important and useful, I would like to have this working asap)
    BP You are Blocked
    Buddypress Edit activity

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

    #239577
    danbp
    Participant

    Don’t know what you’re doing. The link doesn’t help.
    Or you publish your work as asked previously, or you ask on oauth plugin support or on the service support you try to connect… That’s not a BP issue

    Aside you have some errors on city4run.co

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

    Notice: Undefined index: WPOA wp-content/plugins/wp-oauth/wp-oauth.php on line 306

    You incorrectly use index.php there. Make your base install (wp/bp) work correctly first.

    #237846

    In reply to: Warning of Buddypress

    jookkoo
    Participant

    Hello.

    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 ……/wp-includes/functions.php on line 3547

    Please help

    Svend Rugaard
    Participant

    I have now try a diffrent approach to make a clean install and use debug mode just to make sure also all the themes change i have make the last year wasnt make this error happen it give me these errors on member page with debug on :

    Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /home/www/area51.ps3geeks.dk/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28
    
    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/www/area51.ps3geeks.dk/wp-includes/functions.php on line 3547
    
    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/www/area51.ps3geeks.dk/wp-includes/functions.php on line 3547
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/area51.ps3geeks.dk/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php:28) in /home/www/area51.ps3geeks.dk/wp-includes/pluggable.php on line 1178

    Some of them even show as “Solved” on google search but obviosly they aint solved.

    Svend Rugaard
    Participant

    Okay now i have try to make a complete mirror on my site it gives me this error with dedub on

    Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /home/www/area51.playstationforum.dk/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28
    
    Notice: bbp_setup_current_user er kaldt forkert. The current user is being initialized without using $wp->init(). Se Fejlsøgning i WordPress for at finde flere oplysninger. (Denne meddelelse blev tilføjet i version 2.3). in /home/www/area51.playstationforum.dk/wp-includes/functions.php on line 3547
    
    Notice: bp_setup_current_user er kaldt forkert. The current user is being initialized without using $wp->init(). Se Fejlsøgning i WordPress for at finde flere oplysninger. (Denne meddelelse blev tilføjet i version 1.7). in /home/www/area51.playstationforum.dk/wp-includes/functions.php on line 3547
    #234858
    fwu
    Participant

    hello,

    I have a wordpress theme that currently doesnt support buddypress. I say it doesnt support because buddypress doesnt comes in the theme compatibility list. I installed buddypress with that theme and Im trying to give this theme support for buddypress.

    if I open mysite/activity or mysite/members Im not able to see nothing, only my site header and footer. I only get these warnings:

    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/test/public_html/testingsite/wp-includes/functions.php on line 3547

    Warning: Cannot modify header information – headers already sent by (output started at /home/test/public_html/testingsite/wp-includes/functions.php:3547) in /home/test/public_html/testingsite/wp-includes/pluggable.php on line 1178

    If I switch theme to twenty forteen for instance, buddypress works, fine.

    I was expecting to make some styling work to integrate buddypress, but it seems there is something more to be done. Is this a normal situation? What can be done?

    thank you

    #233389

    Topic: Hi

    polochon3
    Participant

    Hello,

    I installed on my wordpress Query Monitor and finds me the following php errors.

    bp_add_rewrite_tags 5 BuddyPress->add_rewrite_tags()
    Error: Method BuddyPress::add_rewrite_tags() does not exist

    bp_setup_current_user 5 BuddyPress->setup_current_user()
    Error: Method BuddyPress::setup_current_user() does not exist

    I understand nothing.

    sincerely
    TB

    #231724
    John Clause
    Participant

    It might have been already reported to you, I would like to post another vote to get rid of the following message:

    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 /wp-includes/functions.php on line 3547

    which starts showing up when BuddyPress is activated and WP_DEBUG is on in /wp-config.php. It does not seem to break functionality of BuddyPress, but it is very annoying, when one tries to debug other stuff.

    Thank you very much.

    imdreamer
    Participant

    Hello

    this is my first time to install buddypress, my WP is 3.9.1

    in back end, buddypress is newest version which showed this following message, how can i solve this problem ?

    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/mysite.com/wp-includes/functions.php on line 3245

    thanks a lot

    #227953
    kitchin
    Participant

    More fun with “bp_setup_current_user was called incorrectly.” I tracked it down to the plugin Buddypress Wall in our site. See: https://wordpress.org/support/topic/dashboard-warning-and-fix-bp_setup_current_user

    #222370
    danbp
    Participant

    hi @gatera,

    It’s only a PHP notice, and harmless in regard of a PHP Warning message. Apparently, your plugin is not completely compatible with BuddyPress or at least called to early or something like that.

    You must debug your install.
    https://codex.wordpress.org/Debugging_in_WordPress

    More about bp_setup_current_user function
    https://buddypress.org/support/topic/debug-error-bp_setup_current_user-was-called-incorrectly/?view=all#post-186116
    https://buddypress.trac.wordpress.org/ticket/4830

    File ref: buddypress/bp-core/bp-core-dependency.php
    Documented function: http://oik-plugins.eu/buddypress-a2z/oik_api/bp_setup_current_user/

    #222363
    Gatera
    Participant

    Hi,

    Whenever I activate the ‘remove dashboard access’ plugin, I get this error message

    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 /Applications/MAMP/htdocs/knight/wp-includes/functions.php on line 3370

Viewing 25 results - 26 through 50 (of 68 total)
Skip to toolbar