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 is not returning error code and description in case of receiving a faulty message back from the called xmlrpc server.
I've tested that in my system and found out that the following line of _xmlrpc:
if ($message->messagetype == 'fault') {
xmlrpc_error($message->faultcode, $message->faultstring);
needs to be replaced by
if ($message->messagetype == 'fault') {
xmlrpc_error($message->fault_code, $message->fault_string);
Hope this helps!
.L.
Comment | File | Size | Author |
---|---|---|---|
#1 | xmlrpc_7.patch | 604 bytes | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedComment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD, DRUPAL-4-5 and DRUPAL-4-6. Thanks.
Comment #3
(not verified) CreditAttribution: commented