Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28136

undefined variable when using moodle_user_get_users_by_id web service

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Web Services
    • Labels:
      None

      Description

      Aparup:

      for : XML-RPC protocol: moodle_user_get_users_by_id

      URL: http://aparup.moodle.local/m20/mysql/moodle/webservice/xmlrpc/server.php?wstoken=3f3d0c0b10fb49ad897cb4d500bb0aae
      Warning: SimpleXMLElement::__construct(): Entity: line 2: parser error : Start tag expected, '<' not found in /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Response.php on line 180 Call Stack: 0.0005 727808 1.

      {main}() /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php:0 0.9973 87215896 2. webservice_xmlrpc_test_client->simpletest() /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php:154 1.0045 88637608 3. Zend_XmlRpc_Client->call() /home/aparup/mcode/m20/mysql/moodle/webservice/xmlrpc/locallib.php:72 1.2948 89878856 4. Zend_XmlRpc_Client->doRequest() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:361 1.6612 89893424 5. Zend_XmlRpc_Response->loadXml() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:297 1.6612 89893968 6. SimpleXMLElement->_construct() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Response.php:180 Warning: SimpleXMLElement::_construct(): Notice: Undefined variable: canviewdetailscap in /home/aparup/mcode/m20/mysql/mo in /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Response.php on line 180 Call Stack: 0.0005 727808 1. {main}

      () /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php:0 0.9973 87215896 2. webservice_xmlrpc_test_client->simpletest() /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php:154 1.0045 88637608 3. Zend_XmlRpc_Client->call() /home/aparup/mcode/m20/mysql/moodle/webservice/xmlrpc/locallib.php:72 1.2948 89878856 4. Zend_XmlRpc_Client->doRequest() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:361 1.6612 89893424 5. Zend_XmlRpc_Response->loadXml() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:297 1.6612 89893968 6. SimpleXMLElement->_construct() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Response.php:180 Warning: SimpleXMLElement::_construct(): ^ in /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Response.php on line 180 Call Stack: 0.0005 727808 1.

      {main}() /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php:0 0.9973 87215896 2. webservice_xmlrpc_test_client->simpletest() /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php:154 1.0045 88637608 3. Zend_XmlRpc_Client->call() /home/aparup/mcode/m20/mysql/moodle/webservice/xmlrpc/locallib.php:72 1.2948 89878856 4. Zend_XmlRpc_Client->doRequest() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:361 1.6612 89893424 5. Zend_XmlRpc_Response->loadXml() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:297 1.6612 89893968 6. SimpleXMLElement->__construct() /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Response.php:180 exception 'Zend_XmlRpc_Client_FaultException' with message 'Failed to parse response' in /home/aparup/mcode/m20/mysql/moodle/lib/zend/Zend/XmlRpc/Client.php:370
      Stack trace:
      #0 /home/aparup/mcode/m20/mysql/moodle/webservice/xmlrpc/locallib.php(72): Zend_XmlRpc_Client->call('moodle_user_get...', Array)
      #1 /home/aparup/mcode/m20/mysql/moodle/admin/webservice/testclient.php(154): webservice_xmlrpc_test_client->simpletest('http://aparup.m...', 'moodle_user_get...', Array)
      #2 {main}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dongsheng Dongsheng Cai
                Reporter:
                dongsheng Dongsheng Cai
                Peer reviewer:
                Aparup Banerjee
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Dongsheng Cai
                Participants:
                Component watchers:
                Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Jul/11