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

Fatal php error when External Database authentication enabled but not configured

    XMLWordPrintable

    Details

      Description

      On failed login where username does not exist, with External Database authentication enabled but not configured, fatal PHP error returned:

      ADONewConnection: Unable to load database driver

      With debugging on, additional information:

      Notice: Undefined property: stdClass::$type in /auth/db/auth.php on line 144
      ADONewConnection: Unable to load database driver ''

      Fatal error: Call to a member function Connect() on a non-object in /auth/db/auth.php on line 149

      Workaround: disable External Database authentication method.

        Attachments

          Activity

            People

            Assignee:
            cfulton Charles Fulton
            Reporter:
            soelker Sarah Oelker
            Peer reviewer:
            Simey Lameze
            Integrator:
            Andrew Nicols
            Tester:
            Jun Pataleta
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Sep/15