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

Creating admin account fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      MySQL 5.0 and 5.1, PHP 5, Apache 2
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      During install, when creating the admin account, the user object has a null mnet_host_id (because $CFG->mnet_localhost_id is null). MySQL refuses to insert the user row into the user table, as mnet_host_id is a NOT
      NULL field. I've attached the file adminlib.php.patch. It initializes a mnet_environment object so that $CFG->mnet_localhost_id gets set.

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            abautu Andrei Bautu
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, 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:
              3/Mar/08