Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: 1.8.9
-
Fix Version/s: None
-
Component/s: Installation
-
Labels:None
-
Environment:Windows Server '03
IIS 6.0
PHP 5.2.9/fastcgi
MySQL 5.1.30
-
Database:MySQL
-
Affected Branches:MOODLE_18_STABLE
Description
While attempting to install Moodle on the listed configuration, I ran into the almost famous "It is required that you store all your data in Unicode format (UTF-8). New installations must be performed into databases that have their default character set as Unicode. If you are upgrading, you should perform the UTF-8 migration process (see the Admin page)." problem.
Upon performing further investigation:
When reaching line 369 of the installer file, $records is an array with first key being blank, not 'character_set_database' as expected, hence the "ALTER DATABASE" SQL query will never run.
The same problem applies on Line 171 of lib/setuplib.php
I added debug code (couple of var_dumps) to try and see what caused it - see attachment.
This is preventing me from installing Moodle.
I am also getting this PHP warning in the logs:
[19-May-2009 17:13:16] PHP Warning: Illegal offset type in E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\lib\adodb\adodb.inc.php on line 3008
[19-May-2009 17:13:16] PHP Stack trace:
[19-May-2009 17:13:16] PHP 1. {main}() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\index.php:0
[19-May-2009 17:13:16] PHP 2. require_once() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\index.php:33
[19-May-2009 17:13:16] PHP 3. include_once() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\config.php:316
[19-May-2009 17:13:16] PHP 4. get_config() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\lib\setup.php:228
[19-May-2009 17:13:16] PHP 5. get_records() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\lib\moodlelib.php:655
[19-May-2009 17:13:16] PHP 6. recordset_to_array() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\lib\dmllib.php:863
[19-May-2009 17:13:16] PHP 7. ADORecordSet->GetAssoc() E:\webroot\org\dyndns\cjsoftuk\hosting\chrism\moodle\lib\dmllib.php:705
The result being that even when using a known working database and config from an identical install, it fails to load.