General help

 
 
Me
Moodle 2 statistics?
 

When I go to [ site admin > reports > statistics ] (in Moodle 2) I get the following message:

Sorry, there is no available data to display
More information about this error

Which takes me to a page that says this:

error/moodle/nostatstodisplay

Stats

This page can appear if you have not enabled statistics. To enable statistics, log into your Moodle as an administrator. Then, in the Site Administration menu, under Server --> Statistics ensure that they are enabled.

If you have enabled Statistics recently you should note that statistics are collected by a background task and take some time to become available. Try again later, but do note the time for statistics job to be run in the Site Administration page noted above.

Except, that there is no [ site admin > server > statistics ] in my moodle installation sad

It appears that the error message was taking me to documentation for 1.9?

How do I enable statistics in Moodle 2?

Regards,
Simon O

 
Average of ratings: -
Picture of Lev Abramov
Re: Moodle 2 statistics?
 

Right. In Moodle 2, it is in site admin > REPORTS > statistics

smile

Lev

 
Average of ratings: -
Me
Re: Moodle 2 statistics?
 

um... I'm not sure you read my post properly.  Especially the first line?

When I got to the page I only get :

Sorry, there is no available data to display
More information about this error

There is nothing anywhere else on the page about enabling statistics...

 
Average of ratings: -
Picture of Murad Jamal
Re: Moodle 2 statistics?
 

Site Administration -> Advanced Features

here is a screenshot of my moodle2 stats

moodle2 stats

 
Average of ratings: -
Picture of Lev Abramov
Re: Moodle 2 statistics?
 

Apparently I did not. smile (As an alternative explanation, I can suggest that telling HOW you got there was unnecessary and distracting... wink )

Site administration > Advanced features > Enable statistics.

Lev

 
Average of ratings:Useful (1)
Me
Re: Moodle 2 statistics?
 

Thanks guys, that's fixed it smile

 
Average of ratings: -
Picture of Donald Graham
Re: Moodle 2 statistics?
 

I have Moodle 2.0.2 (Build: 20110221). I have site statics enable as per the instruction above. The statistics have been enabled now for days, yet there are still no statics. I get same the message (see below). Any thoughts. I can find information regarding this issue with Moodle 1.9, but not for Moodle 2.0. Thanks in advance. ~Don

 Moodle message

 
Average of ratings: -
Picture of Francis Feytout
Re: Moodle 2 statistics?
 

Hi,

Do you have a cron running ? Looks like this is the problem.

 
Average of ratings: -
Picture of Donald Graham
Re: Moodle 2 statistics?
 

Yes, there is a cron running. I do not know how to check it for specific details on this issue. 

 
Average of ratings: -
Picture of Francis Feytout
Re: Moodle 2 statistics?
 

Did you configure them there :Site Administration -> Server -> Statistics

You can also check your cron result with a basic browser and this adress :

http://www.mydomain.com/moodle/admin/cron.php
 
Average of ratings: -
Picture of Aaron NA
Re: Moodle 2 statistics?
 

Has anyone come up with an answer on this issue? I can confirm that I have everything enabled for statistics, receive the same page when going to view the statistics report and if I turn on advance debugging I see.

Stack trace:
  • line 429 of /lib/setuplib.php: moodle_exception thrown
  • line 21 of /course/report/stats/report.php: call to print_error()
  • line 65 of /course/report/stats/index.php: call to require()

My cron output notes this in it...

...preventing stats to run, more than 4 hours since scheduled time.

I'm running Moodle 2.1.1+ (Build: 20110928)

 

Thoughts?

Aaron

 
Average of ratings: -
Picture of Paulo Felisbino
Re: Moodle 2 statistics?
 

Hi Aaron,

I'm in the same situation, did you managed to fix it?

Hugs,

Paulo 

 
Average of ratings: -
Picture of Ray Green
Re: Moodle 2 statistics?
 

I am having the same issue.

I have manually run CRON (several times) and get this:

Server Time: Thu, 19 Jan 2012 15:02:39 +1100 Created missing context instances Cleaned up stale user sessions Running auth crons if required... Running enrol crons if required... Running cron for enrol_self... Running cron for enrol_cohort... Starting activity modules Processing module function assignment_cron ...... used 3 dbqueries ... used 0.10113406181335 seconds done. Processing module function chat_cron ...... used 5 dbqueries ... used 0.030017137527466 seconds done. Processing module function forum_cron ...Starting digest processing... Cleaned old digest records ... used 3 dbqueries ... used 0.0171959400177 seconds done. Processing module function scorm_cron ...... used 1 dbqueries ... used 0.019598007202148 seconds done. Finished activity modules Starting blocks Processing cron function for rss_client.... 0 feeds refreshed (took 0.00070000000000003 seconds) done. Finished blocks Starting quiz reports Processing quiz report cron function quiz_report_statistics_cron ...... used 3 dbqueries ... used 0.010497093200684 seconds done. Finished quiz reports Starting admin reports Finished admin reports Starting main gradebook job... done. Starting processing the event queue... done. Starting the completion cron... done Starting course reports Finished course reports Starting gradebook plugins Finished gradebook plugins Fetching external blog entries...done. Deleting blog associations linked to non-existent contexts...done. Starting registration update on hubs... Finished registration update on hubs. Deleting session linked tokens more than one day old...done. Starting admin tools Processing cron function for tool_qeupgradehelper... done. (1 dbqueries, 0 seconds) Finished admin tools Checking automated backup status...INACTIVE ...preventing stats to run, more than 4 hours since scheduled time. Deleting old draft files... done. Cron script completed correctly Execution took 1.919477 seconds

I have double checked all the settings and I am certain that I have enabled Statistics.

Thanks.

 
Average of ratings: -
Picture of Ray Green
Re: Moodle 2 statistics?
 

I mucked around a little and set the time for stats to be for 5 minutes in the future.

I then ran a CRON and it said it had processed the stats, but I still get theSorry, there is no available data to display message.

This is the CRON output:

Server Time: Thu, 19 Jan 2012 15:40:06 +1100 Created missing context instances Cleaned up stale user sessions Running auth crons if required... Running enrol crons if required... Starting activity modules Finished activity modules Starting blocks Finished blocks Starting quiz reports Finished quiz reports Starting admin reports Finished admin reports Starting main gradebook job... done. Starting processing the event queue... done. Starting the completion cron... done Starting course reports Finished course reports Starting gradebook plugins Finished gradebook plugins Fetching external blog entries...done. Deleting blog associations linked to non-existent contexts...done. Starting registration update on hubs... Finished registration update on hubs. Deleting session linked tokens more than one day old...done. Starting admin tools Processing cron function for tool_qeupgradehelper... done. (1 dbqueries, 0 seconds) Finished admin tools Checking automated backup status...INACTIVE Running daily statistics gathering, starting at 1326286800: ................ finished until 1326373200: Friday, 13 January 2012, 12:00 AM (in 2 s) ................ finished until 1326459600: Saturday, 14 January 2012, 12:00 AM (in 2 s) ................ finished until 1326546000: Sunday, 15 January 2012, 12:00 AM (in 0 s) ................ finished until 1326632400: Monday, 16 January 2012, 12:00 AM (in 1 s) ................ finished until 1326718800: Tuesday, 17 January 2012, 12:00 AM (in 1 s) ................ finished until 1326805200: Wednesday, 18 January 2012, 12:00 AM (in 2 s) ................ finished until 1326891600: Thursday, 19 January 2012, 12:00 AM (in 0 s) ...completed 7 days of statistics. Running weekly statistics gathering, starting at 1326286800: finished until 1326546000: Sunday, 15 January 2012, 12:00 AM ...completed 1 weeks of statistics. Running stats cleanup tasks... ...stats cleanup finished Deleting old draft files... done. Cron script completed correctly Execution took 10.514042 seconds

Don't know if this information helps or not. 

 
Average of ratings: -
Picture of Ray Green
Re: Moodle 2 statistics?
 

Actually that has fixed one of my servers, I can now look at stats for that server.

 

I'll have to see if it keeps processing the stats...

 
Average of ratings: -
Picture of Rick Jerz
Re: Moodle 2 statistics?
Group Particularly helpful Moodlers

My problem is similar.  I had statistics running awhile ago.  Then I updated to Moodle 2.2.1 (Build: 20120109). I just went to view statistics and they are not there.  I too have checked setting, run the cron, and still no luck.  I am going to try this change to run statistics in 5 minutes.

Somehow, there seems to be some other kind of problem.  I know that statistics were working, because I had submitted a tracker item because of some code errors.  In tracker, I see the graphic that I uploaded showing statistics and the error.  The coders asked me to verify their fix.  I went to statistics, but could no longer find it.  Can't get it to work.

I will persist and see if I can get these to work.

 
Average of ratings: -
Picture of Rick Jerz
Re: Moodle 2 statistics?
Group Particularly helpful Moodlers

5 minutes have passed and I ran cron again.  I see the following.  I do have automated backups disabled.  Might there be some connection now between backups and statistics?

Checking automated backup status...INACTIVE
...preventing stats to run, last execution was less than 20 hours ago.
Deleting old draft files... done.
Cron script completed correctly
Execution took 0.546713 seconds
 
Average of ratings: -
Just me
Re: Moodle 2 statistics?
 

When I try to access the statistics page I just get the error This webpage cannot be displayed. The stats and logs are collecting but I can't get a graphical display.

 

Any Ideas?

 

regards,

Shane

 
Average of ratings: -
Picture of Eric Fichtl
Re: Moodle 2 statistics?
 

I'm also having this problem. Cron is running, statistics enabled, and the relevant feedback from cron is:

Checking automated backup status...INACTIVE
...preventing stats to run, more than 4 hours since scheduled time.

I'm in Moodle 2.3.4 (Build: 20130114).

Has anyone got a tip as to how to get stats running?

Thanks,

Eric

 
Average of ratings: -
Picture of Cameron Penna
Re: Moodle 2 statistics?
 

Inside  Site administration -> Server -> Statistics

make sure the run time is within 4 hours of when cron runs. I have mine set to run 10 minutes before cron runs. Therefore when cron executes it's well within the 4 hour window.

 
Average of ratings:Useful (1)
Picture of Chirag Patel
Re: Moodle 2 statistics?
 

guys is there any solution?

please any developer help with  this.

 
Average of ratings: -
Picture of Dale Davies
Re: Moodle 2 statistics?
Group Particularly helpful Moodlers

There's a lot of information on these forums with regards to stats problems.  I went through it all when I had problems, I narrowed mine down to a broken plugin stopping the cron from completing properly.

 
Average of ratings: -
Picture of Chirag Patel
Re: Moodle 2 statistics?
 

hey dale this are my settings for statistics!!Are they okay??

And I also exeecuted cron And there is only one line which says failed,Other than everything is okay!!!

And that line is:

Outdated or missing info about available updates, forced fetching ... FAILED!

 
Average of ratings: -
Picture of Dale Davies
Re: Moodle 2 statistics?
Group Particularly helpful Moodlers

I'm not the biggest expert in the stats execution configuration for Moodle, but the thing that jumps out at me there is "Days to process" being set to 0.

 

Does this mean that 0 days will be processed?

 
Average of ratings:Useful (1)
Picture of Chirag Patel
Re: Moodle 2 statistics?
 

same here!!!

Cant say anything!!

And I have question that iof stats are executed for only some time then how is that possible that all activities of moodle will be in those files??

 
Average of ratings: -