Příspěvky uživatele Joseph Rézeau

Obrázek: Développeurs Obrázek: Développeurs de plugins Obrázek: Testeurs Obrázek: Traducteurs

Bonjour Daniel,

1.- Pour exporter une question au format Moodle XML, quand tu es dans la banque de questions de ton cours, tu cliques sur Modifier (ta question) puis Exporter etc. Je joins ta question au format Moodle XML à mon message.

2.- J'ai saisi le texte de ta question dans une question de type Cloze (réponses intégrées), et déposé la question dans un Quiz/Test de mon cours, et ça marche exactement comme attendu.

Moodle in English -> General developer forum -> Can't delete Test Course

autor Joseph Rézeau -
Obrázek: Core developers Obrázek: Plugin developers Obrázek: Testers Obrázek: Translators

Hi!
On my localhost Moodle test site I (stupidly) created a (large) Test course from Site administration / Development / Make test course.

Now I can't delete it! I get this error message. What can I do?

Note.- In the error message quoted below I have removed almost all of the [array ([array (12 =>  contents, which consists of a lot of apparent garbage.

Deleting test course
Error writing to database
More information about this error
Debug info: MySQL server has gone away
INSERT INTO mdl_backup_controllers (backupid,operation,type,itemid,format,interactive,purpose,userid,status,execution,executiontime,checksum,controller,timecreated,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
-- line 1403 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
-- line 97 of \backup\util\dbops\backup_controller_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
-- line 439 of \backup\controller\backup_controller.class.php: call to backup_controller_dbops::save_controller()
-- line 206 of \backup\controller\backup_controller.class.php: call to backup_controller->save_controller()
-- line 161 of \backup\controller\backup_controller.class.php: call to backup_controller->set_status()
-- line 130 of \admin\tool\recyclebin\classes\category_bin.php: call to backup_controller->__construct()
-- line 185 of \admin\tool\recyclebin\lib.php: call to tool_recyclebin\category_bin->store_item()
-- line 4998 of \lib\moodlelib.php: call to tool_recyclebin_pre_course_delete()
-- line 68 of \course\delete.php: call to delete_course()
[array (
0 => 'a7a98ffa0fc72e0f1b3a4a03fb2373f2',
1 => 'backup',
2 => 'course',
3 => '7',
4 => 'moodle2',
5 => 0,
6 => 50,
7 => '2',
8 => 700,
9 => 1,
10 => 0,
11 => 'bec69d387a218ca52a81ae1487a6e00e',
12 => 'TzoxNzoiYmFja3VwX2NvbnRyb2xsZXIiOjIxOntzOjExOiIAKgBiYWNrdXBpZCI7czozMjoiYTdhOThmZmEwZmM3MmUwZjFiM2E0YTAzZ
.........
7fX1zOjE3OiIAKgByZWxlYXNlc2Vzc2lvbiI7YjowO3M6NzoiACoAY29weSI7Tjt9',
13 => 1633011455,
14 => 0,
)]
Error code: dmlwriteexception
Stack trace:

    line 489 of \lib\dml\moodle_database.php: dml_write_exception thrown
    line 1357 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 1403 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
    line 97 of \backup\util\dbops\backup_controller_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
    line 439 of \backup\controller\backup_controller.class.php: call to backup_controller_dbops::save_controller()
    line 206 of \backup\controller\backup_controller.class.php: call to backup_controller->save_controller()
    line 161 of \backup\controller\backup_controller.class.php: call to backup_controller->set_status()
    line 130 of \admin\tool\recyclebin\classes\category_bin.php: call to backup_controller->__construct()
    line 185 of \admin\tool\recyclebin\lib.php: call to tool_recyclebin\category_bin->store_item()
    line 4998 of \lib\moodlelib.php: call to tool_recyclebin_pre_course_delete()
    line 68 of \course\delete.php: call to delete_course()

Průměr hodnocení: -
Obrázek: Développeurs Obrázek: Développeurs de plugins Obrázek: Testeurs Obrázek: Traducteurs
  1. Tu utilises quel thème visuel de Moodle? Essaie avec le thème par défaut (Boost).
  2. Interactive Book et Course Presentation sont deux activités du genre "poupée russe", permettant d'inclure bon nombre d'activités standard de Moodle. Franchement je ne vois pas l'intérêt de multiplier les poupées russes. Tu ne peux vraiment pas te contenter d'utiliser soit  Interactive Book soit Course Presentation ? Quelles sont tes raisons ?
  3. Si tu y tiens absolument, voici ce que tu peux faire:
    1. Créer un contenu Course Presentation par ex. "Ma belle présentation" en y incorporant toutes les activités que tu veux.(Puisque tu dis que tu peux y voir tous le menu des boutons d'activités)
    2. En mode édition, cliquer sur le bouton Copy pour copier ce contenu dans le presse-papiers.
    3. Créer maintenant un contenu de type Interactive Book et, à la page désirée, cliquer sur le bouton Paste & Replace pour y coller  "Ma belle présentation".
  4. Tu utilises un ordinateur (Windows, Mac, ...) ou une tablette ou un portable? Quelle est la largeur totale de ta fenêtre. Chez moi c'est 1920 pixels de largeur.