Moodle
  1. Moodle
  2. MDL-21603

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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
    • Rank:
      26586

      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!

        Activity

        Hide
        Dan Poltawski added a comment -

        I've fixed this in CVS

        Show
        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: