Hello, I reinstall a 4.0 version and when i do the file grid do not exist.
Do i have to create one by myself ?
I did the upgrade like i did before and i got the bug and the fil grid was created.
I put the two files upgrade.php and downgrade_me.php
I excute the downgrade_me.php with the url : mymoodle/course/format/grid/downgrade_me.php
I got this message : Grid downgraded to version: 0 from config version 0, version.php version 2022072201.
I dont know if it worked.
After i try to execute the upgrade with the url mymoodle/course/format/grid/db/upgrade.php
or just trying to acces moodle and he want to do an upgade i cant access moodle witeout doing it i got this screen (screen 1)
I continue i got this second screen (screen 2)
I click on update and i got the nearly the same bug
Info de débogage Table 'mdl_format_grid_image' already exists
CREATE TABLE mdl_format_grid_image (
id BIGINT(10) NOT NULL auto_increment,
image LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci,
contenthash VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
displayedimagestate BIGINT(10) NOT NULL,
sectionid BIGINT(10) NOT NULL,
courseid BIGINT(10) NOT NULL,
CONSTRAINT PRIMARY KEY (id)
, UNIQUE KEY mdl_formgridimag_sec2_uix (sectionid)
, KEY mdl_formgridimag_cou2_ix (courseid)
)
ENGINE = InnoDB
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE = utf8_general_ci
COMMENT='Images for each topic, used by the grid course format'
Error code: ddlexecuteerror
Trace de la pile
- line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
- line 291 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
- line 1098 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
- line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
- line 427 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
- line 372 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
- line 671 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
- line 1935 of /lib/upgradelib.php: call to upgrade_plugins()
- line 719 of /admin/index.php: call to upgrade_noncore()
Sory i am really begginer in php and moodle and my english is not really good too but really thank your for your help