In xmlrpctester.remote.inc, line 131 says: if($error->is_error), but if everything was ok during the xmlrpc() call, $error is NULL causing the above notice message.

Comments

zserno’s picture

StatusFileSize
new546 bytes

Attached patch fixes this little issue, however I'm not sure that's the most elegant solution.
Thanks for this neat module, it came quite handy for me. :)

zserno’s picture

StatusFileSize
new103.21 KB

Here's a screenshot of the issue while trying to test system.listMethods.

snufkin’s picture

Would that not throw an error still? Since it still tests for $error->is_error. How about this:

$error = xmlrpc_error();
if (!is_null($error)) {
  if (isset($error->is_error)) {
  }
}
zserno’s picture

Would that not throw an error still? Since it still tests for $error->is_error.

PHP interpreter starts evaluation from left to right so if any of the AND condition is FALSE it stops further examination, that's why it works.
Nevertheless I vote for your solution.

zserno’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

Rolled into a proper patch.

snufkin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.