1
goldylhim
Problem After Install
  • 2005/11/28 23:09

  • goldylhim

  • Just popping in

  • Posts: 14

  • Since: 2004/10/28


I have XOOPS 2.2.3 installed. Everything was working fine. I was happy, users were happy. It was a big happy stinking time for all.

Then the new address I purchased came through and following the instructions on this article I added the following code to my mainfile.php

define(XOOPS_URL, "http://www.foundation-stone.com");

Site gave an error. I was like oh well, I'll switch it back to how it was and find more help. Well it's broke as hell now. Deleting that one line made it completely forget that the site was ever installed. It's looking for fs/install/index.php

I DO NOT want to reinstall, folks have been using the site since last wednesday and already had articles, posts, images, etc up and I don't want them to loose them. How can I restore the site into seeing that it is already installed and it doesn't need to check for the install file?

I removed the code looking for the install file and I'm back to the error I had before when I had that define line in there. " XOOPS root path not defined. "

Help!

2
m0nty
Re: Problem After Install
  • 2005/11/28 23:14

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


delete the line? you need to change it not delete it.. the path may also need doing.. seems you may have edited mainfile.php incorrectly.

try the faq section or use search..

i have problems using search at mo so i not searching.. but here'ds a quick 1

https://xoops.org/modules/smartfaq/faq.php?faqid=150

also you need to empty cache and templates_c folders aswell..

3
goldylhim
Re: Problem After Install
  • 2005/11/28 23:19

  • goldylhim

  • Just popping in

  • Posts: 14

  • Since: 2004/10/28


well it wasn't there to begin with. mainfile.php only had the install code on it. I added it in. I will try the cache and templates_c suggestion though. thank you.

4
jdseymour
Re: Problem After Install

Try it in the form found on this Faq Page. See if that helps.

5
m0nty
Re: Problem After Install
  • 2005/11/28 23:22

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it should have been in if your site was already installed previously.. unless you have overwritten it with the files from the zip package..

6
goldylhim
Re: Problem After Install
  • 2005/11/28 23:31

  • goldylhim

  • Just popping in

  • Posts: 14

  • Since: 2004/10/28


woo I got a new error now. call to undefined function: xoops_gethandler() in /home/blahblah on line 34.

so its found the url now at least :)

7
m0nty
Re: Problem After Install
  • 2005/11/28 23:35

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


try posting the full error messages it makes it easier to figure out..

that error could be from a number of files, but we need to know exactly which 1 etc..

8
goldylhim
Re: Problem After Install
  • 2005/11/28 23:37

  • goldylhim

  • Just popping in

  • Posts: 14

  • Since: 2004/10/28


Fatal error: Call to undefined function: xoops_gethandler() in /home/echoesof/public_html/fs/header.php on line 34

9
m0nty
Re: Problem After Install
  • 2005/11/28 23:41

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


post the full contents of your mainfile.php

edit out your db username, host name and password though..

use [code ] and [/code ] (without spaces tho when you post code on the forum)

10
goldylhim
Re: Problem After Install
  • 2005/11/28 23:43

  • goldylhim

  • Just popping in

  • Posts: 14

  • Since: 2004/10/28


// $Id: mainfile.dist.php,v 1.7.6.3 2005/05/21 15:38:20 mithyt2 Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                                                    //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define("XOOPS_MAINFILE_INCLUDED",1);

    
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
    
define('XOOPS_ROOT_PATH''');

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://url_to_xoops_directory');
    
define('XOOPS_URL''http://www.foundation-stone.com');

    
define('XOOPS_CHECK_PATH'"0");
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
        if ( 
function_exists('debug_backtrace') ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]['file'];
        } else {
            
$xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? 

$_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
        }
        if ( 
DIRECTORY_SEPARATOR != '/' ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath'\\') ? '\\' 

DIRECTORY_SEPARATOR'/'$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replace

DIRECTORY_SEPARATOR'/'XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// Database
    // Choose the database to be used
    
define('XOOPS_DB_TYPE''mysql');

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. 

Please change this to something different than 'xoops'.
    
define('XOOPS_DB_PREFIX''fs');

    
// Database Hostname
    // Hostname of the database server. If you are unsure, 'localhost' works in most cases.
    
define('XOOPS_DB_HOST''');

    
// Database Username
    // Your database user account on the host
    
define('XOOPS_DB_USER''');

    
// Database Password
    // Password for your database user account
    
define('XOOPS_DB_PASS''');

    
// Database Name
    // The name of database on the host. The installer will attempt to create the database if not 

exist
    define
('XOOPS_DB_NAME''');

    
// Use persistent connection? (Yes=1 No=0)
    // Default is 'No'. Choose 'No' if you are unsure.
    
define('XOOPS_DB_PCONNECT'"0");

    
define("XOOPS_GROUP_ADMIN""1");
    
define("XOOPS_GROUP_USERS""2");
    
define("XOOPS_GROUP_ANONYMOUS""3");

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        require 
XOOPS_ROOT_PATH."/include/common.php";
    }
}
?>

Login

Who's Online

309 user(s) are online (246 user(s) are browsing Support Forums)


Members: 0


Guests: 309


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