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

core_course_import_course yields error when proper parameters are provided.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.6.2
    • Fix Version/s: None
    • Component/s: Web Services
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      Use this client: https://github.com/moodlehq/sample-ws-clients/blob/master/PHP-XMLRPC/client.php

      functionname core_course_import_course

      /// PARAMETERS $params = array(
      'importfrom' => 2, // The id of the course we are importing from
      'importto' => 3, // The id of the course we are importing to
      'deletecontent' => 0, // Delete the content of the course we are importing to
      'options' => array(array('name'=>'blocks', 'value'=>1), array('name'=>'activities', 'value'=>1), array('name'=>'filters', 'value'=>1)) // Backup options );
      Change the importfrom and importto values to match your courses

      The error is:
      Array
      (
      [faultCode] => 28194976
      [faultString] => Calling parameters do not match signature | ERRORCODE:
      )

      This resolved ticket is similar but it was on the REST client.
      https://tracker.moodle.org/browse/MDL-32919

      The issue I'm reporting is directly related to XMLRPC protocal

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              phparray Dave Arnold
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: