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

Forum ratings not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8.2
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      Windows 2003 Server, Apache 2.0.59, MySQL 5.0.18, PHP 5.1.1
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      After clicking the "Send in my latest ratings" button Moodle returns and error: "Could not insert a new rating (0 = 392)"
      The error occurs in every forum type and with every grade type. The error message is the same.
      RSS, blocking or groups are not used.

      With debugging switched on, error is:

      Out of range value adjusted for column 'rating' at row 1

      INSERT INTO mdl_forum_ratings ( USERID, POST, TIME, RATING ) VALUES ( 6, 0, 1191415066, 392 )

      • line 1425 of lib\dmllib.php: call to debugging()
      • line 68 of mod\forum\rate.php: call to insert_record()

      Had this problem with 1.7+ too, thought upgrading might fix it. Alas
      Hope you don't mind me prioritising this as Major, it's a really useful function.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              gav Gavin Stokes
              Tester:
              Helen Foster Helen Foster
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: