par Christine TUFFENIS-LACROIX.
Bonjour à tous,
En espérant que vous êtes revenus de vacances
.... je vous sollicite pour me dire ce que je dois faire:
Version de MySQL :
5.7
Version PHP: 7.3.8
Ancienne version moodle: 3.5
Petite précision, le thème Essential n'étant mis à niveau pour Moodle 3.7, j'ai effectué un changement avant l'installation de la nouvelle version de Moodle (Enlightlite).
J'ai ensuite installé Moodle 3.7 et j'ai eu une page blanche avec un message erreur "impossible d'afficher les cours". J'ai utilisé dans le fichier config.php, les informations de débogage proposées sur le forum:
$CFG->debug
= (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;
Après cela, j'ai bien obtenu une liste détaillée d'erreurs:
Erreur d'exécution DDL sql
Debug info: Table 'mdl_assignment' already exists
CREATE TABLE mdl_assignment (
id BIGINT(10) NOT NULL auto_increment,
course BIGINT(10) NOT NULL DEFAULT 0,
name VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
intro LONGTEXT COLLATE utf8mb4_unicode_ci NOT NULL,
introformat SMALLINT(4) NOT NULL DEFAULT 0,
assignmenttype VARCHAR(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
resubmit TINYINT(2) NOT NULL DEFAULT 0,
preventlate TINYINT(2) NOT NULL DEFAULT 0,
emailteachers TINYINT(2) NOT NULL DEFAULT 0,
var1 BIGINT(10) DEFAULT 0,
var2 BIGINT(10) DEFAULT 0,
var3 BIGINT(10) DEFAULT 0,
var4 BIGINT(10) DEFAULT 0,
var5 BIGINT(10) DEFAULT 0,
maxbytes BIGINT(10) NOT NULL DEFAULT 100000,
timedue BIGINT(10) NOT NULL DEFAULT 0,
timeavailable BIGINT(10) NOT NULL DEFAULT 0,
grade BIGINT(10) NOT NULL DEFAULT 0,
timemodified BIGINT(10) NOT NULL DEFAULT 0,
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_assi_cou2_ix (course)
)
ENGINE = InnoDB
DEFAULT COLLATE = utf8mb4_unicode_ci ROW_FORMAT=Compressed
COMMENT='Defines assignments'
;
CREATE TABLE mdl_assignment_submissions (
id BIGINT(10) NOT NULL auto_increment,
assignment BIGINT(10) NOT NULL DEFAULT 0,
userid BIGINT(10) NOT NULL DEFAULT 0,
timecreated BIGINT(10) NOT NULL DEFAULT 0,
timemodified BIGINT(10) NOT NULL DEFAULT 0,
numfiles BIGINT(10) NOT NULL DEFAULT 0,
data1 LONGTEXT COLLATE utf8mb4_unicode_ci,
data2 LONGTEXT COLLATE utf8mb4_unicode_ci,
grade BIGINT(11) NOT NULL DEFAULT 0,
submissioncomment LONGTEXT COLLATE utf8mb4_unicode_ci NOT NULL,
format SMALLINT(4) NOT NULL DEFAULT 0,
teacher BIGINT(10) NOT NULL DEFAULT 0,
timemarked BIGINT(10) NOT NULL DEFAULT 0,
mailed TINYINT(1) NOT NULL DEFAULT 0,
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_assisubm_use2_ix (userid)
, KEY mdl_assisubm_mai2_ix (mailed)
, KEY mdl_assisubm_tim2_ix (timemarked)
, KEY mdl_assisubm_ass2_ix (assignment)
)
ENGINE = InnoDB
DEFAULT COLLATE = utf8mb4_unicode_ci ROW_FORMAT=Compressed
COMMENT='Info about submitted assignments'
;
CREATE TABLE mdl_assignment_upgrade (
id BIGINT(10) NOT NULL auto_increment,
oldcmid BIGINT(10) NOT NULL DEFAULT 0,
oldinstance BIGINT(10) NOT NULL DEFAULT 0,
newcmid BIGINT(10) NOT NULL DEFAULT 0,
newinstance BIGINT(10) NOT NULL DEFAULT 0,
timecreated BIGINT(10) NOT NULL DEFAULT 0,
CONSTRAINT PRIMARY KEY (id)
, KEY mdl_assiupgr_old3_ix (oldcmid)
, KEY mdl_assiupgr_old4_ix (oldinstance)
)
ENGINE = InnoDB
DEFAULT COLLATE = utf8mb4_unicode_ci ROW_FORMAT=Compressed
COMMENT='Info about upgraded assignments'
Error code: ddlexecuteerror
Stack trace:
- line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
- line 1070 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
- line 425 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
- line 370 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
- line 782 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
- line 524 of /lib/upgradelib.php: call to upgrade_plugins_modules()
- line 1869 of /lib/upgradelib.php: call to upgrade_plugins()
- line 694 of /admin/index.php: call to upgrade_noncore()
Puis, si je clique sur "continuer", j'obtiens ceci:
Class
coursecat is now alias to autoloaded class core_course_category, course_in_list
is an alias to core_course_list_element. Class coursecat_sortable_records is
deprecated without replacement. Do not include coursecatlib.php
line 31 of
/lib/coursecatlib.php: call to debugging()line 182 of
/theme/enlightlite/renderers/course_renderer.php: call to require_once()line 136 of /theme/enlightlite/renderers/core_renderer.php:
call to theme_enlightlite_core_course_renderer->top_course_menu()line 85 of
/theme/enlightlite/renderers/core_renderer.php: call to
theme_enlightlite_core_renderer->course_menu()line 44 of
/theme/enlightlite/renderers/core_renderer.php: call to
theme_enlightlite_core_renderer->custom_menu_render()line 46 of
/theme/enlightlite/classes/header_block.php: call to
theme_enlightlite_core_renderer->primarymenu()line 89 of
/theme/enlightlite/classes/header_block.php: call to header_contents()line 28 of
/theme/enlightlite/layout/login.php: call to require_once()line 1370 of
/lib/outputrenderers.php: call to include()line 1300 of
/lib/outputrenderers.php: call to core_renderer->render_page_layout()line 1961 of /lib/setuplib.php:
call to core_renderer->header()line 355 of /login/index.php:
call to bootstrap_renderer->__call()Class
'coursecat' has been renamed for the autoloader and is now deprecated. Please
use 'core_course_category' instead.
line 122 of
/lib/classes/component.php: call to debugging()line ? of unknownfile: call to
core_component::classloader()line 183 of
/theme/enlightlite/renderers/course_renderer.php: call to
spl_autoload_call()line 136 of
/theme/enlightlite/renderers/core_renderer.php: call to
theme_enlightlite_core_course_renderer->top_course_menu()line 85 of
/theme/enlightlite/renderers/core_renderer.php: call to
theme_enlightlite_core_renderer->course_menu()line 44 of
/theme/enlightlite/renderers/core_renderer.php: call to
theme_enlightlite_core_renderer->custom_menu_render()line 46 of
/theme/enlightlite/classes/header_block.php: call to
theme_enlightlite_core_renderer->primarymenu()line 89 of
/theme/enlightlite/classes/header_block.php: call to header_contents()line 28 of
/theme/enlightlite/layout/login.php: call to require_once()line 1370 of
/lib/outputrenderers.php: call to include()line 1300 of
/lib/outputrenderers.php: call to core_renderer->render_page_layout()line 1961 of /lib/setuplib.php:
call to core_renderer->header()line 355 of /login/index.php:
call to bootstrap_renderer->__call()J'ai l'impression que le thème est concerné ...mais pas que.... mais je ne sais pas quoi faire de ces informations. Pouvez-vous m'éclairer ?
Merci par avance pour votre aide toujours précieuse.
PS: quels risques je prends à rester sur Moodle 3.5...?? j'ai une sauvegardeà jour qui pourrait résoudre pas mal de problèmes.....
Christine Lacroix