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

Error while upgrading forum ratings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Libraries
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      Hi Andrew,
      Have experienced this a couple of times now, seems to always be -2?

      Debug info: Out of range value for column 'scaleid' at row 1
      INSERT INTO rating (contextid,scaleid,itemid,rating,userid,timecreated,timemodified) VALUES(?,?,?,?,?,?,?)
      [array (
      0 => '545',
      1 => '-2',
      2 => '485',
      3 => '25',
      4 => '140',
      5 => '1257304623',
      6 => '1257304623',
      )]
      Stack trace:

      • line 375 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 740 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
      • line 783 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
      • line 446 of /lib/db/upgradelib.php: call to mysqli_native_moodle_database->insert_record()
      • line 298 of /mod/forum/db/upgrade.php: call to upgrade_module_ratings()
      • line 510 of /lib/upgradelib.php: call to xmldb_forum_upgrade()
      • line 294 of /lib/upgradelib.php: call to upgrade_plugins_modules()
      • line 1266 of /lib/upgradelib.php: call to upgrade_plugins()
      • line 268 of /admin/index.php: call to upgrade_noncore()

      Attachments

        Issue Links

          Activity

            People

              andyjdavis Andrew Davis
              samhemelryk Sam Hemelryk
              Nobody Nobody
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10