Details
Description
Function mnet_server_fault_xml of mnet/xmlrpc/server.php does not ever log the code and the text of the error.
Therefore it can be very hard to debug...
It's because mnet_server_prepare_response sometimes does nothing (if the request is not signed or not encrypted...).
Here is a very simple fix:
Index: server.php
===================================================================
RCS file: /cvsroot/moodle/moodle/mnet/xmlrpc/server.php,v
retrieving revision 1.10.2.1
diff -u -r1.10.2.1 server.php
— server.php 20 Feb 2007 02:05:31 -0000 1.10.2.1
+++ server.php 20 Jun 2007 12:00:45 -0000
@@ -277,7 +277,7 @@
</methodResponse>');
if (!empty($CFG->mnet_rpcdebug)) { - trigger_error("XMLRPC Error Response"); + trigger_error("XMLRPC Error Response $code $text"); trigger_error(print_r($return,1)); }
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
Done - thanks Arnaud.