Moodle

Problem with question restore relinking when quiz not selected

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.2
  • Fix Version/s: 1.7.3, 1.8.1
  • Component/s: Backup, Questions
  • Labels:
    None
  • Environment:
    Moodle 1.7.2+ with most recent CVS update
    Apache, fedora core 6
  • Affected Branches:
    MOODLE_17_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE, MOODLE_18_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 ...

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

I am cloning the original issues because those were two unrelated problems IMHO

Show
Petr Škoda (skodak) added a comment - I am cloning the original issues because those were two unrelated problems IMHO
Hide
Petr Škoda (skodak) added a comment -

caused by recent fix from MDL-9432

Show
Petr Škoda (skodak) added a comment - caused by recent fix from MDL-9432
Hide
Petr Škoda (skodak) added a comment -

fixed in cvs, thanks for the report and proposed patch!

Show
Petr Škoda (skodak) added a comment - fixed in cvs, thanks for the report and proposed patch!

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: