Opened 3 years ago
Closed 3 years ago
#12840 closed defect (bug) (invalid)
bbpress deep inegration fails
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Deep integration of bbrpess 1.0.2 on WordPress 3.0 Beta 1 fails.
Fatal error: Cannot redeclare _wp_http_get_object() (previously declared in /home1/meincont/public_html/wp-includes/http.php:23) in /home1/meincont/public_html/forum/bb-includes/backpress/class.wp-http.php on line 1889
Error reproduced by using differnet methods for deep integration:
require_once(dirname(FILE) . '/path/to/wp-load.php');
require_once(dirname(FILE) . ‘/../wp-blog-header.php’); (this works fine on wp2.9.3)
Change History (1)
Note: See
TracTickets for help on using
tickets.

This will need to be fixed on the bbPress side.
It'll most likely be checking for the existance of the WP_Http class, In WordPress 3.0 the class is not automatically included.
The class is conditionally included when the functions are called.
bbPress currently uses
/** * Load WP_Http class */ if ( !class_exists( 'WP_Http' ) ) { require_once( BACKPRESS_PATH . 'class.wp-http.php' ); }It'll need to change to something like:
/** * Load WP_Http class */ if ( !function_exists( '_wp_http_get_object' ) ) { require_once( BACKPRESS_PATH . 'class.wp-http.php' ); }