The MU forums have moved to

2.7 wp_remote_get() failing with 404 on valid url (4 posts)

  1. burtadsit
    Posted 15 years ago #

    Howdy. I've got a buddypress, mu and bbpress site. buddypress is trying to access some forums in bbpress thru xmlrpc. Essentially sambauer's bbpress_live widget is being used. My problem is that the connection between buddypress and bbpress is failing for some reason unknown to me.

    Here's the sequence of things going on.

    buddypress wants to do some stuff in the bbpress forums so a bbpress_Live_Fetch obj is instantiated and the constructor is called. The constructor, since it's purpose is to fetch something, tries to setup a connection between buddypress and bbpress through one of it's member functions set_endpoint().

    With me so far? We haven't gotten to the problem yet.

    set_endpoint() makes a call to a function in /wp-content/comment.php called discover_pingback_server_uri(). That function's purpose is to do exotic stuff finding a 'pingback server uri' for the passed uri.

    I don't know what that is and don't really care. I do care that the workhorse part of that function is actually a call to a new 2.7 function that goes out and GETs what is located at the url in question. When it GETs the goop back from that url, it parses it and returns a ping back server uri.

    However, the function that it uses to GET goop from the passed url always returns 404 when looking for my bbpress url. It does exist.

    The function wp_remote_get() when passed a valid url for bbpress such as '' returns 404.

    Here's the maddening part. It works on a windows development server but not on the live linux server. Same code, same .htaccess files, essentially the same httpd.conf file. Different vers of apache and php though.

    Why would wp_remote_get() return 404 for a valid url? wp_remote_get() and it's brethren seem to be new in mu 2.7.

    wpmu 2.7 r1574 is what I got runnin'

  2. bloggus
    Posted 15 years ago #

    Well as you see the wpmu 2.7 is only in the trunk and far from a steable and ready version .... so why use it??

  3. burtadsit
    Posted 15 years ago #

    Well, I sorta hafta gotta. :) buddypress, mu and bbpress together are the best thing since sliced bread.

    Seriously, buddypress has some features I need for my site and the latest ver of buddypress's feature set means I have to run trunk everywhere.

    I'm getting used to it.

  4. lokers
    Posted 14 years ago #

    did you find out what was causing a problem?
    Funny, I am going exactly the same way as you and I've stopped here doing a search for "wp_remote_get()" function

    I don't know, it might something with a server maybe? It's kinda weird trying to connect to the same server but thru http request. I was trying localhost and IP etc but it didn't work. Maybe I should add the domain to the "hosts" file (like on windows)?

About this Topic

  • Started 15 years ago by burtadsit
  • Latest reply from lokers