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

forum unsubscribe all script shouldn't get to querying user table about subscriptions for id=0 (guest)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.6, 2.6.3, 2.7
    • Fix Version/s: 2.5.7, 2.6.4, 2.7.1
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      1. Logout from Moodle
      2. Direct access mod/forum/unsubscribeall.php
      3. Make sure you are redirected to the login page
      4. Login, and make sure you can now access the page without problems
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:

      Description

      Default exception handler: Invalid user Debug: SELECT id FROM {user} WHERE id = ? AND deleted = ?\n[array (\n  0 => 0,\n  1 => 0,\n)]\nError code: invaliduser\n* line 1451 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown\n* line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()\n* line 6404 of /lib/accesslib.php: call to moodle_database->get_record()\n* line 30 of /mod/forum/unsubscribeall.php: call to context_user::instance()\n
      

      Frédéric Massart, can you ping me for more info if you need.. just not seeing much now in access logs (there was a lot of rss at the time)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14