Environment
- plugin version: 2024091600
- Totara version: 2025012300.00 (19.0.4)
- PHP: 8.1.32
- Database: Postgres 14.17
Problem description
When using Excimer in Totara (15, 17, and 19) I've noticed a number of error messages like this in my logs:
PHP message: Exception ignored in shutdown function Closure::__invoke: Call to undefined method core\session\manager::get_session_lock_info()
It seems this is because of the work for issue #314 . It adds a call to get_session_lock_info(), which is a function that exists on the session manager class in Moodle, but not in Totara. This results in the Excimer shutdown function erroring out, which puts that error message in the logs and prevents Excimer from saving any data (unless you've got partial saves enabled).
Suggested fix
Totara does not appear to track the kind of session-related info that Moodle does via get_session_lock_info(), so the simplest fix is to simply comment out that line in the TOTARA_19 branch. And perhaps put a check for it in the MOODLE_35_STABLE branch.