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

Error while upgrading forum ratings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      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

              • Assignee:
                andyjdavis Andrew Davis
                Reporter:
                samhemelryk Sam Hemelryk
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10