Alguém pode me dar uma luz sobre o que está acontecendo no meu Moodle (2.5.1 + Apache + cPanel). Habilitei o debug para ler o erro, mas ainda assim não consegui detectar.
Veja abaixo:
Debug info: MySQL server has gone away
SELECT * FROM mdl_context WHERE contextlevel = ? AND instanceid = ?
[array (
0 => 50,
1 => '1',
)]
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 1369 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1348 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 6588 of /lib/accesslib.php: call to moodle_database->get_record()
line 885 of /lib/pagelib.php: call to context_course::instance()
line 42 of /index.php: call to moodle_page->set_course()
e também:
Debug info: MySQL server has gone away
SELECT name,value FROM mdl_user_preferences WHERE userid = ?
[array (
0 => '2',
)]
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 1226 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 1177 of /lib/dml/moodle_database.php: call to moodle_database->get_records_select()
line 1266 of /lib/dml/moodle_database.php: call to moodle_database->get_records()
line 1730 of /lib/moodlelib.php: call to moodle_database->get_records_menu()
line 1943 of /lib/moodlelib.php: call to check_user_preferences_loaded()
line 9082 of /lib/moodlelib.php: call to get_user_preferences()
line 663 of /lib/pagelib.php: call to get_user_device_type()
line 734 of /lib/pagelib.php: call to moodle_page->magic_get_devicetypeinuse()
line 1543 of /lib/pagelib.php: call to moodle_page->__get()
line 1462 of /lib/pagelib.php: call to moodle_page->resolve_theme()
line 1478 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
line 375 of /lib/setuplib.php: call to bootstrap_renderer->__call()
line 375 of /lib/setuplib.php: call to bootstrap_renderer->fatal_error()
line ? of unknownfile: call to default_exception_handler()
Obrigado.
Gedeon