1
babay
Installation problem
  • 2016/1/15 20:45

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Hello!
Trying to install want Xoops 2.5.7.1
From 4 to step 5 ( Database connection) error:
mysite/install/page_pathsettings.php
Fatal error: Call to a member function baseLocation() on a non-object in /home/u171720/xxx.xx/www/install/class/pathcontroller.php on line 98

* @param $xoopsPathDefault
     
* @param $dataPath
     
*/
    function 
PathStuffController$xoopsPathDefault$dataPath )
    {
        
$this->xoopsPathDefault $xoopsPathDefault;
        
$this->dataPath $dataPath;

        if ( isset( 
$_SESSION['settings']['ROOT_PATH'] ) ) {
            foreach (
$this->path_lookup as $req => $sess) {
                
$this->xoopsPath[$req] = $_SESSION['settings'][$sess];
            }
        } else {
            
$path str_replace"""/"realpath'../' ) );
            if ( 
substr$path, -) == '/' ) {
                
$path substr$path0, -);
            }
            if ( 
file_exists"$path/mainfile.dist.php" ) ) {
                
$this->xoopsPath['root'] = $path;
            }
            
// Firstly, locate XOOPS lib folder out of XOOPS root folder
            
$this->xoopsPath['lib'] = dirname($path) . "/" . ($this->xoopsPathDefault['lib']);
            
// If the folder is not created, re-locate XOOPS lib folder inside XOOPS root folder
            
if ( !is_dir($this->xoopsPath['lib'] . "/") ) {
                
$this->xoopsPath['lib'] = $path "/" . ($this->xoopsPathDefault['lib']);
            }
            
// Firstly, locate XOOPS data folder out of XOOPS root folder
            
$this->xoopsPath['data'] = dirname($path) . "/" . ($this->xoopsPathDefault['data']);
            
// If the folder is not created, re-locate XOOPS data folder inside XOOPS root folder
            
if ( !is_dir($this->xoopsPath['data'] . "/") ) {
                
$this->xoopsPath['data'] = $path "/" . ($this->xoopsPathDefault['data']);
            }
        }
        if ( isset( 
$_SESSION['settings']['URL'] ) ) {
            
$this->xoopsUrl $_SESSION['settings']['URL'];
        } else {
         [
color=660000]   $path $GLOBALS['wizard']->baseLocation();[/color]
            
$this->xoopsUrl substr$path0strrpos$path'/' ) );
        }
    }

    function 
execute()
    {
        
$this->readRequest();
        
$valid $this->validate();
        if (
$_SERVER['REQUEST_METHOD'] == 'POST') {
            foreach (
$this->path_lookup as $req => $sess) {
                
$_SESSION['settings'][$sess] = $this->xoopsPath[$req];
            }
            
$_SESSION['settings']['URL'] = $this->xoopsUrl;
            if (
$valid) {
                
$GLOBALS['wizard']->redirectToPage'+1' );
            } else {
                
$GLOBALS['wizard']->redirectToPage'+0' );
            }
        }
    }

    function 
readRequest()
    {
        if (
$_SERVER['REQUEST_METHOD'] == 'POST') {
            
$request $_POST;
            foreach (
$this->path_lookup as $req => $sess) {
                if ( isset(
$request[$req]) ) {
                    
$request[$req] = str_replace"""/"trim($request[$req]) );
                    if ( 
substr$request[$req], -) == '/' ) {
                        
$request[$req] = substr$request[$req], 0, -);
                    }
                    
$this->xoopsPath[$req] = $request[$req];
                }
            }
            if ( isset( 
$request['URL'] ) ) {
                
$request['URL'] = trim($request['URL']);
                if ( 
substr$request['URL'], -) == '/' ) {
                    
$request['URL'] = substr$request['URL'], 0, -);
                }
                
$this->xoopsUrl $request['URL'];
            }
        }
    }


I use hosting:
PHP version 5.4.34-5.4.34+mh1
MySQL extension mysqlnd 5.0.10 - 20111026 - $Id:
Session extension Success
PCRE extension Success
file_uploads ON
Database host: user1.mysql.myhoster.org


These extension - all ok (green check):
Character encoding extension MBString
Character set conversion extension Iconv
XML parsing extension XML
Zlib Compression extension Zlib
Image functions extension GD bundled (2.1.0 compatible)
Image meta data (exif) extension Exif
Filter functions extension

Database empty.
directory www - empty.
directory uploads, xoops_data, xoops_lib e.t.c. and files writable (777)
Any idea how to solve the problem?

2
Mamba
Re: Installation problem
  • 2016/1/15 22:39

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


You should install XOOPS 2.5.7.2 - it's the latest version.

If you still have problems, please let us know.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
babay
Re: Installation problem
  • 2016/1/15 23:52

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Thanks, Mamba!
I download XOOPS 2.5.7.2.
Trying to install. But error is the same :(

4
Mamba
Re: Installation problem
  • 2016/1/16 6:48

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Maybe your issue is related to permissions on the DB? Similar to this guy?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

354 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 354


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits