Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25822

Statistics not working for any course but front page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Unknown
    • Labels:
      None
    • Environment:
      Apache 2, Mysql 5.0.91 PHP 5.2.13
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Statistics not working for any course but front page... returns following error:

      Did you remember to make the first column something unique in your call to get_records? Duplicate value
      '1292648400' found in column 'timeend'.
      line 768 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
      line 1256 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
      line 1331 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
      line 857 of /lib/statslib.php: call to moodle_database->get_field_sql()
      line 1446 of /lib/statslib.php: call to stats_get_start_from()
      line 44 of /course/report/stats/index.php: call to stats_check_uptodate()

      Fatal error: Call to undefined method moodle_page::headingmenu() in
      /home/accountname/public_html/course/report/stats/index.php on line 58

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            poltawski Dan Poltawski added a comment -

            Thanks, i've fixed this and requested PULL-59 for merging upstream

            Show
            poltawski Dan Poltawski added a comment - Thanks, i've fixed this and requested PULL-59 for merging upstream
            Hide
            poltawski Dan Poltawski added a comment -

            I've not done the full fix yet

            Show
            poltawski Dan Poltawski added a comment - I've not done the full fix yet
            Hide
            poltawski Dan Poltawski added a comment -

            Updated the pull request with the full fix MDL-25822

            Show
            poltawski Dan Poltawski added a comment - Updated the pull request with the full fix MDL-25822
            Hide
            skodak Petr Skoda added a comment -

            closing, thanks

            Show
            skodak Petr Skoda added a comment - closing, thanks

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Feb/11