Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9516 closed defect (bug) (fixed)

incorrect path in wp.getUsersBlogs used in xmlrpc

Reported by: midnightoker's profile MidnighToker Owned by: josephscott's profile josephscott
Milestone: 2.7.2 Priority: high
Severity: normal Version: 2.7.1
Component: XML-RPC Keywords: has-patch
Focuses: Cc:


I believe I have found a bug, whereby the string xmlrpc_url returned by wp.getUsersBlogs is incorrect.

I have wordpress 2.7.1 installed to

I have moved the index.php file into and changed the appropriate settings as documented here (

In General Settings, Wordpress Address (URL) is set to "", Blog URL is set to "".

So far, everything seems to be set up OK.
If I visit it reports the paths to the xmlrpc.php file correctly, as it does for the link in my index.php (<link rel="pingback" href="" />)

When I try to connect to my blog from this new client I'm using (wpToGo on Android), its failing to connect.

After some major debugging with the developer, it seems that the app is at first making a correct connection to /wordpress/xmlrpc.php and getting data back, but is then trying to access /xmlrpc.php (which obviously doesn't exist).

After packet sniffing the connection, it seems that wp.getUserBlogs is returning the wrong path for the xmlrpc.php file:

POST /wordpress/xmlrpc.php HTTP/1.1

Content-Type: text/xml

Content-Length: 217


Connection: Keep-Alive

User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)

<?xml version='1.0' ?><methodCall><methodName>wp.getUsersBlogs</methodName><params><param><value><string>thisismyusername</string></value></param><param><value><string>thisismypassword</string></value></param></params></methodCall>HTTP/1.1 200 OK

Date: Sat, 11 Apr 2009 21:20:12 GMT

Server: Apache

Connection: close

Content-Length: 645

Content-Type: text/xml

<?xml version="1.0"?>











If I change line 1596 of xmlrpc.php, replacing 'home' with 'siteurl' it all seems to work fine -though I don't know how much damage this bodge will cause.

'xmlrpc' => get_option('siteurl') . '/xmlrpc.php', //s/home/siteurl

Your time is appreciated.


Attachments (2)

9516.diff (420 bytes) - added by ryan 15 years ago.
xmlrpc.php.diff (684 bytes) - added by josephscott 15 years ago.

Download all attachments as: .zip

Change History (6)

#1 @DD32
15 years ago

  • Keywords has-patch added
  • Milestone changed from Unassigned to 2.7.2

Due to it only being a 1-line change, marking as has-patch

That change seems like it would be the correct way to go.

15 years ago

#2 @josephscott
15 years ago

Updated patch that fixes this for both wp.getUsersBlogs and blogger.getUsersBlogs, which made it work under the conditions I was testing.

#3 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10932]) Fix path to xmlrpc. Props MidnighToker. fixes #9516

#4 @ryan
15 years ago

(In [10933]) Fix path to xmlrpc. Props MidnighToker. fixes #9516

Note: See TracTickets for help on using tickets.