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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.6, 2.6.3, 2.7
    • 2.5.7, 2.6.4, 2.7.1
    • Forum
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
      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

    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
      

      fred, 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

              fred Frédéric Massart
              nebgor Aparup Banerjee
              Andrew Lyons Andrew Lyons
              Dan Poltawski Dan Poltawski
              Jetha Chan Jetha Chan
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Jul/14