The module was working as expected on my testing server but when I moved to my production server I began getting an error when calling www.mysite.com/xmlrpc.php or www.mysite.com/services/xmlrpc
Turns out it was the call to return array_merge($defaults, $callbacks); on line 35 of xmlrpc_server.module. Maybe it is the level of error reporting my host has set for php but it became very cranky about $defaults not being defined.
I fixed it by changing
return array_merge($defaults, $callbacks);
to
if(is_array($defaults)){
return array_merge($defaults, $callbacks);
}else{
return $callbacks;
}
Not sure if this is the most elegant solution but it is working for me thus-far.
Comments
Comment #1
snelson commented$defaults didn't even need to be there anymore, so I just took it out. Committed.
Comment #2
(not verified) commented