Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Group forums working yet not working


Burt Adsit
Participant

@burtadsit

@wardeh, bearuser

I’m having the same problems. The forums aren’t getting created because bp tries to go verify and get an url to use from bbpress. bbpress is reporting 404 for me when bp (actually mu) tries to get that url from bbpress. It’s the url in group forums admin screen.

On a dev machine I’ve got running everything works fine. On the live server it doesn’t because of that. Still trying to debug it. If anyone wants to lend a different perspective the failure is in:

function discover_pingback_server_uri($url, $deprecated = 2048) {

$pingback_str_dquote = 'rel="pingback"';

$pingback_str_squote = 'rel='pingback'';

/** @todo Should use Filter Extension or custom preg_match instead. */

$parsed_url = parse_url($url);

if ( ! isset( $parsed_url ) ) // Not an URL. This should never happen.

return false;

$response = wp_remote_get( $url, array( 'timeout' => 2, 'httpversion' => '1.1' ) );

if ( is_wp_error( $response ) )

return false;

if ( isset( $response ) )

return $response;

// Not an (x)html, sgml, or xml page, no use going further.

if ( isset( $response ) && preg_match('#(image|audio|video|model)/#is', $response) )

return false;

$contents = $response;

[snip] and other junk beyond that…

That lives in /wp-includes/comment.php

The param $url is fine. It’s what is in the group forums admin screen. The point of failure is when it gets a $response back from wp_remote_get(). It gets 404. So functions higher up the food chain that eventually call this think that there isn’t a ‘pingback server uri’. So nothing happens. No forum creation. No forum, no topics. No nothing.

That’s as far as I’ve gotten with this. Usually explaining it makes it clearer but not this time. Gotta go delve into bbpress and see why it’s returning 404 for a simple ‘gimme the header and your html for the url where you live’.

Skip to toolbar