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

Wrong (undefined) mnethostid prevents guest access sometimes...

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.1, 1.9
    • 1.8.2, 1.9
    • Authentication
    • None
    • Any
    • Any
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      There are two places where the "guest" user is created. Both admin/index.php and login/index.php are able to create such record in the user tables.

      But when the user is created from login/index.php, the mnethostid isn't set, so defaults to 0, and with that value, it doesn't work anymore.

      So plan is:

      1) Create one new create_guest_user() function under moodlelib.php with correct settings.
      2) Use it from admin/index.php and login/index.php
      3) Provide a small upgrade to fix broken sites (I've seen some of them).

      Ciao

      Attachments

        Activity

          People

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Jul/07