Skip to:
Content
Pages
Categories
Search
Top
Bottom

user called incorrectly


  • themakeupchair
    Participant

    @themakeupchair

    Hi
    The notice below pops up when I activate BuddyPress. The theme creators recommend installing BuddyPress.

    Wordpress: 4.5.3
    PHP version: 5.6
    BuddyPress version: 2.6.1.1
    Theme: Rehab child theme – Revendor
    Plugins: ManagerWP-worker. I have disabled all other plugins but still get the same message on activation.

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). === Trace: #6 /home/themakeu/public_html/dv/wp-content/themes/rehub/functions/user_review_functions.php(82): is_user_logged_in() #7 /home/themakeu/public_html/dv/wp-content/themes/rehub/functions.php(811): include(‘/home/themakeu/…’) #8 /home/themakeu/public_html/dv/wp-settings.php(369): include(‘/home/themakeu/…’) #9 /home/themakeu/public_html/dv/wp-config.php(89): require_once(‘/home/themakeu/…’) #10 /home/themakeu/public_html/dv/wp-load.php(37): require_once(‘/home/themakeu/…’) #11 /home/themakeu/public_html/dv/wp-admin/admin.php(31): require_once(‘/home/themakeu/…’) #12 /home/themakeu/public_html/dv/wp-admin/options-permalink.php(10): require_once(‘/home/themakeu/…’) #13 {main} === Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home/themakeu/public_html/dv/wp-includes/functions.php on line 3897

    Warning: Cannot modify header information – headers already sent by (output started at /home/themakeu/public_html/dv/wp-includes/functions.php:3897) in /home/themakeu/public_html/dv/wp-includes/pluggable.php on line 1167

    Thanks for your help.

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

  • r-a-y
    Keymaster

    @r-a-y

    The debug notice is telling you that the problem is with the rehub theme.

    The rehub theme is calling is_user_logged_in() too early. They should preferably make their login user checks on the 'init' hook. Pass this info to the rehub theme author.

    If you’re seeing these notices on a production site, you can turn off these notices by setting WP_DEBUG to false in wp-config.php.


    themakeupchair
    Participant

    @themakeupchair

    Thank you for your help.


    GaryLeGrill
    Participant

    @garylegrill

    Thanks too


    GaryLeGrill
    Participant

    @garylegrill

    OK I fixed a part of the problem with an other post.

    But I don’t find for this error.

    call_user_func_array() expects parameter 1 to be a valid callback, function ‘bp_admin’ not found or invalid function name in <b>/homepages/4/d175616519/htdocs/mywebsite/wp-includes/plugin.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar