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)

    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!

        Gliffy Diagrams

          Activity

          Hide
          poltawski Dan Poltawski added a comment -

          I've fixed this in CVS

          Show
          poltawski Dan Poltawski added a comment - I've fixed this in CVS

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Mar/10