Exception encountered in event observer 'local_replace_banner_observer::user_course_viewed': Error reading from database (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 1' at line 3
SELECT course_id, content_type
FROM mdl_local_courses_groups
WHERE course_id = LIMIT 0, 1
[array (
)])
- line 1212 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 2002 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 20 of /local/replace_banner/classes/eventslib.php: call to moodle_database->record_exists_sql()
- line ? of unknownfile: call to local_replace_banner_observer::user_course_viewed()
- line 155 of /lib/classes/event/manager.php: call to call_user_func()
- line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
- line 834 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
- line 3598 of /course/lib.php: call to core\event\base->trigger()
- line 92 of /index.php: call to course_view()
Cannot connect to external database:
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
(Access denied for user 'do-mooc-log'@'localhost' (using password: YES))
- line 105 of /admin/tool/log/store/database/classes/log/store.php: call to debugging()
- line 141 of /admin/tool/log/store/database/classes/log/store.php: call to logstore_database\log\store->init()
- line 106 of /admin/tool/log/classes/helper/buffered_writer.php: call to logstore_database\log\store->insert_event_entries()
- line 132 of /admin/tool/log/classes/helper/buffered_writer.php: call to logstore_database\log\store->flush()
- line 305 of /admin/tool/log/store/database/classes/log/store.php: call to logstore_database\log\store->helper_dispose()
- line 195 of /admin/tool/log/classes/log/manager.php: call to logstore_database\log\store->dispose()
- line 155 of /lib/classes/shutdown_manager.php: call to tool_log\log\manager->dispose()
- line ? of unknownfile: call to core_shutdown_manager::shutdown_handler()