[wp-trac] [WordPress Trac] #29698: blogger.getUsersBlogs XML-RPC method returns an empty array
WordPress Trac
noreply at wordpress.org
Thu Sep 18 19:45:13 UTC 2014
#29698: blogger.getUsersBlogs XML-RPC method returns an empty array
--------------------------+------------------------------
Reporter: tom103 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.9.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by redsweater):
I tested this against a trunk installation of WordPress with multisite
enabled, and I don't see the same issue. I would recommend that tom103
check for PHP errors on the server side to see if there are any clues
about why this particular WordPress installation is not working as
expected. Perhaps it's a peculiarity of the hosting environment or of
specific plugins installed?
If others want to test this quickly against a multisite enabled blog a
quick way to do so is to take tom103's blogger.getUsersBlogs example xml
cargo, edit it to reflect the credentials of a user who owns multiple
blogs on the server, and use curl from the command line to post it to the
API endpoint URL. For example, the results of my tests doing this against
trunk WP:
% curl -i --data @./pd http://blogtesting/wptrunk/xmlrpc.php
HTTP/1.1 200 OK
Date: Thu, 18 Sep 2014 19:40:58 GMT
Server: Apache/2.0.64 (Unix) PHP/5.3.5 DAV/2 mod_ssl/2.0.64 OpenSSL/0.9.7l
X-Powered-By: PHP/5.3.5
Connection: close
Content-Length: 1641
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<array><data>
<value><struct>
<member><name>isAdmin</name><value><boolean>1</boolean></value></member>
<member><name>url</name><value><string>http://blogtesting/wptrunk/</string></value></member>
<member><name>blogid</name><value><string>1</string></value></member>
<member><name>blogName</name><value><string>WPTrunk</string></value></member>
<member><name>xmlrpc</name><value><string>https://blogtesting/wptrunk/xmlrpc.php</string></value></member>
</struct></value>
<value><struct>
<member><name>isAdmin</name><value><boolean>1</boolean></value></member>
<member><name>url</name><value><string>http://127.0.0.1/wptrunk/testprivate/</string></value></member>
<member><name>blogid</name><value><string>2</string></value></member>
<member><name>blogName</name><value><string>Testing private
Site</string></value></member>
<member><name>xmlrpc</name><value><string>https://127.0.0.1/wptrunk/testprivate/xmlrpc.php</string></value></member>
</struct></value>
<value><struct>
<member><name>isAdmin</name><value><boolean>1</boolean></value></member>
<member><name>url</name><value><string>http://blogtesting/wptrunk/nodaniel/</string></value></member>
<member><name>blogid</name><value><string>4</string></value></member>
<member><name>blogName</name><value><string>Test
Site</string></value></member>
<member><name>xmlrpc</name><value><string>https://blogtesting/wptrunk/nodaniel/xmlrpc.php</string></value></member>
</struct></value>
</data></array>
</value>
</param>
</params>
</methodResponse>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29698#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list