[wp-xmlrpc] Have you seen this before? wp.getOptions() is executing, but returning no values

Dan Green dan at bringtheblog.com
Wed Jan 6 15:06:02 UTC 2010


Weird issue. I think it's server-related, but I want to make sure.

I use XML-RPC to post content to several hundred blogs. On 95% of my 
target blogs, the wp.getOptions() function works. However, on a few 
sites, wp.getOptions() only *some* of the expected values. I have 
double- and triple-checked -- URL, username and password parameters are 
correct. Furthermore, getLastError() is throwing a "0".

This is a print_r of the getOptions() array when the wp.getOptions() fails.

stdClass Object ( [software_name] => Array ( [desc] => Software Name 
[readonly] => 1 [value] => WordPress ) [software_version] => Array ( 
[desc] => Software Version [readonly] => 1 [value] => 2.9 ) [blog_url] 
=> Array ( [desc] => Blog URL [readonly] => 1 [value] => 
http://www.mysite.com ) [time_zone] => Array ( [desc] => Time Zone 
[readonly] => [value] => -7 ) [blog_title] => Array ( [desc] => Blog 
Title [readonly] => [value] => ) [blog_tagline] => Array ( [desc] => 
Blog Tagline [readonly] => [value] => ) [date_format] => Array ( [desc] 
=> Date Format [readonly] => [value] => F j, Y ) [time_format] => Array 
( [desc] => Time Format [readonly] => [value] => g:i A ) 
[users_can_register] => Array ( [desc] => Allow new users to sign up 
[readonly] => [value] => ) )

It's clear that the XML-RPC call is connecting to the remote WordPress 
instance and the instance appears to be properly configured. The failed 
XML-RPC are not limited to a specific WordPress version, either. Some 
fail on WP 2.9 and others fail on 2.8.x.

Have you ever run into something like this? I am sure there’s a logical 
explanation — I just can’t figure it out. And before I start digging 
into somebody else's server configuration, I thought I'd ask the group 
if this is a common issue with a simple work-around.

Thanks for your help,
Dan


More information about the wp-xmlrpc mailing list