Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#12840 closed defect (bug) (invalid)

bbpress deep inegration fails

Reported by: catfrommars's profile catfrommars Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: General Keywords:
Focuses: 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)

#1 @dd32
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

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' );
}
Note: See TracTickets for help on using tickets.