Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need help identifying errors found in debug mode


  • cyndimarie
    Participant

    @cyndimarie

    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 🙂

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

  • cyndimarie
    Participant

    @cyndimarie

    Looks like the fatal error is most likely causing the issue:

    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

    Anyone know how to fix this?


    shanebp
    Moderator

    @shanebp

    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

    @cyndimarie

    I fixed the fatal error by enabling Extended Profiles in the buddypress settings. I had it disabled since I only needed very basic member functionality. And now the activation page works great.
    Thanks for the help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need help identifying errors found in debug mode’ is closed to new replies.
Skip to toolbar