ERRO AO LER A BASE DE DADOS

ERRO AO LER A BASE DE DADOS

por Matheus Soares -
Número de respostas: 0
Quando o Professor seleciona a opção - Fazer Download de todas as atividades 

demora para carregar, e quando aparece a pagina exibi a mensagem " ERRO AO LER A BASE DE DADOS".

Passei o debbuing e apareceu esses comandos:

Debug info: MySQL server has gone away
SELECT id FROM mdl_config_plugins WHERE name = ? AND plugin = ?
[array (
0 => 'lastloginserterrormail',
1 => 'admin',
)]
Error code: dmlreadexception
Stack trace:
  • line 423 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 1005 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1397 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
  • line 1470 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
  • line 1451 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
  • line 1430 of /lib/dml/moodle_database.php: call to moodle_database->get_field_select()
  • line 1332 of /lib/moodlelib.php: call to moodle_database->get_field()
  • line 1615 of /lib/datalib.php: call to set_config()
  • line 2367 of /mod/assign/locallib.php: call to add_to_log()
  • line 2337 of /mod/assign/locallib.php: call to assign->add_to_log()
  • line 480 of /mod/assign/locallib.php: call to assign->download_submissions()
  • line 53 of /mod/assign/view.php: call to assign->view()

Alguma ajuda?