
Reports: Overview statistics
report_overviewstats
Maintained by
Eric 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
- Extract the folder 'overviewstats' into your {Moodle root directory}/report/ folder
- Visit the main administration page (so called Notifications)
- Follow the installation wizard
Contributors
Eric Bram (Lead maintainer)
David Mudrák: Original author
Please login to view contributors details and/or to contact them
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.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?
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?
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.
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.
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?
Hi Oscar. HTTP error number 500 is a server side problem. Please search through your web server error logs for details.
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?
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).