Use Stats

Blocks ::: block_use_stats
Maintained by Valery Fremaux
Provides time base use stats indicators. The compilation library is used by the "training session" report plugin.
Latest release:
855 sites
322 downloads
37 fans
Current versions available: 17

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

This block samples the user's log records and thresholds the activity backtrace. The main hypothesis is that any activity type unless offline activity or in-classroom activity may underlie a constant loggin track generation.

The block compiles all log events and summarizes all intervals larger than an adjustable threshold. Compilation are also made on a course basis.

This is the community version that comes with the "core" feature set of this plugin.

Screenshots

Screenshot #0
Screenshot #1

Contributors

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

Comments RSS

Mostrar comentarios
  • Dinis Medeiros
    jue., 16 de mar. de 2017, 01:02
    Debug info: Duplicate entry '76-1488365176' for key 'mdlvn_blocusestatsess_uses_uix'
    INSERT INTO mdlvn_block_use_stats_session (userid,sessionstart,sessionend,courses) VALUES(?,?,?,?)
    [array (
    0 => '76',
    1 => '1488365176',
    2 => 1489017289,
    3 => '11,0',
    )]
    Error code: dmlwriteexception
    Stack trace:

    line 482 of /lib/dml/moodle_database.php: dml_write_exception thrown
    line 1259 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 1305 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
    line 641 of /blocks/use_stats/locallib.php: call to mysqli_native_moodle_database->insert_record()
    line 124 of /blocks/use_stats/detail.php: call to use_stats_aggregate_logs()
  • bea val
    mar., 16 de may. de 2017, 16:06

    Hi, I would like to know how to access the information of use stats.
    Thanks.
  • Virangya Senevirathne
    mar., 14 de nov. de 2017, 15:40
    Hi,
    Thanks for your plugin use stats. Its very helpful.
    Unfortunately I faced an issue. We have been using it for many months now and the things were okay. But on the end of October , after i gathered teachers working hours, many complained that the values they noticed are lot higher than the statistics i sent. Same issue was complained by many number of teachers. One has even sent a screen shot. According to few complains, statistics have been reset at the middle or at the end of the month.
    Nothing has been changed from my side and i'm wondering what might have coursed this, as i have checked the hours many times to see no difference.
    I would like to know the location of log files, is it a database table or a file containing data?
    What might have coursed this? Have you came up with similar issues before? How to get around this and how to prevent it from happening in the future?
    I really appreciate your quick response and help regarding this.
    Thanks in advance.
  • tarik yuce
    dom., 4 de feb. de 2018, 06:39
    hi,
    my moodle version is 3.4.1+
    i downloaded use blocks latest version Release 3.4.0 (build 2017090600)
    but there are installation problem:
    "[Error] Required Moodle version [2018110800]
    Installation aborted due to validation failure"
    what is wrong?
  • tarik yuce
    mar., 20 de feb. de 2018, 02:18
    help please,
    i can not installation Use Block latest release 3.4.0(build 2017090600) on moddle 3.4.1+
    is it not compatible with moodle 3.4.1+ ???
  • Thierry SEBBAR
    jue., 15 de nov. de 2018, 00:12
    It seems sources of block_use_stats are now here: https://github.com/vfremaux/moodle-block_use_stats/
  • Virangya Senevirathne
    lun., 19 de oct. de 2020, 12:37
    Hello!
    In the report it shows "Other" appart from the time spent on lessons. What does this Other mean? Your prompt reply is highly appreciated. Thank you.
  • maria oikonomidi
    lun., 26 de jul. de 2021, 22:25
    Hello,
    where can we access the logs? Which table contains the time logs in our database?
  • Daniel
    jue., 20 de jul. de 2023, 00:29
    Bonjour,
    Sur mes plateformes 4.2 mises à jour, j'ai systématiquement ce message d'erreur quand le tente d'installer ce bloc dans un cours.
    Exception : Attempt to assign property "elapsed" on null
  • Abdon G.
    jue., 14 de sept. de 2023, 23:15
    Hi
    I installed this plugin, but when I added it to a course gave this error:
    moodle Exception - Attempt to assign property "elapsed" on null

    I'm using moodle 4.2.1, anyone have an idea how to fix it?
  • Daniel García
    lun., 30 de oct. de 2023, 16:21
    Hello, I'm having the same issue, when I add the block to the course, the entire course crashes with this error message:

    "Exception - Attempt to assign property "elapsed" on null"

    Any idea of what could be causing this?

    I'm using Moodle 4.0.8

    Thanks in advance sonrisa
  • Valery Fremaux
    lun., 30 de oct. de 2023, 16:50
    Hi Daniel, could you make code line appear using Developer Debug level ?
  • Daniel García
    lun., 30 de oct. de 2023, 19:06
    Hello again, I was able to quickly enable the debugging to get the error and disable it. This is with the old version of the plugin 2017090600

    Here's what it said:

    Error
    Exception - Attempt to assign property "sessionstart" on null
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:

    line 388 of /blocks/use_stats/locallib.php: Error thrown
    line 159 of /blocks/use_stats/block_use_stats.php: call to use_stats_aggregate_logs()
    line 341 of /blocks/moodleblock.class.php: call to block_use_stats->get_content()
    line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1222 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1280 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 27 of /theme/lambda/layout/columns3.php: call to block_manager->region_has_content()
    line 1477 of /lib/outputrenderers.php: call to include()
    line 1403 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 238 of /course/view.php: call to core_renderer->header()

    Here's what it says with the version for moodle 4.0:

    Error
    Exception - Attempt to assign property "elapsed" on null
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:

    line 414 of /blocks/use_stats/locallib.php: Error thrown
    line 161 of /blocks/use_stats/block_use_stats.php: call to use_stats_aggregate_logs()
    line 341 of /blocks/moodleblock.class.php: call to block_use_stats->get_content()
    line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 1222 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1280 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 27 of /theme/lambda/layout/columns3.php: call to block_manager->region_has_content()
    line 1477 of /lib/outputrenderers.php: call to include()
    line 1403 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 238 of /course/view.php: call to core_renderer->header()

    I also see that when installing the plugin for the 4.0 it gives a warning about some english language values being null "Multiple English language files found [null]"

    I also posted this in github, please feel free to reply in any of these sites just to not duplicate the answers

    Thanks in advance sonrisa
  • Laëtitia Breton
    mié., 14 de feb. de 2024, 01:36
    Bonjour,
    J'utilise la version 3.4.0, qui pour le moment me va très bien.
    Je voulais savoir s'il était possible d'étendre la période max du tracking pour des formations en 2 ans par exemple.
    Merci d'avance
  • marcia mota
    jue., 21 de mar. de 2024, 23:00
    Hello,
    Is there any time frame for an update of the plugin to Moodle version 4.3?
    thanks


1 2 3
Please login to post comments