Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Elxis 4.x documentation for users and developers
 
Pages: [1]
  Print  
Author Topic: problem at installation  (Read 3709 times)
ilias
Newbie
*
Offline Offline

Posts: 2


« on: October 24, 2006, 13: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
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #1 on: October 24, 2006, 13:52:59 »

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:

Code:
//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
//}

« Last Edit: October 24, 2006, 13:56:19 by datahell » Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7682



WWW
« Reply #2 on: October 24, 2006, 13:58:46 »

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...
« Last Edit: October 24, 2006, 14:03:54 by datahell » Logged

ilias
Newbie
*
Offline Offline

Posts: 2


« Reply #3 on: October 24, 2006, 14:16:49 »

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
Logged
eliasan
Hero Member
*****
Offline Offline

Posts: 897


« Reply #4 on: October 24, 2006, 14:48:25 »

You are welcome,

Sorry to hear that...
Logged
Pages: [1]
  Print  
 
Jump to: