Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function xmlrpc_server():
The following code expects an object with an is_error
if ($result->is_error) {
xmlrpc_server_error($result);
}
I constructed a service to return a single string and $result is a string, not an object. From what I can see of the code, $result could also be an object with no is_error. To make the code work, I changed the xmlrpc_server test to:
if (is_object($result) and isset($result->is_error) and $result->is_error) {
Is this an error in xmlrpc_server or is there something magic we have to put in the function called in xmlrpc_server?
Comments
Comment #1
dpearcefl CreditAttribution: dpearcefl commentedIs this still an issue using current Drupal 6?