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, -1 ) == '/' ) {
$path = substr( $path, 0, -1 );
}
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( $path, 0, strrpos( $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], -1 ) == '/' ) {
$request[$req] = substr( $request[$req], 0, -1 );
}
$this->xoopsPath[$req] = $request[$req];
}
}
if ( isset( $request['URL'] ) ) {
$request['URL'] = trim($request['URL']);
if ( substr( $request['URL'], -1 ) == '/' ) {
$request['URL'] = substr( $request['URL'], 0, -1 );
}
$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?