1
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 :(



2
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?



3
babay
Re: XOOPS error after PHP upgrade
  • 2016/1/12 20:50

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Many thanks! All ok!



4
babay
XOOPS error after PHP upgrade
  • 2016/1/10 20:10

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Hello! I use xoops ver 2.3.
Hosting upgrade PHP. Now PHP 5.5
After upgrade site no open.
Blank screen and this:
PHP Fatal error: Call to a member function prefix() on a non-object in /home/u***/***.ru/www/kernel/configitem.php on line 294

function getObjects($criteria null$id_as_key false)
    {
        
$ret = array();
        
$limit $start 0;
        
$sql 'SELECT * FROM '.$this->db->prefix('config');
        if (isset(
$criteria) && is_subclass_of($criteria'criteriaelement')) {
            
$sql .= ' '.$criteria->renderWhere();
            
$sql .= ' ORDER BY conf_order ASC';
            
$limit $criteria->getLimit();
            
$start $criteria->getStart();
        }
        
$result $this->db->query($sql$limit$start);
        if (!
$result) {
            return 
false;
        }
        while (
$myrow $this->db->fetchArray($result)) {
            
$config = new XoopsConfigItem();
            
$config->assignVars($myrow);
            if (!
$id_as_key) {
                
$ret[] =& $config;
            } else {
                
$ret[$myrow['conf_id']] =& $config;
            }
            unset(
$config);
        }
        return 
$ret;
    }

Line 294 this:
$sql 'SELECT * FROM '.$this->db->prefix('config');


how to solve a problem?*/



5
babay
Re: Cant set site title with cp1251
  • 2006/4/30 14:19

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


At me a problem with display of the text in coding CP1251.
I use XOOPS 2.0.13. PHP5, MySQL 4.18. I not have Access to Apache.
I in a file /class/database/mysqldatabase.php have registered at the end of function connect the next line mysql_query (" set names 'cp1251' "). After that the most part of the text is displayed correctly.
However the text from a configuration (the name of a site, slogan, title) is not displayed correctly. The text in some modules too is displayed incorrectly. Where still it is necessary to correct a code for correct display of full text to a site?




TopTop



Login

Who's Online

203 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

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

Latest GitHub Commits