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

Session expiration leads to nasty error in (all?) admin pages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      After fighting with Lucas for a while, I returned to computer and reloading this page:

      /admin/report/unittest/index.php

      produced this output:

      Notice: Trying to get property of non-object in /lib/adminlib.php on line 5198
      Most probably incorrect set_page() url argument, it does not match the httpswwwroot!
      line 837 of /lib/pagelib.php: call to debugging()
      line 5200 of /lib/adminlib.php: call to moodle_page->set_url()
      line 29 of /admin/report/unittest/index.php: call to admin_externalpage_setup()

      And then one big red box with:

      Section Error!

      The fact is that the session had expired, so expected behavior should be to get redirected to login page or so. All the output above seems wrong IMO.

      Not sure if this affects to all the admin pages or no, or if it can be fixed in one common way.

      Ciao

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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