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

Problem with question restore relinking when quiz not selected



    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.2
    • 1.7.3, 1.8.1
    • Backup, Questions
    • None
    • Moodle 1.7.2+ with most recent CVS update
      Apache, fedora core 6


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

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


        Issue Links



              skodak Petr Skoda
              ppollet Patrick Pollet
              Nobody Nobody
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              0 Vote for this issue
              1 Start watching this issue