Moodle

When cron.php is run it errors out gathering statistics - ORACLE.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Administration
  • Labels:
    None
  • Environment:
    Moodle 1.9+ (20080327)
    Oracle 10.2
    Apache 2.2.4
    Windows 2003 server
    PHP 5.2.5
  • Database:
    Oracle
  • Affected Branches:
    MOODLE_19_STABLE

Description

When I turn on debugging and then run cron.php I get the following error message when running statistics.

Running daily statistics gathering, starting at 1206601200:
<div class="notifytiny" style="text-align:center">ORA-00904: "COURSEID": invalid identifier<br /><br />INSERT INTO mtstats_user_daily (stattype, timeend, courseid, userid, statsreads)

SELECT 'logins' AS stattype, 1206687600 AS timeend, 1 AS courseid,
l.userid, count(l.id) AS statsreads
FROM mtlog l
WHERE action = 'login' AND l.time >= 1206601200 AND l.time < 1206687600
GROUP BY stattype, timeend, courseid, userid
HAVING count(l.id) > 0<ul style="text-align:left"><li>line 103 of lib\dmllib.php: call to debugging()</li><li>line 162 of lib\statslib.php: call to execute_sql()</li><li>line 467 of admin\cron.php: call to stats_cron_daily()</li></ul></div>
...error occured, completed 0 days of statistics.

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Hi, this was fixed some weeks ago by MDL-13861 . Should be working ok now.

Show
Eloy Lafuente (stronk7) added a comment - Hi, this was fixed some weeks ago by MDL-13861 . Should be working ok now.
Hide
Eloy Lafuente (stronk7) added a comment -

Resolving as fixed for 1.9.2. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Resolving as fixed for 1.9.2. Ciao
Hide
Tim Hunt added a comment -

Reopening, just so I can close it correctly as a duplicate.

Show
Tim Hunt added a comment - Reopening, just so I can close it correctly as a duplicate.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: