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

The Config.xml as provided as download is invalid in php ($CFG is not initialized)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: 1.9.8
    • Component/s: Installation
    • Labels:
      None
    • Environment:
      Moodle OSX, PHP5, MySQL
    • Database:
      MySQL
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      hi,

      running moodle in a freshly installed php5 environment throws a:

      Strict Standards: Creating default object from empty value in /Users/swagner/Sites/moodle/config.php on line 5

      If you complete it with: $CFG = new stdClass();
      after:
      unset($CFG);

      $CFG = new stdClass();
      $CFG->dbtype = 'mysql';

      solved!

        Attachments

          Activity

            People

            • Assignee:
              poltawski Dan Poltawski
              Reporter:
              seba.wagner Sebastian Wagner
              Tester:
              Nobody
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Mathew May, 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:
                25/Mar/10