Training Sessions

Reports ::: report_trainingsessions
Maintained by Valery Fremaux
Aggregates time use stats given by the use_stats block for elaborating high level training reports in Profesional Development environments
Latest release:
279 sites
30 fans
Current versions available: 15

CHANGE :   We have spent time enough to use Moodle Plugin Maintenance API to support automated plugin update chain from our internal development workflow.

Trainingsession is a course report that assemble the use_stat block log compiler to provide high level training reports for professional development assessment.

The trainingsessions report guesses the course structure, and will provide a report following the pedagogic organisation (and not technical).

Training reports can be accessed per user as details report, or per group/course for an overral completion overview.

All detailed results are exported as Excel sheets

Trainingsessions batch system will need the auth_ticket plugin provided at to send notifications about batch productions.

This plugin in maintained by ActiveProLearn Sas (Montpellier - France).


Screenshot #0
Screenshot #1
Screenshot #2


Valery Fremaux (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Rafael Borbón
    Tue, Jul 10, 2018, 3:48 AM
    Updating the version
    Found errors in the XML database files

    More information about this error

    × Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: report / trainingsessions / db
    Error code: ddlxmlfileerror
    × Stack trace:
    line 352 of /lib/ddl/database_manager.php: ddl_exception thrown
    line 368 of /lib/ddl/database_manager.php: call to database_manager-> load_xmldb_file ()
    line 594 of /lib/upgradelib.php: call to database_manager-> install_from_xmldb_file ()
    line 1857 of /lib/upgradelib.php: call to upgrade_plugins ()
    line 694 of /admin/index.php: call to upgrade_noncore ()
  • Andrew Ambrosius
    Wed, Nov 7, 2018, 6:04 AM
    I get this error when running a report (I have Moodle 3.5 installed)
    Coding error detected, it must be fixed by a programmer: get_current_group() can not be used any more, please use groups_get_* instead
    Tue, Mar 12, 2019, 8:34 PM
    can have the plugin for moodle version 3.6
    Wed, Apr 10, 2019, 8:40 PM
    Hello Valery
    I have the same error, my version of moodle is 3.6 possible to update the plugin
  • Troy May
    Mon, Apr 22, 2019, 9:28 AM
    Why is it every time I have ever attempted to employ one of your plugins, they never work for me?? I could really use a way to track specific time duration spent by a student on a scorm activity. Your plug seems to do just that & more. But when I try to install it, i get one BS error after another.
  • Laurent LERICHE
    Thu, May 23, 2019, 10:29 PM
    where can we found the 3.6 (or 3.7) compatibilty Moodle version of this great plugin ?
  • Centro de Estudios Kuma
    Mon, Aug 24, 2020, 4:42 PM
    ¿Saben cuando sacarán una versión compatible con las nuevas versiones de moodle?
  • Carlos Kiyan Tsunami
    Wed, Oct 7, 2020, 11:36 AM
    Hello. I have installed the latest version ( and I got the following error Exception - Class 'PHPExcel_Style_NumberFormat' not found
  • Philippe Odent
    Sun, Oct 25, 2020, 9:25 PM
    Hi team, got error Exception : Class 'PHPExcel_Style_NumberFormat' when exporting to XLS. We're using Moodle 3.9, report_trainingsessions 3.8.0, auth_ticket 3.9.0 and block_use_stats 3.8.0. Maybe I'm wrong somewhere ? Any help would be greatly appreciated...
  • Fran San
    Fri, Nov 20, 2020, 7:09 PM
    Hi Valery,

    First of all, thanks a lot for this useful plugin!

    I am trying to install in a Moodle 3.0 instance but I have many problems with auth_ticket. The thing is, I need a proper version of this plugin. This is the report that Moodle shows.
    Moodle 2015111000
    block_use_stats (2016051700)
    auth_ticket (2012060400) Missing Unavailable

    Where could I find this version of auth_ticket (2012060400)?

    Thanks again.

  • Halim Asa
    Mon, Feb 8, 2021, 12:22 AM
    Hi guys,
    I also get the following error, when I tried to install the plugin posted here, it gave an auth ticket error, I installed it first. I also installed the use stats plugin. When I said update the database, it gave the following error. Will there be an update on this topic?
    3.8 I'm using moodle, my database is mariadb

    XML veritabanı dosya hataları bulundu

    Bu hata hakkında daha fazla bilgi

    ×Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: report/trainingsessions/db
    Error code: ddlxmlfileerror
    ×Stack trace:
    line 352 of /lib/ddl/database_manager.php: ddl_exception thrown
    line 368 of /lib/ddl/database_manager.php: call to database_manager->load_xmldb_file()
    line 614 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
    line 1877 of /lib/upgradelib.php: call to upgrade_plugins()
    line 694 of /admin/index.php: call to upgrade_noncore()
  • Bhanuka Weerasekara
    Thu, Jun 3, 2021, 6:00 PM
    I am using Moodle 3.9. I also get the same error as others get.


    XML database file errors found

    More information about this error

    Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: report/trainingsessions/db
    Error code: ddlxmlfileerror

    Stack trace:
    line 354 of /lib/ddl/database_manager.php: ddl_exception thrown
    line 370 of /lib/ddl/database_manager.php: call to database_manager->load_xmldb_file()
    line 654 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
    line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
    line 713 of /admin/index.php: call to upgrade_noncore()

  • George Katsadouris
    Thu, Apr 13, 2023, 4:27 PM
    will there be an update for 4.0.x?
  • Carlos Kiyan Tsunami
    Fri, Sep 15, 2023, 8:44 PM
    Hello Valery
    I tried to install your plugin and got the following errors.
    Install plugin from ZIP file
    Debugging output enabled
    ZIP /moodledata/campus4test/temp/tool_installaddon/6504510979738/
    Validating report_trainingsessions ... Error
    [OK] Name of the plugin to be installed [trainingsessions]
    [OK] Plugin version [2023060500]
    [OK] Required Moodle version [2022112801]
    [OK] Full component name [report_trainingsessions]
    [OK] Declared maturity level [MATURITY_STABLE]
    [OK] Plugin release [4.1.0 (build 2023060500)]
    [Warning] Multiple English language files found [null]
    [Error] Write access check [/var/www/moodle/report]
    Installation aborted due to validation failure
  • Panagiotis Doris
    Fri, Jun 21, 2024, 10:00 PM
    I've encountered a significant issue with the TrainingSessions plugin that affects its accuracy and reliability. When searching for activity time over different periods, extending the search period sometimes results in a lower total time, which is illogical. For instance, a search for the period 19/5 to 3/6 shows 35 hours, but extending the search to 19/5 to 4/6 reduces the total to 22 hours, despite additional SCORM activity on 4/6. Logically, the total time should remain the same or increase with a longer search period. This discrepancy indicates a bug that needs to be addressed for the plugin to be considered accurate and reliable.

    Please investigate and resolve this issue to ensure consistent and accurate reporting of training sessions.
1 2 3 4 5
Please login to post comments