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

Importation of a database between two course fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.7.2
    • None
    • Moodle 1.7.2+ with most recent CVS update
      Apache, fedora core 6
    • MOODLE_17_STABLE

      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 ...

            skodak Petr Skoda
            ppollet Patrick Pollet (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.