Jump to content
xisto Community
Sign in to follow this  
pbolduc

Xoops Error Help Please

Recommended Posts

I am attempting to install xoops through fantastico on cpanel. I have yet to point the DNS to the site. To compensate for this I changed the vitual pathe from the installed: http://forums.xisto.com/no_longer_exists/ to: http://forums.xisto.com/no_longer_exists/ .
 
This occurs on line 37 in my editor. IT WAS: // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash /*line 37*/ define('XOOPS_URL', 'http://forums.xisto.com/no_longer_exists/');
 
IT IS NOW: // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash /*line 37*/ define('XOOPS_URL', 'http://forums.xisto.com/no_longer_exists/');
 
When I call individual pages index through the IP link they appear. http://forums.xisto.com/no_longer_exists/ >>>>> get index page http://forums.xisto.com/no_longer_exists/ >>>>> get index page http://forums.xisto.com/no_longer_exists/index.html >>>>> get index page http://forums.xisto.com/no_longer_exists/ >>>>> get fire page However, when I try to call xoops through: http://forums.xisto.com/no_longer_exists/ or http://forums.xisto.com/no_longer_exists/
 
I GET: Fatal error: Call to a member function on a non-object in /home/donpet/public_html/xoops/kernel/config.php on line 222
Unknown Condition []: in file line Here's Line 222:
function &getConfigsByCat($category, $module = 0) { if (!empty($this->_cachedConfigs[$module][$category])) { return $this->_cachedConfigs[$module][$category]; } else { $ret = array(); $criteria = new CriteriaCompo(new Criteria('conf_modid', intval($module))); if (!empty($category)) { $criteria->add(new Criteria('conf_catid', intval($category))); } $configs =& $this->getConfigs($criteria, true); if (is_array($configs)) { foreach (array_keys($configs) as $i) { /* Line 222 */ $ret[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput(); } } $this->_cachedConfigs[$module][$category] =& $ret; return $ret; } } When I type: http://forums.xisto.com/no_longer_exists/ I GET: http://forums.xisto.com/no_longer_exists/could not be found. (FireFox) I am at the bottom of the learning curve in php. Assistance would be greatly appreciated. Thanks, Pete :)



Share this post


Link to post
Share on other sites

ILL BE DAMMED!!!, jaja, that's a long post!!!

ok, i'm going to quote the mainfile.php (edit this file, is on the main xoops folder)
 



<?php
// $Id: mainfile.dist.php,v 1.5 2003/02/12 11:36:33 okazu Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright Š 2000 XOOPS.org                          //
//                      <http://www.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 Š 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
define('XOOPS_ROOT_PATH', '/home/yourcpanelname/public_html/xoops/');

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://forums.xisto.com/no_longer_exists/');

// 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. If you are unsure, just use the default 'xoops'.
define('XOOPS_DB_PREFIX', 'xoops');

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

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

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

// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'yourcpanelname_thenameofthedbyoucreated);

// Use persistent connection? (Yes=1 No=0)
// Default is 'Yes'. Choose 'Yes' 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'])) {
  include XOOPS_ROOT_PATH."/include/common.php";
}
}
?>




ok, check the red text, modified it, and Voila!!! you're ready to get your xoops site working!


Share this post


Link to post
Share on other sites

IF A MODERATOR SEE THIS, PLEASE MERGE THIS WITH MY LAST POST!!!

I'm asuming you want to to use Xisto... if you don't... the u have a problem, because http://forums.xisto.com/no_longer_exists/ doesn't seem to exist.....

The thing is.. taht's the way to use the folders, etc... in the mainfile for xoops make sure you put a 444 permision after u edit it

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.