Reports: Overview statistics

report_overviewstats
Maintained by Picture of Eric BramEric Bram
Produces various site and course report charts. The code has been designed in a way that makes adding more reports easy.
3151 sites
818 downloads
92 fans
Current versions available: 2

For producing the graphs, YUI Charts module is used. The code is using modern Moodle development techniques and patterns, such as using LESS for producing CSS files and Shifter to compose the Javascript modules.

Installation

  1. Extract the folder 'overviewstats' into your {Moodle root directory}/report/ folder
  2. Visit the main administration page (so called Notifications)
  3. Follow the installation wizard

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of Eric Bram
Eric Bram (Lead maintainer)
Picture of David Mudrák
David Mudrák: Original author
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Mahmood Naderan
    Sun, Jun 21, 2020, 4:28 AM
    Thanks for this useful plugin. I would like to know if it is possible to change the period? By default is shows for 1 month. I would like to change that to 3 months. How can I do that in the source code?
  • Picture of David Mudrák
    Mon, Jun 22, 2020, 2:39 PM

    Hello Mahmood. I am happy you found the plugin useful. At the moment, the time period of 30 days is hard-coded in a few places in the code. You may try to experiment with extending that period by changing the value in the prepare_data() method of the chart subclasses.

  • Picture of Mahmood Naderan
    Mon, Jul 13, 2020, 4:34 AM
    Hi David, I get this error
    Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/report/overviewstats/classes/chart_logins.php on line 99
    That line is
    foreach (array_reverse($lastmonth, true) as $timestamp => $loggedin) {
    Where is that 30 seconds hard coded?
  • Picture of David Mudrák
    Mon, Jul 13, 2020, 3:47 PM

    It is part of your web server configuration - https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time

    I am thinking thought why is it taking so long, it shouldn't really. Have you performed some other modifications?

  • Picture of Mahmood Naderan
    Mon, Jul 13, 2020, 5:00 PM
    Thank you. I changed that to 50 seconds and now I can see the chart. I haven't modified the plugin yet. Our site have about 9500 users witch 3500 daily logins according to the plugin. Don't know if it is a big site or no...
  • Ricardo Caiado
    Tue, Aug 18, 2020, 4:41 AM
    Is it compatible with 3.9+ version of Moodle?
  • Picture of David Mudrák
    Thu, Aug 20, 2020, 6:02 PM

    I haven't tested myself. Generally it should just work and the Stats tab shows there are few hundreds 3.9 sites having this installed. I believe it works same well in 3.9.

  • Picture of Петър Петров
    Sun, Sep 13, 2020, 4:14 PM
    Hi! Unfortunately, I cannot install the plugin on a fresh installation of Moodle 3.9. I had a test version of 3.8 and installed it there with no issue.
  • Picture of David Mudrák
    Mon, Sep 14, 2020, 1:55 PM

    Thank you Петър fo raising this. I just tried myself and I had no problems with installing the report into a 3.9 site. Maybe you could provide more detailed description of the problem you experienced - please feel encouraged to use the plugin's bug tracker to do so.

  • Picture of Oscar Nogueiras
    Sun, Jan 31, 2021, 7:08 PM
    Hi!

    Getting HTTP ERROR 500 since upgrade to Moodle 3.10.
    Just updated to Moodle 3.10.1+ but it did not solve the problem.
    Uninstalled plugin and installed it again, but no luck.
    Any suggestions?
  • Picture of David Mudrák
    Mon, Feb 1, 2021, 3:58 PM

    Hi Oscar. HTTP error number 500 is a server side problem. Please search through your web server error logs for details.

  • Picture of Eric Bram
    Tue, Feb 2, 2021, 2:42 AM
    Hi David, this is is an issue with the plugin on the server side for Moodle v3.10, see your issue #10. I've made a forked patch for this but it doesn't appear that you allow PRs to your repo.
  • Picture of Eric Bram
    Tue, Feb 2, 2021, 3:09 AM
    I was wrong about the ability to make a PR -- I made one to the repo for this and tagged you
  • Picture of Thodoris Pilarinos
    Wed, Feb 10, 2021, 8:07 PM
    Hello David,
    Thank you for the plugin! I have tested it on Moodle 3.9 and it works. Recently, I upgraded a site to Moodle 3.10! When I open the overview statistics I'm getting this error:

    Headers -> Status: 200

    response:
    Fatal error: require_once(): Failed opening required '...site root..../lib/coursecatlib.php'

    (include_path='...site root..../lib/pear:.:/opt/cpanel/ea-php73/root/usr/share/pear') in ...site root..../report/overviewstats/classes/chart_courses.php on line 26

    I checked the lib folder and the coursecatlib.php file is missing. I think this file has been removed in 3.10. Do you plan to update the plugin for v3.10?


  • Picture of David Mudrák
    Wed, Feb 10, 2021, 8:25 PM

    Hello Thodoris. I just released a new version 1.4 for Moodle 3.9 and 3.10 that should have this fixed - thank to the patch by Eric Bram (see earlier comments).

1 2 3 4 5
Please login to post comments