Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 5 years ago

#1096 closed enhancement (fixed)

Errors when using define('BP_IGNORE_DEPRECATED', true ); in wp-config.php

Reported by: messenlehner Owned by: messenlehner
Milestone: 1.2 Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

/members/username/
Fatal error: Call to undefined function bp_core_get_userid_from_user_login() in /wp-content/plugins/buddypress/bp-core.php on line 574

/groups/groupname/
Fatal error: Call to undefined function bp_core_add_nav_default() in /wp-content/plugins/buddypress/bp-groups.php on line 263

/groups/groupname/forum/topic/topicname/
Fatal error: Call to undefined function bp_core_add_nav_default() in /wp-content/plugins/buddypress/bp-groups.php on line 263

Attachments (2)

bp-core.diff (583 bytes) - added by messenlehner 12 years ago.
patch for bp-core.php line 574 to not use deprecated function
profile-menu.diff (343 bytes) - added by messenlehner 12 years ago.
patch for /bp-sn-parent/profile/profile-menu.php line 3 to not use deprecated function

Download all attachments as: .zip

Change History (7)

#1 in reply to: ↑ description ; follow-up: @messenlehner
12 years ago

Replying to messenlehner:

/members/username/
Fatal error: Call to undefined function bp_core_get_userid_from_user_login() in /wp-content/plugins/buddypress/bp-core.php on line 574

/groups/groupname/
Fatal error: Call to undefined function bp_core_add_nav_default() in /wp-content/plugins/buddypress/bp-groups.php on line 263

/groups/groupname/forum/topic/topicname/
Fatal error: Call to undefined function bp_core_add_nav_default() in /wp-content/plugins/buddypress/bp-groups.php on line 263

oops nevermind /groups/groupname/forum/topic/topicname/ same error because of /groups/groupname/

#2 in reply to: ↑ 1 @messenlehner
12 years ago

/members/username/
Fatal error: Call to undefined function bp_core_get_userid_from_user_login() in /wp-content/plugins/buddypress/bp-core.php on line 574

/groups/groupname/
Fatal error: Call to undefined function bp_core_add_nav_default() in /wp-content/plugins/buddypress/bp-groups.php on line 263

@messenlehner
12 years ago

patch for bp-core.php line 574 to not use deprecated function

@messenlehner
12 years ago

patch for /bp-sn-parent/profile/profile-menu.php line 3 to not use deprecated function

#3 @messenlehner
12 years ago

  • Owner set to messenlehner
  • Status changed from new to accepted

Submitted two patches for errors that occur at /members/username/

Fatal error: Call to undefined function bp_core_get_userid_from_user_login() in /wp-content/plugins/buddypress/bp-core.php on line 574
Changed:
return apply_filters( 'bp_core_get_displayed_userid', bp_core_get_userid_from_user_login( $user_login ) );
To:
return apply_filters( 'bp_core_get_displayed_userid', bp_core_get_userid( $user_login ) );

Fatal error: Call to undefined function bp_the_avatar() in /bp-sn-parent/profile/profile-menu.php on line 3
Changed:
<?php bp_the_avatar() ?>
To:
<?php bp_displayed_user_avatar('type=full') ?>

#4 @apeatling
12 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [1982]) Fixes #1096 props messenlehner

#5 @DJPaul
5 years ago

  • Type changed from task to enhancement
Note: See TracTickets for help on using tickets.