[pour information] Error writing to database

[pour information] Error writing to database

par Pascal Boulerie,
Nombre de réponses : 0

Je suis arrivé à une page http://localhost/projects/moodle/moodle/admin/index.php?confirmplugincheck=1

en essayant un Moodle 2.5 sur EasyPHP.

Précédemment, l'installation avait bloqué après 30 secondes à cause de la configuration php.ini par défaut :

max_execution_time = 30

Les archives francophones indiquent que le message "It is usually not possible to recover from errors triggered during installation" n'a été signalé ici que 2 fois dans le passé, et c'est la première fois que "Error writing to database" est signalé ici. Il y a beaucoup plus de cas signalés dans le reste des archives Moodle.org dans des discussions en anglais.

Solution; comme cela est indiqué en anglais dans l'encadré en rouge :

"you may need to create a new database or use a different database prefix if you want to retry the installation.", à savoir donc : réinstaller Moodle.


----------------------------------
PS Il vaut mieux avoir de la marge dans la configuration PHP - par exemple, avoir : max_execution_time = 1200 - pour éviter l'erreur suivante :

Skip to main content
Installation
System

Fatal error: Maximum execution time of 300 seconds exceeded in D:\EasyPHP\data\localweb\projects\moodle-2.5\moodle\lib\dml\mysqli_native_moodle_database.php on line 539

-------------------------------------------

Erreur initiale :

Skip to main content Upgrading to new version block_blog_menu

Error writing to database

More information about this error *

It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation.

Debug info: Table 'moodle5.mdl_cache_text' doesn't exist TRUNCATE TABLE mdl_cache_text [array œuf] Error code: dmlwriteexception Stack trace: line 426 of \lib\dml\moodle_database.php: dml_write_exception thrown line 895 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end() line 1708 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->execute() line 1247 of \lib\weblib.php: call to moodle_database->delete_records() line 1545 of \lib\moodlelib.php: call to reset_text_filters_cache() line 845 of \lib\upgradelib.php: call to purge_all_caches() line 383 of \lib\upgradelib.php: call to upgrade_plugins_blocks() line 1586 of \lib\upgradelib.php: call to upgrade_plugins() line 386 of \admin\index.php: call to upgrade_noncore()

 

* avec un lien vers la page :

http://docs.moodle.org/25/en/error/moodle/dmlwriteexception

Moyenne des évaluations  -