Elxis CMS Forum
Support => Installation => Topic started by: ilias on October 24, 2006, 14:34:27
-
Today i make download the elxis_2006_3.zip, uncompress to a folder, upload to my web page in a folder.
In Pre-installation check i have with red color only the:
Session save path /tmp, Unwritable
Safe Mode: Off On
Display Errors: Off On
Allow URL fopen: Off On
License: Ok
Database: Give the Hostname-localhost, database username and password, database name from my ISP. Then press Next and i take the following message:
Fatal error: Call to a member function on a non-object in /users/kef/gym-lixour/ilias/public_html/q/installation/install2.php on line 92
How to solve this fatal error?
Thanks,
Elias
-
Elxis makes a check there if the database you provided exists and tries to change encoding settings (if DBtype is MySQL). You have php under safe_mode that restricts the "create database" command, and this causes an error. If you can not remove the PHP's safe_mode restriction open installation/install2.php and comment (put a '//' in front of them) the lines 90 to 105. In the end your install2.php will look like this:
//check database character set and collation
//if (eregi('mysql', $DBtype)) {
//$rs = $db->Execute("SHOW CREATE DATABASE $DBname");
// $dbInfo = $rs->FetchRow();
//$defcharset = '';
//$pattern = '/40100 DEFAULT CHARACTER SET (\w+) /';
//if ( (preg_match($pattern, $dbInfo[1], $match) > 0) ) {
// $defcharset = $match[1];
// }
//if (!eregi('utf8', $defcharset)) {
// $db->Execute("ALTER DATABASE $DBname DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_general_ci'");
//}
// $db->Execute('SET NAMES utf8'); //datahell 28.09.2006
//}
-
Something else: Your PHP ini settings are a little weird! You have strong restrictions by setting safe_mode to ON but you allow opening of remote files which is the most risky thing on the web! Set allow_url_fopen to off! Session save path is also unwritable...
-
Thanks a lot for the ansewrs.
I put the comment (//) in install2.php file. I run again the wizard and now another problem .....
the MySQL version on ISP is very old....So I wait the ISP to change the version ......and I continue later.
Thanks a lot,
Elias
-
You are welcome,
Sorry to hear that...