#3308 closed defect (bug) (worksforme)
Change Password broken
Reported by: | svenl77 | Owned by: | |
---|---|---|---|
Milestone: | 1.2.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
I guess there is a bug in the bp-core-settings.php on line 40
If I try to change the password in my profile under settings, I get the following error:
Warning: require_once(wp-includes/registration.php) [function.require-once]: failed to open stream: No such file or directory in /data/wwwcust/sv3-316/html/wp-content/plugins/buddypress/bp-core/bp-core-settings.php on line 40
Fatal error: require_once() [function.require]: Failed opening required 'wp-includes/registration.php' (include_path='/usr/local/lib/php') in /data/wwwcust/sv3-316/html/wp-content/plugins/buddypress/bp-core/bp-core-settings.php on line 40
In the bp-core-settings on line 40 is a require_once( WPINC . '/registration.php' );
WPINC gives you back 'wp-includes' which is not the relative path to the registration.php. For this there needs to be an ABSPATH before the WPINC.
If I change it to require_once( ABSPATH . WPINC . '/registration.php' ); it's working correctly.
Works for me on trunk r4730; looks like this is something we've already caught.