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

Importation of a database between two course fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.7.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Moodle 1.7.2+ with most recent CVS update
      Apache, fedora core 6
    • Affected Branches:
      MOODLE_17_STABLE

      Description

      When trying to import a database activity from a course to another one, the process silently dies during the restore part with the following display :

      url is http://myserver.fr/moodle/backup/restore.php

      Restauration du cours: backup-as2_info_pascal-20070421-1120.zip

      • Création d'un nouveau cours
        o Programmation orientée objet en Pascal (AS2) copie 1 (AS2_INFO_PASC_1)
        o Catégorie: Anciens
      • Creating the Restorelog.html in the course backup folder
      • Création des sections
      • Création des utilisateurs
        (Nouveau: 0, Existant: 9)
        o Étudiants: 0
        o Enseignants: 0
      • Creating des informations du méta-cours
      • Copie des fichiers utilisateurs
      • Création des barèmes
      • Création des groupes
      • Création du calendrier
      • Création des modules de cours
        o Base de données "Archive des projets réalisés les années précédentes"
      • Création du carnet de notes
        o Préférences
        o . Catégories
        .
      • Création des blocs
      • Verification des instances
      • Actualisation du calendrier
      • Décodage des liens internes
        o De Questions <-- PROCESS STOP HERE

      The database is partly imported (name, description, fields,templates ), but no records ...

      In apache logs one find :

      [Sat Apr 21 11:38:38 2007] [error] [client 134.214.152.108] PHP Fatal error: Call to undefined function question_decode_content_links_caller() in /var/www/html/moodle172/backup/restorelib.php on line 97, referer: http://cipcnet.insa-lyon.fr/moodle
      /backup/restore.php?file=13/backupdata/backup-as2_info_pascal-20070421-1138.zip&id=13&to=87

      strangely a grep in Moodle shows that this function is indeed here in question/restorelib.php .

      [root@cipcnet moodle]# grep question_decode_con * -Ri
      backup/restorelib.php: $status = question_decode_content_links_caller($restore);
      question/restorelib.php: function question_decode_content_links_caller($restore) {

      But why should it be called since I only selected a database to import ?

      I attach the zip file created by the backup process (where I have removed some big user's files by
      zip -d /tmp/backup-as2_info_pascal-20070421-1120.zip \.zip ) to make it smaller ...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              ppollet Patrick Pollet
              Tester:
              Nobody Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: