Moodle

Installer script is broken

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Installation
  • Labels:
    None
  • Environment:
    Ubuntu, PHP5, Mysql 5, Apache2
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

When I installing a new moodle (HEAD), the installation stopped in environment checking page, it said:

Checking your environment ...

We are checking if the various components of your system meet the system requirements

Fatal error: Call to a member function setup_is_unicodedb() on a non-object in /var/www/m20/lib/environmentlib.php on line 707

  1. installer_and_other_5.patch
    19/May/08 5:55 AM
    64 kB
    Petr Škoda (skodak)
  2. installer_and_other_6.patch
    19/May/08 4:18 PM
    64 kB
    Petr Škoda (skodak)

Activity

Hide
Petr Škoda (skodak) added a comment -

yes, the installer does not work yet, it is still heavily depending on adodb and odl dmllib
workaround is to create config.php manually

Show
Petr Škoda (skodak) added a comment - yes, the installer does not work yet, it is still heavily depending on adodb and odl dmllib workaround is to create config.php manually
Hide
Petr Škoda (skodak) added a comment -

sending a patch that solves several issues:

  • installer works again (db creation still missing though)
  • the prefix checks moved to database classes again
  • detection of missing php extensions added
  • new support for $external (non-moodle) databases
  • added driver specific options
  • connect info moved from constructor to connect() method
  • fixed print_error() before db connected and themes setup
  • other minor changes and API improvements
Show
Petr Škoda (skodak) added a comment - sending a patch that solves several issues:
  • installer works again (db creation still missing though)
  • the prefix checks moved to database classes again
  • detection of missing php extensions added
  • new support for $external (non-moodle) databases
  • added driver specific options
  • connect info moved from constructor to connect() method
  • fixed print_error() before db connected and themes setup
  • other minor changes and API improvements
Hide
Petr Škoda (skodak) added a comment -

passing to Eloy

Show
Petr Škoda (skodak) added a comment - passing to Eloy
Hide
Petr Škoda (skodak) added a comment -

fresh patch

Show
Petr Škoda (skodak) added a comment - fresh patch
Hide
Eloy Lafuente (stronk7) added a comment -

Reviewed, tested under MySQL, PostgreSQL and MSSQL.

I only have:

  • moved some PHP docs from __construct() to connect()
  • added some TODO comments (plz, check them in commit message)

Resolving this as fixed. Thanks!

Show
Eloy Lafuente (stronk7) added a comment - Reviewed, tested under MySQL, PostgreSQL and MSSQL. I only have:
  • moved some PHP docs from __construct() to connect()
  • added some TODO comments (plz, check them in commit message)
Resolving this as fixed. Thanks!

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: